SuperPi.AI.ToolSchemas (super_pi v0.1.0)

Copy Markdown View Source

JSON Schema ("type": "object") for the built-in tools, which are registered with a name and a description only. The providers send these as the tool's parameter schema.

The Gemini client converts these to the upper-case dialect that Gemini wants.

Summary

Functions

The parameter schema for tool name. An unknown tool gets an empty object schema.

The parameter schema of a tool spec, under any of the keys in use (parameters, MCP input_schema/inputSchema), else the built-in schema for name.

Functions

for_tool(arg1)

@spec for_tool(String.t()) :: map()

The parameter schema for tool name. An unknown tool gets an empty object schema.

parameters(spec, name)

@spec parameters(map(), String.t()) :: map()

The parameter schema of a tool spec, under any of the keys in use (parameters, MCP input_schema/inputSchema), else the built-in schema for name.