Method StartAgentSpan
- Namespace
- LMKit.Agents.Observability
- Assembly
- LM-Kit.NET.dll
StartAgentSpan(Agent, string, AgentSpan)
Starts a new span for an agent execution.
public AgentSpan StartAgentSpan(Agent agent, string input, AgentSpan parentSpan = null)
Parameters
agentAgentThe agent being executed.
inputstringThe input to the agent.
parentSpanAgentSpanOptional parent span for hierarchical tracing.
Returns
- AgentSpan
A span that should be disposed when the operation completes.