Skip to content

Invalid Tool SchemasΒ #11

@strawgate

Description

@strawgate

It seems the generated tool schemas are invalid with pickier providers rejecting the tool schemas:

BadRequestError: litellm.BadRequestError: VertexAIException BadRequestError - {                         
                               "error": {                                                                                            
                                 "code": 400,                                                                                        
                                 "message": "Invalid JSON payload received. Unknown name \"type\" at                                 
                             'tools[0].function_declarations[0].parameters.properties[0].value.items.properties[1                    
                             ].value.items.properties[1].value': Proto field is not repeating, cannot start                          
                             list.\nInvalid JSON payload received. Unknown name \"type\" at                                          
                             'tools[0].function_declarations[3].parameters.properties[2].value.items.properties[1                    
                             ].value': Proto field is not repeating, cannot start list.",                                            
                                 "status": "INVALID_ARGUMENT",                                                                       
                                 "details": [                                                                                        
                                   {                                                                                                 
                                     "@type": "type.googleapis.com/google.rpc.BadRequest",                                           
                                     "fieldViolations": [                                                                            
                                       {                                                                                             
                                         "field":                                                                                    
                             "tools[0].function_declarations[0].parameters.properties[0].value.items.properties[1                    
                             ].value.items.properties[1].value",                                                                     
                                         "description": "Invalid JSON payload received. Unknown name \"type\" at                     
                             'tools[0].function_declarations[0].parameters.properties[0].value.items.properties[1                    
                             ].value.items.properties[1].value': Proto field is not repeating, cannot start                          
                             list."                                                                                                  
                                       },                                                                                            
                                       {                                                                                             
                                         "field":                                                                                    
                             "tools[0].function_declarations[3].parameters.properties[2].value.items.properties[1                    
                             ].value",                                                                                               
                                         "description": "Invalid JSON payload received. Unknown name \"type\" at                     
                             'tools[0].function_declarations[3].parameters.properties[2].value.items.properties[1                    
                             ].value': Proto field is not repeating, cannot start list."                                             
                                       }                                                                                             
                                     ]                                                                                               
                                   }                                                                                                 
                                 ]                                                                                                   
                               }                                                                                                     
                             }       

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions