mirror of
https://github.com/openai/codex.git
synced 2026-11-25 15:24:26 +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
@@ -3212,6 +3212,7 @@ fn collab_tool_call_outcome(
|
||||
match status {
|
||||
CollabAgentToolCallStatus::InProgress => None,
|
||||
CollabAgentToolCallStatus::Completed => Some((ToolItemTerminalStatus::Completed, None)),
|
||||
CollabAgentToolCallStatus::Interrupted => Some((ToolItemTerminalStatus::Interrupted, None)),
|
||||
CollabAgentToolCallStatus::Failed => Some((
|
||||
ToolItemTerminalStatus::Failed,
|
||||
Some(ToolItemFailureKind::ToolError),
|
||||
@@ -3236,6 +3237,10 @@ fn collab_agent_tool_name(tool: &CollabAgentTool) -> &'static str {
|
||||
CollabAgentTool::ResumeAgent => "resume_agent",
|
||||
CollabAgentTool::Wait => "wait_agent",
|
||||
CollabAgentTool::CloseAgent => "close_agent",
|
||||
CollabAgentTool::SendMessage => "send_message",
|
||||
CollabAgentTool::FollowupTask => "followup_task",
|
||||
CollabAgentTool::InterruptAgent => "interrupt_agent",
|
||||
CollabAgentTool::ListAgents => "list_agents",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user