summaryrefslogtreecommitdiff
path: root/packages/server/src/core/turn.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/core/turn.ts')
-rw-r--r--packages/server/src/core/turn.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/server/src/core/turn.ts b/packages/server/src/core/turn.ts
index 25601164..47ca051b 100644
--- a/packages/server/src/core/turn.ts
+++ b/packages/server/src/core/turn.ts
@@ -84,7 +84,6 @@ export type ServerGeminiStreamEvent =
// A turn manages the agentic loop turn within the server context.
export class Turn {
- private readonly chat: Chat;
private readonly availableTools: Map<string, ServerTool>; // Use passed-in tools
private pendingToolCalls: Array<{
callId: string;
@@ -95,8 +94,10 @@ export class Turn {
private confirmationDetails: ToolCallConfirmationDetails[];
private debugResponses: GenerateContentResponse[];
- constructor(chat: Chat, availableTools: ServerTool[]) {
- this.chat = chat;
+ constructor(
+ private readonly chat: Chat,
+ availableTools: ServerTool[],
+ ) {
this.availableTools = new Map(availableTools.map((t) => [t.name, t]));
this.pendingToolCalls = [];
this.fnResponses = [];