Skip to content

Invalid schema for function 'namespaces_list': In context=(), object schema missing properties. #340

@manusa

Description

@manusa

Description

Some users are reporting issues with the tool definitions (after Toolsets initial implementation).

See #339

With the new approach to tool definitions, the input schema for tools with no parameters now looks like:

{"type":"object"}

As opposed to:

{"type":"object","properties":{}}

Both should be valid jsonschemas, however, both prove to cause issues in different clients or inference servers.

As an example, the empty properties definition used to cause problems in Gemini:

GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[params].properties: should be non-empty for OBJECT type

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions