Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/whitead/robust-mrkl

A langchain agent that retries
https://github.com/whitead/robust-mrkl

Last synced: about 2 months ago
JSON representation

A langchain agent that retries

Awesome Lists containing this project

README

        

# robust-mrkl

A [langchain](https://github.com/hwchase17/langchain) agent that retries and utilizes a system prompt

## Install

```sh
pip install rmrkl
```

## Usage

```py
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(...)

```