Skip to content

Commit 832b053

Browse files
committed
Fixes
1 parent 4252cc1 commit 832b053

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/agent-evals/src/runner/gemini-cli-runner.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class GeminiCliRunner implements AgentTestRunner {
147147
if (!fs.existsSync(this.telemetryPath)) return false;
148148
try {
149149
const content = readFileSync(this.telemetryPath, "utf-8");
150-
// Check if file has meaningful content (at least one complete JSON object)
150+
// Check if file has at lease one event in it
151151
return content.includes('"event.name"');
152152
} catch {
153153
return false;
@@ -163,9 +163,8 @@ export class GeminiCliRunner implements AgentTestRunner {
163163
for (const logData of parsedLogs) {
164164
// Look for tool call logs
165165
if (logData.attributes?.function_name && logData.attributes["event.name"] === "gemini_cli.tool_call") {
166-
const toolName = logData.attributes.function_name!;
167166
logs.push({
168-
name: toolName,
167+
name: logData.attributes.function_name,
169168
args: logData.attributes.function_args ?? "{}",
170169
success: logData.attributes.success ?? false,
171170
duration_ms: logData.attributes.duration_ms ?? 0,

0 commit comments

Comments
 (0)