Table of Contents

Method StartAgentSpan

Namespace
LMKit.Agents.Observability
Assembly
LM-Kit.NET.dll

StartAgentSpan(Agent, string, AgentSpan)

Starts a new span for an agent execution.

AgentSpan StartAgentSpan(Agent agent, string input, AgentSpan parentSpan = null)

Parameters

agent Agent

The agent being executed.

input string

The input to the agent.

parentSpan AgentSpan

Optional parent span for hierarchical tracing.

Returns

AgentSpan

A span that should be disposed when the operation completes.