langchain-hs-0.0.2.0: Haskell implementation of Langchain
Copyright(c) 2025 Tushar Adhatrao
LicenseMIT
MaintainerTushar Adhatrao <[email protected]>
Safe HaskellNone
LanguageHaskell2010

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

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 

Instances

Instances details
LLM llm => Agent (ReactAgent llm) Source # 
Instance details

Defined in Langchain.Agents.React