Skip to content

Commit 1e525fc

Browse files
authored
Langgraph with Gemini ready to Test PR ( #28 ) from solve-ease/gemini-impl
Langraph issue and Gemini Client Fixed
2 parents 7b80246 + 9723013 commit 1e525fc

56 files changed

Lines changed: 1230 additions & 2663 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.12-slim as builder
2+
3+
WORKDIR /app
4+
COPY pyproject.toml .
5+
RUN pip install -e .
6+
7+
FROM python:3.12-slim as runtime
8+
9+
WORKDIR /app
10+
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
11+
COPY --from=builder /usr/local/bin /usr/local/bin
12+
COPY src/ ./src/
13+
14+
EXPOSE 8000
15+
CMD ["uvicorn", "src.api.app:create_app", "--host", "0.0.0.0", "--port", "8000", "--factory"]

agent_system/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

agent_system/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,20 @@ A self-optimizing blog generation agent that creates SEO-optimized content using
5959

6060
```bash
6161
git clone <repository-url>
62-
cd gemini-with-search
62+
cd agent_system
6363
```
6464

6565
2. **Create virtual environment**
6666

6767
```bash
68-
python -m venv venv
69-
source venv/bin/activate # On Windows: venv\Scripts\activate
68+
python -m venv .venv
69+
source .venv/bin/activate # On Windows: venv\Scripts\activate
7070
```
7171

7272
3. **Install dependencies**
7373

7474
```bash
75+
pip install -r requirements.txt
7576
pip install -e .
7677
```
7778

@@ -93,7 +94,7 @@ Create a `.env` file with the following variables:
9394

9495
```env
9596
GOOGLE_API_KEY=your_google_api_key_here
96-
GEMINI_MODEL=gemini-1.5-pro-latest
97+
GEMINI_MODEL=gemini-2.5-flash
9798
LANGSMITH_API_KEY=your_langsmith_api_key_here
9899
LANGSMITH_PROJECT=gemini-search-blog-agent
99100
MAX_CONCURRENT_REQUESTS=10

agent_system/docker-compose.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

agent_system/requirements.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ anyio==4.9.0
66
attrs==25.3.0
77
babel==2.17.0
88
beautifulsoup4==4.13.4
9+
black==25.1.0
910
cachetools==5.5.2
1011
certifi==2025.7.14
1112
charset-normalizer==3.4.2
@@ -21,6 +22,8 @@ google-api-core==2.25.1
2122
google-api-python-client==2.176.0
2223
google-auth==2.40.3
2324
google-auth-httplib2==0.2.0
25+
google-custom-search==3.0.0
26+
google-genai==1.26.0
2427
google-generativeai==0.8.5
2528
googleapis-common-protos==1.70.0
2629
greenlet==3.2.3
@@ -55,9 +58,13 @@ multidict==6.6.3
5558
mypy_extensions==1.1.0
5659
numpy==2.3.1
5760
openai==1.97.0
61+
-e git+ssh://git@github.com/solve-ease/OptiBlogAi.git@98832b544e26ab25cf2140ab04fcd78e8fdbd151#egg=optiblogai&subdirectory=agent_system
5862
orjson==3.11.0
5963
ormsgpack==1.10.0
6064
packaging==25.0
65+
pathspec==0.12.1
66+
platformdirs==4.3.8
67+
playwright==1.53.0
6168
propcache==0.3.2
6269
proto-plus==1.26.1
6370
protobuf==5.29.5
@@ -66,6 +73,7 @@ pyasn1_modules==0.4.2
6673
pydantic==2.11.7
6774
pydantic-settings==2.10.1
6875
pydantic_core==2.33.2
76+
pyee==13.0.0
6977
pyparsing==3.2.3
7078
python-dateutil==2.9.0.post0
7179
python-dotenv==1.1.1
@@ -81,7 +89,7 @@ soupsieve==2.7
8189
SQLAlchemy==2.0.41
8290
starlette==0.47.1
8391
structlog==25.4.0
84-
tenacity==9.1.2
92+
tenacity==8.5.0
8593
tiktoken==0.9.0
8694
tld==0.13.1
8795
tqdm==4.67.1

agent_system/smoke_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import asyncio
2+
from src.agents.graph import get_blog_generation_graph
3+
4+
async def smoke():
5+
g = await get_blog_generation_graph()
6+
result = await g.run_blog_generation("AI trends 2025")
7+
print("✅ SUCCESS" if result["success"] else "❌ FAILED", result["final_score"])
8+
9+
asyncio.run(smoke())

agent_system/src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"""Gemini-with-Search Blog Agent."""
1+
"""Gemini-with-Search Blog Agent."""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"""LangGraph agent modules."""
1+
"""LangGraph agent modules."""

0 commit comments

Comments
 (0)