test(core): align unit test mock payloads to native callId structure

This commit is contained in:
Adam Weidman
2026-05-18 20:55:55 -04:00
parent 7a20947c69
commit 9e6acced31
2 changed files with 7 additions and 3 deletions

View File

@@ -359,7 +359,7 @@ describe('LocalSubagentInvocation', () => {
isSubagentActivityEvent: true,
agentName: 'MockAgent',
type: 'TOOL_CALL_END',
data: { name: 'ls', id: 'call1', data: { isError: true } },
data: { name: 'ls', callId: 'call1', data: { isError: true } },
} as SubagentActivityEvent);
}
return { result: 'Done', terminate_reason: AgentTerminateMode.GOAL };

View File

@@ -273,7 +273,7 @@ describe('LocalSessionInvocation', () => {
isSubagentActivityEvent: true,
agentName: 'MockAgent',
type: 'TOOL_CALL_END',
data: { name: 'ls', data: {}, id: 'call-123' },
data: { name: 'ls', data: {}, callId: 'call-123' },
});
await executePromise;
@@ -749,7 +749,11 @@ describe('LocalSessionInvocation', () => {
isSubagentActivityEvent: true,
agentName: 'MockAgent',
type: 'TOOL_CALL_END',
data: { name: 'failing_tool', data: { isError: true }, id: 'call-err' },
data: {
name: 'failing_tool',
data: { isError: true },
callId: 'call-err',
},
});
await executePromise;