Class FleetTools
java.lang.Object
ai.badmonkey.agentspaces.springai.tools.FleetTools
The fleet's tools, as the bean applications inject. Attach them to a
ChatClient explicitly:
ChatClient chat = builder.defaultToolCallbacks(fleetTools.toolCallbacks()).build();
This bean is deliberately not a ToolCallbackProvider itself. Spring
AI's MCP server auto-configuration publishes every ToolCallbackProvider
bean to outside MCP clients, and the fleet crosses that trust boundary only
through the MCP export (F7), which exposes nothing until a deployment names
the agents it may.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.ai.tool.ToolCallback> current()The current tool set.provider()The underlying provider.List<org.springframework.ai.tool.ToolCallback> refresh()Rebuilds the tool set now and reports any change.org.springframework.ai.tool.ToolCallbackProviderThe live tool set, to attach to a ChatClient; each request sees the current fleet.
-
Constructor Details
-
FleetTools
Wraps a provider.- Parameters:
provider- the live fleet tool provider
-
-
Method Details
-
toolCallbacks
public org.springframework.ai.tool.ToolCallbackProvider toolCallbacks()The live tool set, to attach to a ChatClient; each request sees the current fleet. -
current
The current tool set. -
refresh
Rebuilds the tool set now and reports any change. -
provider
The underlying provider.
-