ExUtcp.Tools (ex_utcp v0.2.8)
View SourceTool definitions and management for UTCP.
This module handles tool schemas, registration, and discovery.
Summary
Functions
Extracts the provider name from a full tool name.
Extracts the tool name without provider prefix.
Checks if a tool matches a search query.
Creates a new tool input/output schema.
Creates a new tool definition.
Normalizes tool name by ensuring it has a provider prefix.
Validates a tool definition.
Functions
Extracts the provider name from a full tool name.
Extracts the tool name without provider prefix.
@spec matches_query?(ExUtcp.Types.tool(), String.t()) :: boolean()
Checks if a tool matches a search query.
@spec new_schema(keyword()) :: ExUtcp.Types.tool_input_output_schema()
Creates a new tool input/output schema.
@spec new_tool(keyword()) :: ExUtcp.Types.tool()
Creates a new tool definition.
Normalizes tool name by ensuring it has a provider prefix.
@spec validate_tool(ExUtcp.Types.tool()) :: :ok | {:error, String.t()}
Validates a tool definition.