Data Format
Messages
Understanding message structure and roles
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Understanding message structure and roles
{
"role": "assistant",
"content": "How can I help you today?",
"steps": [...],
"meta": {...}
}
| Role | Description |
|---|---|
user | Message from the human user |
assistant | Message from the AI agent |
system | System instructions or context |
tool | Output from a tool execution |
"content": "I'd like to return my order"
"meta": {
"timestamp": "2024-01-20T14:30:00Z",
"latency_ms": 150
}
{
"role": "user",
"content": "I need to cancel my subscription"
}
{
"role": "assistant",
"content": "I can help you cancel. Can you confirm your account email?",
"steps": [
{
"thinking": "User wants to cancel. Need account info first.",
"output_content": "I can help you cancel. Can you confirm your account email?"
}
]
}
{
"role": "system",
"content": "You are a helpful customer service agent for Acme Corp."
}
{
"role": "tool",
"content": "{\"order_id\": \"ORD-123\", \"status\": \"shipped\"}",
"meta": {
"tool_name": "lookup_order"
}
}