examples/python/functions/claude_agent_sdk_job/function.py to
package a Claude Agent SDK app, run it as a finite job, and collect declared
outputs.
Setup
CLI
Function Definition
function.py
Python
The companionrun.py script uses the same function contract through the SDK: