API reference for get_span_attributes
Get span attributes from a Model or AgentTool object.
Retrieves custom attributes that were previously set using set_span_attributes(). Returns an empty dictionary if no attributes have been set.
obj
Model | AgentTool
✗
None
The Model or AgentTool instance to retrieve attributes from
Dictionary of attribute key-value pairs, or empty dict if none exist Return type: dict[str, str | int | float | bool]
Last updated 2 months ago
Was this helpful?