Beta Managed Agents Span Model Request End Event
BetaManagedAgentsSpanModelRequestEndEvent objectEmitted when a model request completes.
type: "span.model_request_end"id: stringUnique identifier for this event.
is_error: boolean or nullWhether the model request resulted in an error.
model_request_start_id: stringThe id of the corresponding
span.model_request_startevent.model_usage: BetaManagedAgentsSpanModelUsageToken usage for a single model request.
cache_creation_input_tokens: numberTokens used to create prompt cache in this request.
format: int32
cache_read_input_tokens: numberTokens read from prompt cache in this request.
format: int32
input_tokens: numberInput tokens consumed by this request.
format: int32
output_tokens: numberOutput tokens generated by this request.
format: int32
speed: optional "standard" or "fast" or nullInference speed mode.
fastprovides significantly faster output token generation at premium pricing. Not all models supportfast; invalid combinations are rejected at create time."standard""fast"
processed_at: stringA timestamp in RFC 3339 format
format: date-time