File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ export function parseCapabilityCall(llmOutput: string): ParsedCapabilityCall | n
347347 const trimmedOutput = llmOutput . trim ( ) ;
348348 // Basic check to see if it looks like a JSON object
349349 if ( trimmedOutput . startsWith ( "{" ) && trimmedOutput . endsWith ( "}" ) ) {
350+ //eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
350351 const parsedJson : string = JSON . parse ( trimmedOutput ) ;
351352 const validationResult = CapabilityCallSchema . safeParse ( parsedJson ) ;
352353 if ( validationResult . success ) {
@@ -493,7 +494,7 @@ Please correct the parameters and try again.`;
493494 // Parameters are valid, proceed with execution
494495 try {
495496 logger . info ( `Orchestrator executing capability: ${ capabilityName } ` , { params : validationResult . data } ) ;
496- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment
497+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
497498 const capabilityResult : unknown = await capabilityFunc ( capabilityContext , validationResult . data as any ) ;
498499
499500 agentState . steps . push ( {
You can’t perform that action at this time.
0 commit comments