File tree Expand file tree Collapse file tree 4 files changed +15
-55
lines changed
Expand file tree Collapse file tree 4 files changed +15
-55
lines changed Original file line number Diff line number Diff line change @@ -201,17 +201,17 @@ export async function requestRelevantFiles(
201201
202202 const candidateFiles = ( await keyPromise ) . files
203203
204- const files = validateFilePaths ( uniq ( candidateFiles ) )
205-
206- logger . info (
207- {
208- files,
209- customFilePickerConfig : customFilePickerConfig ,
210- modelName : customFilePickerConfig ?. modelName ,
211- orgId,
212- } ,
213- 'requestRelevantFiles: results' ,
214- )
204+ validateFilePaths ( uniq ( candidateFiles ) )
205+
206+ // logger.info(
207+ // {
208+ // files,
209+ // customFilePickerConfig: customFilePickerConfig,
210+ // modelName: customFilePickerConfig?.modelName,
211+ // orgId,
212+ // },
213+ // 'requestRelevantFiles: results',
214+ // )
215215
216216 return candidateFiles . slice ( 0 , maxFilesPerRequest )
217217}
Original file line number Diff line number Diff line change @@ -61,10 +61,6 @@ export async function promptFlashWithFallbacks(
6161 // Try finetuned model first if enabled
6262 if ( useFinetunedModel ) {
6363 try {
64- logger . info (
65- { model : useFinetunedModel } ,
66- 'Using finetuned model for file-picker!' ,
67- )
6864 return await promptAiSdk ( {
6965 ...geminiOptions ,
7066 messages,
Original file line number Diff line number Diff line change @@ -75,24 +75,6 @@ export async function runProgrammaticStep(
7575 throw new Error ( 'No step handler found for agent template ' + template . id )
7676 }
7777
78- logger . info (
79- {
80- stepsComplete,
81- } ,
82- `HIII Running programmatic step: stepsComplete: ${ stepsComplete } ` ,
83- )
84-
85- logger . info (
86- {
87- templateId : template . id ,
88- template,
89- agentType,
90- prompt,
91- params,
92- } ,
93- 'Running programmatic step' ,
94- )
95-
9678 // Run with either a generator or a sandbox.
9779 let generator = agentIdToGenerator [ agentState . agentId ]
9880 let sandbox = sandboxManager . getSandbox ( agentState . agentId )
@@ -200,11 +182,6 @@ export async function runProgrammaticStep(
200182 toolCallId : crypto . randomUUID ( ) ,
201183 } as CodebuffToolCall
202184
203- logger . debug (
204- { toolCall } ,
205- `${ toolCall . toolName } tool call from programmatic agent` ,
206- )
207-
208185 // Add assistant message with the tool call before executing it
209186 // Exception: don't add tool call message for add_message since it adds its own message
210187 if ( toolCall . toolName !== 'add_message' ) {
@@ -257,11 +234,6 @@ export async function runProgrammaticStep(
257234 }
258235 } while ( true )
259236
260- logger . info (
261- { output : state . agentState . output } ,
262- 'Programmatic agent execution completed' ,
263- )
264-
265237 return { agentState : state . agentState , endTurn }
266238 } catch ( error ) {
267239 endTurn = true
Original file line number Diff line number Diff line change @@ -174,10 +174,6 @@ export function executeToolCall<T extends ToolName>({
174174 input : toolCall . input ,
175175 } )
176176
177- logger . debug (
178- { toolCall } ,
179- `${ toolName } (${ toolCall . toolCallId } ) tool call detected in stream` ,
180- )
181177 toolCalls . push ( toolCall )
182178
183179 // Filter out restricted tools in ask mode unless exporting summary
@@ -247,8 +243,8 @@ export function executeToolCall<T extends ToolName>({
247243 } ,
248244 }
249245 logger . debug (
250- { toolResult } ,
251- `${ toolName } (${ toolResult . toolCallId } ) tool result for tool ` ,
246+ { input , toolResult } ,
247+ `${ toolName } tool call & result (${ toolResult . toolCallId } )` ,
252248 )
253249 if ( result === undefined ) {
254250 return
@@ -394,10 +390,6 @@ export function executeCustomToolCall({
394390 input : toolCall . input ,
395391 } )
396392
397- logger . debug (
398- { toolCall } ,
399- `${ toolName } (${ toolCall . toolCallId } ) custom tool call detected in stream` ,
400- )
401393 toolCalls . push ( toolCall )
402394
403395 // Filter out restricted tools in ask mode unless exporting summary
@@ -442,8 +434,8 @@ export function executeCustomToolCall({
442434 } ,
443435 }
444436 logger . debug (
445- { toolResult } ,
446- `${ toolName } (${ toolResult . toolCallId } ) custom tool result for tool ` ,
437+ { input , toolResult } ,
438+ `${ toolName } custom tool call & result (${ toolResult . toolCallId } )` ,
447439 )
448440 if ( result === undefined ) {
449441 return
You can’t perform that action at this time.
0 commit comments