mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Track remaining multi-agent v2 tools in analytics (#40585)
## What changed - Record collaboration tool analytics for `send_message`, `followup_task`, `interrupt_agent`, and `list_agents`, including receiver attribution, duration, failures, and interrupted calls. - Include these calls in per-turn subagent tool counts while keeping the existing `subAgentActivity` output unchanged and omitting additional public collaborator tool items. - Extend the collaboration tool schemas with the new tool variants and the `interrupted` terminal status. ## Testing - Add an app-server integration test covering successful and failed calls, receiver attribution, duration, prompt omission, activity items, and turn counts. GitOrigin-RevId: e73eaa05c508261e5fc97e7d08d7881a31e04e22
This commit is contained in:
1 parent
d52478c52e
commit
4fa6ad1730
38 files changed
+472
-45
No files matched your search
@@ -244,6 +244,10 @@ impl EventProcessorWithJsonOutput {
|
||||
id: make_id(),
|
||||
details: ThreadItemDetails::CollabToolCall(CollabToolCallItem {
|
||||
tool: match tool {
|
||||
CollabAgentTool::SendMessage
|
||||
| CollabAgentTool::FollowupTask
|
||||
| CollabAgentTool::InterruptAgent
|
||||
| CollabAgentTool::ListAgents => return None,
|
||||
CollabAgentTool::SpawnAgent => CollabTool::SpawnAgent,
|
||||
CollabAgentTool::SendInput => CollabTool::SendInput,
|
||||
CollabAgentTool::ResumeAgent => CollabTool::Wait,
|
||||
@@ -291,6 +295,7 @@ impl EventProcessorWithJsonOutput {
|
||||
CollabAgentToolCallStatus::InProgress => CollabToolCallStatus::InProgress,
|
||||
CollabAgentToolCallStatus::Completed => CollabToolCallStatus::Completed,
|
||||
CollabAgentToolCallStatus::Failed => CollabToolCallStatus::Failed,
|
||||
CollabAgentToolCallStatus::Interrupted => return None,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user