Package com.alibaba.cloud.ai.tool
Class ObservableToolCallingManager
java.lang.Object
com.alibaba.cloud.ai.tool.ObservableToolCallingManager
- All Implemented Interfaces:
org.springframework.ai.model.tool.ToolCallingManager
public class ObservableToolCallingManager
extends Object
implements org.springframework.ai.model.tool.ToolCallingManager
Inspired from org.springframework.ai.model.tool.DefaultToolCallingManager.
- Author:
- Lumian
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionObservableToolCallingManager(io.micrometer.observation.ObservationRegistry observationRegistry, org.springframework.ai.tool.resolution.ToolCallbackResolver toolCallbackResolver, org.springframework.ai.tool.execution.ToolExecutionExceptionProcessor toolExecutionExceptionProcessor) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()org.springframework.ai.model.tool.ToolExecutionResultexecuteToolCalls(org.springframework.ai.chat.prompt.Prompt prompt, org.springframework.ai.chat.model.ChatResponse chatResponse) List<org.springframework.ai.tool.definition.ToolDefinition>resolveToolDefinitions(org.springframework.ai.model.tool.ToolCallingChatOptions chatOptions)
-
Constructor Details
-
ObservableToolCallingManager
public ObservableToolCallingManager(io.micrometer.observation.ObservationRegistry observationRegistry, org.springframework.ai.tool.resolution.ToolCallbackResolver toolCallbackResolver, org.springframework.ai.tool.execution.ToolExecutionExceptionProcessor toolExecutionExceptionProcessor)
-
-
Method Details
-
resolveToolDefinitions
public List<org.springframework.ai.tool.definition.ToolDefinition> resolveToolDefinitions(org.springframework.ai.model.tool.ToolCallingChatOptions chatOptions) - Specified by:
resolveToolDefinitionsin interfaceorg.springframework.ai.model.tool.ToolCallingManager
-
executeToolCalls
public org.springframework.ai.model.tool.ToolExecutionResult executeToolCalls(org.springframework.ai.chat.prompt.Prompt prompt, org.springframework.ai.chat.model.ChatResponse chatResponse) - Specified by:
executeToolCallsin interfaceorg.springframework.ai.model.tool.ToolCallingManager
-
builder
-