Call properties
The table below outlines the key properties of a Call in Weave. For the complete implementation, see:- class: CallSchema in the Python SDK.
- Interface: CallSchema in the TypeScript SDK.
Property details
CallSchema properties play an important role in tracking and managing function calls:
- The
id,trace_id, andparent_idproperties help organize and relate calls within the system. - Timing information (
started_at,ended_at) support performance analysis. - The
attributesandinputsproperties provide context for the call. Attributes are frozen once the call starts, so set them before invocation withweave.attributes.outputandsummarycapture the results. -You can store metrics or other post-call values in thesummaryproperty. Modifycall.summaryduring execution. Any values you add is merged with Weave’s computed summary data when the Call finishes.- Weave’s computed summary data:
costs: The total cost of the call based on LLM model usage data and token pricing data. For more information on cost calculation, see Track costs.latency_ms: The duration, in milliseconds, elapsed betweenstarted_atandended_at.nullifstatusisRUNNING.status: The execution status:SUCCESS,ERROR,RUNNING,DESCENDANT_ERROR(meaning the call itself succeeded but a descendant call errored).
- Weave’s computed summary data:
- Integration with W&B is facilitated through
wb_user_idandwb_run_id.