diff options
Diffstat (limited to 'packages/server/src/core/turn.ts')
| -rw-r--r-- | packages/server/src/core/turn.ts | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/packages/server/src/core/turn.ts b/packages/server/src/core/turn.ts index 7b2a96f9..38932041 100644 --- a/packages/server/src/core/turn.ts +++ b/packages/server/src/core/turn.ts @@ -106,19 +106,15 @@ export type ServerGeminiStreamEvent = // A turn manages the agentic loop turn within the server context. export class Turn { - private pendingToolCalls: Array<{ + readonly pendingToolCalls: Array<{ callId: string; name: string; args: Record<string, unknown>; }>; - private fnResponses: Part[]; - private confirmationDetails: ToolCallConfirmationDetails[]; private debugResponses: GenerateContentResponse[]; constructor(private readonly chat: Chat) { this.pendingToolCalls = []; - this.fnResponses = []; - this.confirmationDetails = []; this.debugResponses = []; } // The run method yields simpler events suitable for server logic @@ -182,14 +178,6 @@ export class Turn { return { type: GeminiEventType.ToolCallRequest, value }; } - getConfirmationDetails(): ToolCallConfirmationDetails[] { - return this.confirmationDetails; - } - - getFunctionResponses(): Part[] { - return this.fnResponses; - } - getDebugResponses(): GenerateContentResponse[] { return this.debugResponses; } |
