| Aspect | Value |
|---|---|
| Scope | Per agent |
| Persistence | Long-term |
| Default mode | Agentic |
| Supported modes | Always, Agentic |
Basic Usage
Agentic Mode
The agent receives tools to explicitly log decisions.log_decision, record_outcome, search_decisions
The agent decides when a decision is significant enough to log.
Always Mode
Tool calls are automatically logged as decisions.Data Model
| Field | Description |
|---|---|
id | Unique identifier (e.g., “dec_abc123”) |
decision | What was decided |
reasoning | Why this decision was made |
decision_type | Category: tool_selection, response_style, clarification |
context | The situation that required a decision |
alternatives | Other options considered |
confidence | How confident (0.0 to 1.0) |
outcome | What happened as a result |
outcome_quality | Was it good, bad, or neutral |
created_at | When the decision was made |
Recording Outcomes
Update decisions with what actually happened to build feedback loops:record_outcome tool during conversation.
Accessing Decisions
Context Injection
Recent decisions are injected into the system prompt:Decision Types
Common categories for organizing decisions:| Type | When to use |
|---|---|
tool_selection | Choosing which tool to call |
response_style | Deciding how to format or phrase response |
clarification | Choosing to ask for more info |
escalation | Deciding to defer to human |
approach | Choosing between solution strategies |
Use Cases
- Auditing: Review what decisions agents made and why
- Debugging: Understand unexpected behavior by examining reasoning
- Learning: Analyze outcome patterns to improve agent instructions
- Feedback loops: Record outcomes to identify successful patterns