Returns
Returns a Span object.Example
Parameters
string
required
The ID of the trace this span belongs to.
string
required
The name of the tool or function that was called.
string
SpanType value:
SPAN, GENERATION, EVENT, AGENT, TOOL, CHAIN, RETRIEVER, EVALUATOR, EMBEDDING, GUARDRAIL. See Span Types for details. Other string values are sent to the API unchanged. The API never drops a span for an unrecognized type. It normalizes the value to a known span type and keeps your original label in the span’s metadata, under the key galtea.span.original_type.string
Human-readable description of what this operation does. Useful for documentation and debugging. Maximum size: 1MB.
any
The input data passed to the tool/function. Accepts any JSON-serializable value. Maximum size: 10MB.
any
The output data returned by the tool/function. Accepts any JSON-serializable value. Maximum size: 10MB.
string
Error message if the tool call failed.
float
The time in milliseconds the tool call took.
any
Additional metadata about the span. Accepts any JSON-serializable value. Maximum size: 10MB.
string
ISO 8601 timestamp when the span started.
string
ISO 8601 timestamp when the span ended.