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
Dictionary of attribute key-value pairs, or empty dict if none exist
Return type: dict[str, str | int | float | bool]
Last updated 18 days ago
Was this helpful?