> ## 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.

# FiddlerAgentSpan

> Span wrapper for agent/chain operations with agent identity helpers.

Span wrapper for agent/chain operations with agent identity helpers.

Created via FiddlerClient.startAgent.  All setter methods return
`this` for fluent chaining.

## Methods

### `setAgentId(id: string): this`

Set the unique agent identifier.

<ParamField path="id" type="string" required={true}>
  Agent ID string (e.g. `"travel_agent_v2"`).
</ParamField>

<ResponseField name="return">
  `this` for chaining.
</ResponseField>

### `setAgentName(name: string): this`

Set the human-readable agent name.

<ParamField path="name" type="string" required={true}>
  Agent display name (e.g. `"travel_agent"`).
</ParamField>

<ResponseField name="return">
  `this` for chaining.
</ResponseField>
