execute_tool span carrying the tool name,
the arguments, the tool-call id, and the result. String arguments and
results are recorded as-is; other JSON values are serialized.
Created by tracing.startTool() (or turn.startTool(), or
llm.startTool()) and terminated with end(), which accepts the result and
optional error metadata.
Examples
Properties
Methods
end()
error to mark the span as failed and endTime to backdate the close.
Parameters
Type:
ToolEndOptionssetAttributes()
end(). Mirrors OTel Span.setAttributes (and the Python SDK’s
set_attributes).
Parameters
Returns
this