Copyright | (c) 2025 Tushar Adhatrao |
---|---|
License | MIT |
Maintainer | Tushar Adhatrao <[email protected]> |
Safe Haskell | None |
Language | Haskell2010 |
Langchain.Agents.React
Description
ReAct forces LLM to reflect on your question and injects responses as if LLM figured them out by itself. This allows you to connect any datasource or tool tou your LLM.
Synopsis
- defaultReactPromptTemplate :: PromptTemplate
- runReactAgent :: LLM llm => llm -> Maybe (LLMParams llm) -> [AnyTool] -> Text -> IO (Either String AgentFinish)
- data LLM llm => ReactAgent llm = ReactAgent {
- reactLLM :: llm
- reactLLMParams :: Maybe (LLMParams llm)
- reactToolList :: [AnyTool]
Documentation
defaultReactPromptTemplate :: PromptTemplate Source #
Default system prompt for React Agent
runReactAgent :: LLM llm => llm -> Maybe (LLMParams llm) -> [AnyTool] -> Text -> IO (Either String AgentFinish) Source #
Run React Agent
data LLM llm => ReactAgent llm Source #
ReactAgent Type
Constructors
ReactAgent | |
Fields
|
Instances
LLM llm => Agent (ReactAgent llm) Source # | |
Defined in Langchain.Agents.React Methods planNextAction :: BaseMemory m => ReactAgent llm -> AgentState m -> IO (Either String AgentStep) Source # agentPrompt :: ReactAgent llm -> IO PromptTemplate Source # agentTools :: ReactAgent llm -> IO [AnyTool] Source # |