Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/whitead/robust-mrkl
- Owner: whitead
- License: mit
- Created: 2023-04-22T17:07:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-11T03:58:57.000Z (over 1 year ago)
- Last Synced: 2024-09-25T20:55:01.716Z (3 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 48
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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, RetryAgentExecutortools = ...
llm = ..agent = RetryAgentExecutor.from_agent_and_tools(
tools=tools,
agent=ChatZeroShotAgent.from_llm_and_tools(llm, tools),
verbose=True,
)
agent.run(...)```