log_episode
Append an episode to an agent's journal (what it did + outcome) — the raw material reflect learns from. Required: agent_id, summary. Optional: outcome ('success'|'partial'|'failure'|'abandoned'), brain_id, goal_id, actions (object), prediction (what you expected BEFORE acting) and confidence (0..1, how likely you thought success was). Give both: the difference between them and what happened is the surprise, and reflection reads the surprising episodes first — an episode that went as expected teaches nothing. Without confidence no surprise is computed and the episode ranks last.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"summary": "<summary>"
},
"name": "log_episode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | No | Structured details of the actions taken | |
| goal_id | No | ID of the goal | |
| outcome | No | Result: success, partial, failure or abandoned | |
| summary | Yes | What the agent did in this episode | |
| agent_id | Yes | ID of the agent | |
| brain_id | No | ID of the brain | |
| confidence | No | How likely you thought success was before acting, 0..1 | |
| prediction | No | What you expected before acting |