agent_tool_call_completed:從擁有邊界到可信查詢
將 agent_tool_call_completed 視為持久的分析合約:所有者發出一個記錄的穀物,一個固定裝置證明欄位,並且經過審查的查詢回答所述問題。
- 1
結果成為最終結果
Agent runtime or tool-execution adapter emits only after the tool returns, times out, is denied, or fails for the current attempt.
- 2
合約是有約束力的
10 required fields preserve the declared grain: One completed tool-call attempt within an agent run.
- 3
夾具已驗證
檢查型別、UTC 時間、替代結果、冪等性以及每個假名或評論分類欄位。
- 4
問題得到解答
在代理達到有用結果之前,哪些工具會失敗、重試、迴圈或增加延遲?
穀物
在代理執行中完成一次工具呼叫嘗試。
業主
代理執行時或工具執行介面卡
何時發出
工具返回、超時、被拒絕或當前嘗試失敗後。
現場合約
具有明確隱私邊界的型別化欄位
在生產查詢依賴現有欄位名稱和型別後,保持現有欄位名稱和型別穩定。可選上下文應受到特定決策的限制、記錄和證明。
| 欄位 | 型別 | 必填 | 隱私 | 含義 |
|---|---|---|---|---|
| timestamp_utc | timestamp | yes | non-sensitive | 結果邊界處的 UTC 時間。 |
| event_id | string | yes | non-sensitive | 用於重複資料刪除的穩定唯一識別符號。 |
| release | string | yes | non-sensitive | 發出事件的應用程式或服務版本。 |
| account_id | string | yes | pseudonymous | 穩定的內部帳戶識別符號,絕不是電子郵件或姓名。 |
| run_id | string | yes | pseudonymous | 擁有代理執行的批准識別符號。 |
| tool_call_id | string | yes | pseudonymous | 此邏輯工具呼叫的穩定識別符號。 |
| tool_name | string | yes | non-sensitive | 列入許可名單的低基數工具名稱。 |
| status | string | yes | non-sensitive | 成功、失敗、timed_out 或被拒絕。 |
| attempt | number | yes | non-sensitive | 邏輯呼叫的基於一的嘗試次數。 |
| duration_ms | number | yes | non-sensitive | 工具呼叫持續時間(以毫秒為單位)。 |
| error_type | string | no | non-sensitive | 無異常文字的受控故障類別。 |
合成 JSON 事件
{
"timestamp_utc": "2026-07-29T10:04:11Z",
"event_id": "evt_tool_01",
"account_id": "acct_8f31",
"release": "2026.07.3",
"run_id": "run_43fc",
"tool_call_id": "call_017",
"tool_name": "customer_lookup",
"status": "success",
"attempt": 1,
"duration_ms": 284
}隱私審查
攝取前檢查識別符號
此範例使用合成識別符號。假名值仍然可以是個人資料,並且審查欄位可以公開業務或提供商上下文。應用您自己的同意、保留、存取、居住和刪除要求。
account_id: pseudonymousrun_id: pseudonymoustool_call_id: pseudonymous
驗證清單
在建置儀表板之前證明合約
- Send one known agent_tool_call_completed fixture after the documented outcome boundary.
- Verify all 10 required fields arrive with the documented types.
- 重試相同的事件識別符號並確認所選的重複資料刪除行為。
- 當工作流程支援時,傳送受控失敗或替代結果。
- 在固定視窗上執行相關 SQL 並將結果與固定裝置進行協調。
常見錯誤
保持一行等於一個持久結果
- Emitting agent_tool_call_completed before agent runtime or tool-execution adapter knows the final outcome.
- 在一張資料表中混合多種穀物,這使得計數和比率不明確。
- 用原始 URL、有效負載、提示或錯誤文字替換受控類別。
- 儲存查詢和儀表板依賴於它後就地更改欄位型別。
- 新增識別符號,無需記錄調查、存取和保留需求。
使用合約
查詢並操作事件
相關合約
在生產流量之前傳送夾具
建立免費的 API 金鑰、傳送合成事件並在連線即時工作流程之前檢查推斷資料表。