Enkaidu::MCPFunction
Inherits LLM::Function < Reference < Object
Defines a tool / function from an MCP server
Because of an MCP function's input/output schema-only definitions,
this class is derived from LLM::Function.
Constructors
Initialize with the JSON representation of the tool return by MCP "tools/list", and the MCPC connection to use to make the tool call
Instance methods
description
Sourceinput_json_schema(json : JSON::Builder)
The input schema for the parameters to this function, into the JSON builder.
name
Sourcetitle
Sourceto_json
Sourceto_s(io)
Source