Properties
string
Read-only.
string
Read-only.
Methods
end()
record()
since start) and close the span. Idempotent. Pass error to mark
it as failed; pass endTime to backdate the close.
Parameters
SpanEndOptions
record()
name when it starts, so pass name to
startSubagent if the name has to carry it. record still updates the
field that end() writes to gen_ai.agent.name; it does not rename the
span.
Parameters
object
required
Returns
this
setAttributes()
end(). Mirrors OTel Span.setAttributes (and the Python SDK’s
set_attributes).
Parameters
Attributes
required
Returns
this
Examples
startLLM()
Parameters
Returns
LLM
startSubagent()
Parameters
SubAgentInit
required
Type:
SubAgentInitReturns
SubAgent
startTool()
Parameters
Returns
Tool