dd-trace
    Preparing search index...

    Interface Agent

    Declares the agent an agent span represents. version is set as an agent_version tag on the agent span and its child spans within the same process. The other fields are reported as the agent's manifest. Only applies to agent spans. Unreportable values are dropped with a warning, and unset values (undefined, null, '', []) leave what an earlier annotation declared in place.

    interface Agent {
        instructions?: string;
        model?: string;
        modelSettings?: AgentModelSettings;
        name?: string;
        tools?: AgentTool[];
        version?: string;
    }
    Index
    instructions?: string

    The system instructions the agent runs with.

    model?: string

    The model the agent is configured to call.

    modelSettings?: AgentModelSettings

    Inference parameters. Replaces the settings an earlier annotation declared as a whole.

    name?: string

    The agent's name. Defaults to the agent span's name.

    tools?: AgentTool[]

    The tools the agent can call. Replaces tools declared by an earlier annotation.

    version?: string

    The version of the agent. Must not contain a comma.