File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
scripts/agent-evals/src/runner Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments