Files
povtornyy-ekzamen-graf-s-re…/README.md
T

38 lines
917 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Self-Correcting Agent
This project demonstrates a minimal selfcorrecting agent built with **LangChain** and **LangGraph**.
The agent simply echoes user input, but the structure can be extended to include more complex logic and tools.
## Setup
```bash
# Install Python dependencies
pip install -r requirements.txt
# (Optional) Install Node.js dependencies if needed
npm install
```
## Running
```bash
python main.py
```
You should see output similar to:
```
Resulting state:
HumanMessage: Hello, agent!
AIMessage: Echo: Hello, agent!
```
## Project Structure
- `src/` Core logic (nodes and graph construction).
- `main.py` Entry point that builds and runs the graph.
- `requirements.txt` Python dependencies.
- `package.json` Node.js dependencies (optional).
- `README.md` Project documentation.
Feel free to extend the nodes or add new tools to create a more sophisticated agent.