Skip to main content

Base URL

Create Event

sessionId
string
required
ID of the parent session.
eventType
string
required
"tool_call", "llm_decision", "state_change", or "error".
toolName
string
Name of the tool called (for tool_call events).
toolInput
object
Input passed to the tool.
toolOutput
object
Output returned by the tool.
reasoning
string
Agent’s reasoning for this action.
alternativesConsidered
array
Other options the agent considered.
confidence
number
Confidence score (0.0 to 1.0).
estimatedCost
number
Cost for this event in USD.

Request

Response

Event Types

tool_call

Track when your agent calls a tool.

llm_decision

Track agent decision points.

cURL Examples

Tool Call Event

Decision Event

Error Codes

Next Steps

Sessions API

Create and manage sessions.

LangChain Integration

Automatic event tracking.