Skip to content

whitead/robust-mrkl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robust-mrkl

A langchain agent that retries and utilizes a system prompt

Install

pip install rmrkl

Usage

from rmrkl import ChatZeroShotAgent, RetryAgentExecutor

tools = ...
llm = ..

agent = RetryAgentExecutor.from_agent_and_tools(
    tools=tools,
    agent=ChatZeroShotAgent.from_llm_and_tools(llm, tools),
    verbose=True,
)
agent.run(...)