Package com.alibaba.cloud.ai.graph.agent
Class AgentTool
java.lang.Object
com.alibaba.cloud.ai.graph.agent.AgentTool
- All Implemented Interfaces:
BiFunction<String,org.springframework.ai.chat.model.ToolContext, org.springframework.ai.chat.messages.AssistantMessage>
public class AgentTool
extends Object
implements BiFunction<String,org.springframework.ai.chat.model.ToolContext,org.springframework.ai.chat.messages.AssistantMessage>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.chat.messages.AssistantMessagestatic AgentToolcreate(ReactAgent agent) static org.springframework.ai.tool.ToolCallbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
AgentTool
-
-
Method Details
-
apply
public org.springframework.ai.chat.messages.AssistantMessage apply(String input, org.springframework.ai.chat.model.ToolContext toolContext) - Specified by:
applyin interfaceBiFunction<String,org.springframework.ai.chat.model.ToolContext, org.springframework.ai.chat.messages.AssistantMessage>
-
create
-
getFunctionToolCallback
-