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

https://github.com/nickchecan/reflexion-agent

AI Application Development - Concept Study - Reflexion Agent
https://github.com/nickchecan/reflexion-agent

agent artificial-intelligence langchain langgraph langsmith poetry python

Last synced: 2 months ago
JSON representation

AI Application Development - Concept Study - Reflexion Agent

Awesome Lists containing this project

README

          

# reflexion-agent

The goal of this reflexion agent is to create a very detailed article about a topic we will provide.

```mermaid
%%{init: {'flowchart': {'curve': 'linear'}}}%%
graph TD;
__start__([

__start__

]):::first
draft(draft)
execute_tools(execute_tools)
revise(revise)
__end__([

__end__

]):::last
__start__ --> draft;
draft --> execute_tools;
execute_tools --> revise;
revise -.-> draft;
revise -.-> execute_tools;
revise -.-> __end__;
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc
```

### Tools for this project
- OpenAI GPT4 Turbo
- Function Calling
- Tavily (Search Engine)
- LangSmith

#### Prompting Concepts:
- **Ouput Parser** to get structure outputs

### Installation
After initialize the poetry project, you can add the following dependencies:
```sh
poetry add python-dotenv black isort langchain langchain-openai langgraph langchain-community
```

### Environment
Here is the template for the .env file:
```
OPENAI_API_KEY=
TAVILY_API_KEY=
LANGCHAIN_API_KEY=
LANGCHAIN_TRACING_V2=true
LANGCHAIN_PROJECT=
```