67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"trajectory_id": "traj-success-tool-001",
|
|
"task": {
|
|
"task_id": "task-002",
|
|
"input": "Check the current test status for the prototype.",
|
|
"channel": "telegram",
|
|
"created_at": "2026-04-14T13:03:00Z",
|
|
"user_id": "oza"
|
|
},
|
|
"context_snapshot": {
|
|
"conversation_summary": "User wants concrete progress on the memabra prototype.",
|
|
"environment_summary": "Pytest is available in the local repo environment.",
|
|
"recent_failures": []
|
|
},
|
|
"candidate_sets": {
|
|
"memory": [],
|
|
"skill": [],
|
|
"tool": [
|
|
{
|
|
"id": "tool-terminal-1",
|
|
"type": "tool",
|
|
"title": "terminal",
|
|
"summary": "Run shell commands in the local environment.",
|
|
"triggers": ["check", "current", "test"],
|
|
"cost": 0.2,
|
|
"confidence": 0.95,
|
|
"success_rate": 0.92,
|
|
"freshness": 1.0,
|
|
"risk": 0.2,
|
|
"tags": ["system", "tests"],
|
|
"source": "system"
|
|
}
|
|
],
|
|
"skill": []
|
|
},
|
|
"decisions": [
|
|
{
|
|
"step": 1,
|
|
"decision_type": "call_tool",
|
|
"selected_ids": ["tool-terminal-1"],
|
|
"rejected_ids": [],
|
|
"rationale": "Current test status is a live system fact and must be observed with a tool.",
|
|
"estimated_cost": 0.2
|
|
}
|
|
],
|
|
"events": [],
|
|
"outcome": {
|
|
"status": "success",
|
|
"steps": 1,
|
|
"latency_ms": 700,
|
|
"user_corrections": 0,
|
|
"tool_errors": 0,
|
|
"notes": "Terminal used appropriately to inspect live test state."
|
|
},
|
|
"reward": {
|
|
"total": 1.6,
|
|
"components": {
|
|
"task_success": 1.0,
|
|
"retrieval_hit": 0.4,
|
|
"tool_error": 0.0,
|
|
"user_correction": 0.0,
|
|
"latency": 0.08,
|
|
"context_cost": 0.02,
|
|
"useful_reuse": 0.3
|
|
}
|
|
}
|
|
} |