ToolHintSource

org.llm4s.toolapi.ToolHintSource
@Experimental

A ToolRegistry that knows the ToolHints of its tools from elsewhere: an MCP server's tool annotations, which MCPToolRegistry in llm4s-mcp reports for a server configured as trusted (#3080).

AgentBuilder.withTools(registry) in llm4s-agent gives each tool of a registry that is one the hints it reports, so a middleware that reads them (ApprovalMiddleware.unlessReadOnly) sees them. A tool it reports None for keeps the conservative defaults, ToolHints.default.

Attributes

Source
ToolHintSource.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

The hints of the tool name, when this source knows them; None leaves the defaults.

The hints of the tool name, when this source knows them; None leaves the defaults.

Attributes

Source
ToolHintSource.scala