Skip to content

Commit b53cfd9

Browse files
committed
Fix mock object
1 parent cff0606 commit b53cfd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/agents-core/test/runState.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ describe('deserialize helpers', () => {
253253
handoffs: [],
254254
computerActions: [{ toolCall: call, computer: tool }],
255255
toolsUsed: [],
256+
hasToolsOrApprovalsToRun: () => true,
256257
};
257258

258259
const restored = await RunState.fromString(agent, state.toString());
@@ -277,6 +278,7 @@ describe('deserialize helpers', () => {
277278
handoffs: [],
278279
computerActions: [{ toolCall: call, computer: tool }],
279280
toolsUsed: [],
281+
hasToolsOrApprovalsToRun: () => true,
280282
};
281283
state._currentStep = {
282284
type: 'next_step_handoff',

0 commit comments

Comments
 (0)