mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +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
@@ -1091,6 +1091,10 @@ pub enum CollabAgentTool {
|
||||
ResumeAgent,
|
||||
Wait,
|
||||
CloseAgent,
|
||||
SendMessage,
|
||||
FollowupTask,
|
||||
InterruptAgent,
|
||||
ListAgents,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
@@ -1183,6 +1187,7 @@ pub enum CollabAgentToolCallStatus {
|
||||
InProgress,
|
||||
Completed,
|
||||
Failed,
|
||||
Interrupted,
|
||||
}
|
||||
|
||||
impl From<CoreCollabAgentTool> for CollabAgentTool {
|
||||
@@ -1193,6 +1198,10 @@ impl From<CoreCollabAgentTool> for CollabAgentTool {
|
||||
CoreCollabAgentTool::ResumeAgent => Self::ResumeAgent,
|
||||
CoreCollabAgentTool::Wait => Self::Wait,
|
||||
CoreCollabAgentTool::CloseAgent => Self::CloseAgent,
|
||||
CoreCollabAgentTool::SendMessage => Self::SendMessage,
|
||||
CoreCollabAgentTool::FollowupTask => Self::FollowupTask,
|
||||
CoreCollabAgentTool::InterruptAgent => Self::InterruptAgent,
|
||||
CoreCollabAgentTool::ListAgents => Self::ListAgents,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1203,6 +1212,7 @@ impl From<CoreCollabAgentToolCallStatus> for CollabAgentToolCallStatus {
|
||||
CoreCollabAgentToolCallStatus::InProgress => Self::InProgress,
|
||||
CoreCollabAgentToolCallStatus::Completed => Self::Completed,
|
||||
CoreCollabAgentToolCallStatus::Failed => Self::Failed,
|
||||
CoreCollabAgentToolCallStatus::Interrupted => Self::Interrupted,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user