Class AgentExecutor.GraphBuilder
java.lang.Object
org.bsc.langgraph4j.agentexecutor.AgentExecutor.GraphBuilder
- Enclosing class:
- AgentExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
chatLanguageModel
(dev.langchain4j.model.chat.ChatLanguageModel chatLanguageModel) chatLanguageModel
(dev.langchain4j.model.chat.StreamingChatLanguageModel streamingChatLanguageModel) objectsWithTools
(List<Object> objectsWithTools) Deprecated.stateSerializer
(StateSerializer<AgentExecutor.State> stateSerializer) toolSpecification
(dev.langchain4j.agent.tool.ToolSpecification spec, dev.langchain4j.service.tool.ToolExecutor executor) toolSpecification
(Object objectsWithTool) toolSpecification
(ToolNode.Specification toolSpecifications)
-
Constructor Details
-
GraphBuilder
public GraphBuilder()
-
-
Method Details
-
chatLanguageModel
public AgentExecutor.GraphBuilder chatLanguageModel(dev.langchain4j.model.chat.ChatLanguageModel chatLanguageModel) -
chatLanguageModel
public AgentExecutor.GraphBuilder chatLanguageModel(dev.langchain4j.model.chat.StreamingChatLanguageModel streamingChatLanguageModel) -
objectsWithTools
Deprecated. -
toolSpecification
-
toolSpecification
public AgentExecutor.GraphBuilder toolSpecification(dev.langchain4j.agent.tool.ToolSpecification spec, dev.langchain4j.service.tool.ToolExecutor executor) -
toolSpecification
-
stateSerializer
public AgentExecutor.GraphBuilder stateSerializer(StateSerializer<AgentExecutor.State> stateSerializer) -
build
- Throws:
GraphStateException
-