Call object while your code runs, so you can inspect inputs and outputs, update metadata, or attach feedback at runtime. It’s intended for developers who already use Weave Ops and want to interact with the underlying Call object programmatically.
When you use an Op in Weave, you can call it directly as you would any function:
Call object directly, invoke the op.call method, which returns both the result and the Call object:
- Python
- TypeScript
call object contains all the information about the Call, including the inputs, outputs, and other metadata. Use call to set, update, fetch additional properties, or add feedback.If your Op is a method on a class, pass the class instance as the first argument to call: