> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# get_span_attributes

> Get span attributes from a Model or AgentTool object.

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

<ParamField path="obj" type="Model | AgentTool" required={true}>
  The Model or AgentTool instance to retrieve attributes from
</ParamField>

## Returns

<ResponseField type="dict[str, str | int | float | bool]">
  Dictionary of attribute key-value pairs, or empty dict if none exist
</ResponseField>
