Skip to main content

Base URL

Create Event

string
required
ID of the parent session.
string
required
"tool_call", "llm_decision", "state_change", or "error".
string
Name of the tool called (for tool_call events).
object
Input passed to the tool.
object
Output returned by the tool.
string
Agent’s reasoning for this action.
array
Other options the agent considered.
number
Confidence score (0.0 to 1.0).
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.