Skip to content

Commit 4bc31f4

Browse files
committed
fix: update maxIterations to 55 and simplify logging in logIterationProgress
1 parent f8f3391 commit 4bc31f4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

packages/core/src/executors/sampling/base-sampling-executor.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { Ajv } from "ajv";
66
import { AggregateAjvError } from "@segment/ajv-human-errors";
77
import addFormats from "ajv-formats";
88
import { parseJSON } from "@mcpc/utils";
9-
import { inspect } from "node:util";
109
import process from "node:process";
1110
import { createLogger, type MCPLogger } from "../../utils/logger.ts";
1211
import type { Span } from "@opentelemetry/api";
@@ -47,7 +46,7 @@ export interface ExternalTool {
4746

4847
export abstract class BaseSamplingExecutor {
4948
protected conversationHistory: ConversationMessage[] = [];
50-
protected maxIterations: number = 33;
49+
protected maxIterations: number = 55;
5150
protected currentIteration: number = 0;
5251
protected logger: MCPLogger;
5352
protected tracingEnabled: boolean = false;
@@ -499,13 +498,7 @@ ${history}`,
499498
model,
500499
stopReason,
501500
role,
502-
result: inspect(result, {
503-
depth: 5,
504-
maxArrayLength: 10,
505-
breakLength: 120,
506-
compact: true,
507-
maxStringLength: 120,
508-
}),
501+
result,
509502
});
510503
}
511504

0 commit comments

Comments
 (0)