From 4e6582bd91b812ecb852ed8f412f7bd5cead4c2b Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:30:31 -0700 Subject: [PATCH] tmp --- README.md | 12 ++-- langgraph.json | 2 +- pyproject.toml | 21 ++---- src/agent/__init__.py | 8 +++ src/{react_agent => agent}/configuration.py | 2 +- src/{react_agent => agent}/graph.py | 8 +-- src/{react_agent => agent}/prompts.py | 0 src/{react_agent => agent}/state.py | 0 src/{react_agent => agent}/utils.py | 0 src/react_agent/__init__.py | 9 --- src/react_agent/tools.py | 74 --------------------- tests/integration_tests/test_graph.py | 4 +- tests/unit_tests/test_configuration.py | 2 +- 13 files changed, 29 insertions(+), 113 deletions(-) create mode 100644 src/agent/__init__.py rename src/{react_agent => agent}/configuration.py (98%) rename src/{react_agent => agent}/graph.py (95%) rename src/{react_agent => agent}/prompts.py (100%) rename src/{react_agent => agent}/state.py (100%) rename src/{react_agent => agent}/utils.py (100%) delete mode 100644 src/react_agent/__init__.py delete mode 100644 src/react_agent/tools.py diff --git a/README.md b/README.md index 8aab6d6..a43a9d8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This template showcases a [ReAct agent](https://arxiv.org/abs/2210.03629) implem ![Graph view in LangGraph studio UI](./static/studio_ui.png) -The core logic, defined in `src/react_agent/graph.py`, demonstrates a flexible ReAct agent that iteratively reasons about user queries and executes actions, showcasing the power of this approach for complex problem-solving tasks. +The core logic, defined in `src/agent/graph.py`, demonstrates a flexible ReAct agent that iteratively reasons about user queries and executes actions, showcasing the power of this approach for complex problem-solving tasks. ## What it does @@ -33,7 +33,7 @@ cp .env.example .env 2. Define required API keys in your `.env` file. -The primary [search tool](./src/react_agent/tools.py) [^1] used is [Tavily](https://tavily.com/). Create an API key [here](https://app.tavily.com/sign-in). +The primary [search tool](./src/agent/tools.py) [^1] used is [Tavily](https://tavily.com/). Create an API key [here](https://app.tavily.com/sign-in).