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
- Host: GitHub
- URL: https://github.com/nickchecan/reflexion-agent
- Owner: NickChecan
- Created: 2025-02-08T20:31:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T01:34:22.000Z (over 1 year ago)
- Last Synced: 2025-06-17T19:50:57.219Z (about 1 year ago)
- Topics: agent, artificial-intelligence, langchain, langgraph, langsmith, poetry, python
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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=
```