Skip to main content
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.

Parameters

obj
Model | AgentTool
required
The Model or AgentTool instance to retrieve attributes from

Returns

Dictionary of attribute key-value pairs, or empty dict if none exist