record_outcome
Records task outcomes—success, failure, or partial—after execution so future sessions can reuse past successes and learn from failures.
Instructions
Record the outcome of a task you just executed (episodic memory). Call this after finishing a task so past successes and failures can inform future sessions. Status must be 'success', 'failure', or 'partial'. Failures with a cause are reflected into lessons that get injected into similar future tasks. Repeated calls for the same session/outcome are deduped rather than creating a second episode. Requires agent auth when the agent has a registered key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags for categorization | |
| task | Yes | What task was executed (kept verbatim for retrieval) | |
| cause | No | Attribution of the outcome, when known | |
| status | Yes | Outcome status: success, failure, or partial | |
| api_key | No | API key for agent authentication (required if agent has a registered key) | |
| agent_id | No | ID of the agent reporting this outcome | unknown |
| skill_id | No | ID of the skill memory the agent followed, if any — attributes this outcome to the skill's success/failure statistics | |
| namespace | No | Namespace for the episode memory (default: global) | global |
| task_type | No | Coarse task category for lesson matching (e.g. deploy, debug, refactor) | |
| agent_type | No | Type of the agent (e.g., coding-assistant) | general-assistant |
| session_id | No | Session the task ran in, for traceability |