Class ToolRegistry
java.lang.Object
com.cockroachlabs.data.continuum.agent.ToolRegistry
Reflects over
@AgentTool-annotated methods on provider objects and
exposes them as described, invokable tools. Least-privilege: destructive tools
are only registered when allowDestructive is set.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAll registered tool descriptors, in registration order (MCP tools/list).booleanInvoke a tool by name with named arguments (MCP tools/call).voidRegister every eligible@AgentToolmethod onprovider.
-
Constructor Details
-
ToolRegistry
public ToolRegistry()
-
-
Method Details
-
register
Register every eligible@AgentToolmethod onprovider. -
descriptors
All registered tool descriptors, in registration order (MCP tools/list). -
has
-
invoke
Invoke a tool by name with named arguments (MCP tools/call).
-