207 lines
5.4 KiB
JSON
207 lines
5.4 KiB
JSON
{
|
|
"trajectory_id": "traj-1ea60d6e-0b83-4cdf-a601-159373c780ee",
|
|
"task": {
|
|
"task_id": "task-c5221ec3-e5b9-4a2f-9774-fbb75018fe08",
|
|
"input": "Check current system status with a tool.",
|
|
"channel": "local",
|
|
"created_at": "2026-04-14T16:50:18.862393+00:00",
|
|
"user_id": null
|
|
},
|
|
"context_snapshot": {
|
|
"conversation_summary": "",
|
|
"environment_summary": "",
|
|
"recent_failures": []
|
|
},
|
|
"candidate_sets": {
|
|
"memory": [
|
|
{
|
|
"id": "mem-telegram-pref",
|
|
"type": "memory",
|
|
"title": "Telegram preference",
|
|
"summary": "Prefer plain text on Telegram.",
|
|
"triggers": [
|
|
"telegram",
|
|
"preference",
|
|
"answer"
|
|
],
|
|
"cost": 0.0,
|
|
"confidence": 0.95,
|
|
"success_rate": 0.9,
|
|
"freshness": 0.9,
|
|
"risk": 0.0,
|
|
"tags": [
|
|
"output"
|
|
],
|
|
"source": "user",
|
|
"type_payload": {}
|
|
}
|
|
],
|
|
"skill": [
|
|
{
|
|
"id": "skill-deploy",
|
|
"type": "skill",
|
|
"title": "Deploy workflow",
|
|
"summary": "Reusable deployment workflow.",
|
|
"triggers": [
|
|
"deploy",
|
|
"workflow",
|
|
"service"
|
|
],
|
|
"cost": 0.0,
|
|
"confidence": 0.8,
|
|
"success_rate": 0.9,
|
|
"freshness": 0.8,
|
|
"risk": 0.0,
|
|
"tags": [
|
|
"ops"
|
|
],
|
|
"source": "system",
|
|
"type_payload": {}
|
|
}
|
|
],
|
|
"tool": [
|
|
{
|
|
"id": "tool-terminal",
|
|
"type": "tool",
|
|
"title": "terminal",
|
|
"summary": "Run terminal-style inspection commands.",
|
|
"triggers": [
|
|
"check",
|
|
"current",
|
|
"status",
|
|
"system"
|
|
],
|
|
"cost": 0.0,
|
|
"confidence": 0.95,
|
|
"success_rate": 0.9,
|
|
"freshness": 1.0,
|
|
"risk": 0.0,
|
|
"tags": [
|
|
"inspection"
|
|
],
|
|
"source": "system",
|
|
"type_payload": {}
|
|
}
|
|
]
|
|
},
|
|
"decisions": [
|
|
{
|
|
"step": 1,
|
|
"decision_type": "call_tool",
|
|
"selected_ids": [
|
|
"tool-terminal"
|
|
],
|
|
"selected_payloads": [
|
|
{}
|
|
],
|
|
"rejected_ids": [],
|
|
"rationale": "Task asks for current state or external action; tool use is justified.",
|
|
"estimated_cost": 0.0
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"event_id": "evt-93525bc5-5e71-481c-a7d4-0282ef59e0a3",
|
|
"trajectory_id": "traj-1ea60d6e-0b83-4cdf-a601-159373c780ee",
|
|
"timestamp": "2026-04-14T16:50:18.862483+00:00",
|
|
"stage": "retrieval",
|
|
"event_type": "task_received",
|
|
"payload": {
|
|
"input": "Check current system status with a tool."
|
|
},
|
|
"metrics": {},
|
|
"parent_event_id": null
|
|
},
|
|
{
|
|
"event_id": "evt-a01d1dff-a6dc-4c25-a5a5-14efd6f182b2",
|
|
"trajectory_id": "traj-1ea60d6e-0b83-4cdf-a601-159373c780ee",
|
|
"timestamp": "2026-04-14T16:50:18.862492+00:00",
|
|
"stage": "retrieval",
|
|
"event_type": "candidates_recalled",
|
|
"payload": {
|
|
"memory_ids": [
|
|
"mem-telegram-pref"
|
|
],
|
|
"skill_ids": [
|
|
"skill-deploy"
|
|
],
|
|
"tool_ids": [
|
|
"tool-terminal"
|
|
]
|
|
},
|
|
"metrics": {},
|
|
"parent_event_id": "evt-93525bc5-5e71-481c-a7d4-0282ef59e0a3"
|
|
},
|
|
{
|
|
"event_id": "evt-28946864-c699-42fd-9802-dbfe6cb09043",
|
|
"trajectory_id": "traj-1ea60d6e-0b83-4cdf-a601-159373c780ee",
|
|
"timestamp": "2026-04-14T16:50:18.862498+00:00",
|
|
"stage": "policy",
|
|
"event_type": "action_selected",
|
|
"payload": {
|
|
"step": 1,
|
|
"decision_type": "call_tool",
|
|
"selected_ids": [
|
|
"tool-terminal"
|
|
],
|
|
"selected_payloads": [
|
|
{}
|
|
],
|
|
"rejected_ids": [],
|
|
"rationale": "Task asks for current state or external action; tool use is justified.",
|
|
"estimated_cost": 0.0
|
|
},
|
|
"metrics": {},
|
|
"parent_event_id": "evt-a01d1dff-a6dc-4c25-a5a5-14efd6f182b2"
|
|
},
|
|
{
|
|
"event_id": "evt-tool-traj-1ea60d6e-0b83-4cdf-a601-159373c780ee-tool-terminal",
|
|
"trajectory_id": "traj-1ea60d6e-0b83-4cdf-a601-159373c780ee",
|
|
"timestamp": "2026-04-14T16:50:18.862511+00:00",
|
|
"stage": "execution",
|
|
"event_type": "tool_called",
|
|
"payload": {
|
|
"tool_id": "tool-terminal",
|
|
"input": "Check current system status with a tool."
|
|
},
|
|
"metrics": {},
|
|
"parent_event_id": null
|
|
},
|
|
{
|
|
"event_id": "evt-tool-result-traj-1ea60d6e-0b83-4cdf-a601-159373c780ee-tool-terminal",
|
|
"trajectory_id": "traj-1ea60d6e-0b83-4cdf-a601-159373c780ee",
|
|
"timestamp": "2026-04-14T16:50:18.862515+00:00",
|
|
"stage": "execution",
|
|
"event_type": "tool_result",
|
|
"payload": {
|
|
"tool_id": "tool-terminal",
|
|
"status": "success",
|
|
"output": "demo-result-for:tool-terminal",
|
|
"error": null,
|
|
"latency_ms": 42
|
|
},
|
|
"metrics": {},
|
|
"parent_event_id": null
|
|
}
|
|
],
|
|
"outcome": {
|
|
"status": "success",
|
|
"steps": 1,
|
|
"latency_ms": 42,
|
|
"user_corrections": 0,
|
|
"tool_errors": 0,
|
|
"notes": "Draft trajectory generated by MemabraRunner with execution hooks."
|
|
},
|
|
"reward": {
|
|
"total": 1.032,
|
|
"components": {
|
|
"task_success": 0.8,
|
|
"retrieval_hit": 0.25,
|
|
"tool_error": 0.0,
|
|
"user_correction": 0.0,
|
|
"latency": 0.008,
|
|
"context_cost": 0.06,
|
|
"useful_reuse": 0.05
|
|
}
|
|
}
|
|
} |