Skip to content

AgentSpanName

Namespace: Vercel.AI.OpenTelemetry

public sealed class AgentSpanName

Controls the root agent span names. Maps to the agentSpanName option of OpenTelemetryOptions.

Inheritance: object

View source

public static AgentSpanName FunctionId { get; }

Names are invoke_agent {functionId}, falling back to the model id. Maps to 'functionId'.

Value: AgentSpanName

View source

public static AgentSpanName ModelId { get; }

Names are invoke_agent {modelId}. The default. Maps to 'modelId'.

Value: AgentSpanName

View source

public static AgentSpanName From(AgentSpanNameCallback callback)

Returns the complete span name. A null result or an exception falls back to the default name.

Parameters

Name Type Description
callback AgentSpanNameCallback

Returns: AgentSpanName

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product