Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update swot-agent to latest dependencies #1599

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gemini/sample-apps/swot-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The agent includes three tools:
python main.py
```

You can also use the [FastAPI CLI](https://fastapi.tiangolo.com/deployment/cli/):
You can also use the [FastAPI CLI](https://fastapi.tiangolo.com/fastapi-cli/):

```bash
fastapi dev --port 8080
Expand Down
3 changes: 1 addition & 2 deletions gemini/sample-apps/swot-agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,10 @@ async def analyze_competition(
logging.info("Error: Gemini client not initialized.")
return ""
try:
response = await ctx.deps.client.generate_content_async(
response = await ctx.deps.client.aio.models.generate_content(
model=MODEL,
contents=prompt,
)

return response.text
except Exception as e:
logging.info(f"Error analyzing competition: {e}")
Expand Down
13 changes: 5 additions & 8 deletions gemini/sample-apps/swot-agent/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
pydantic-ai==0.0.12
beautifulsoup4==4.12.3
praw==7.8.1
grpcio==1.67.1
grpcio-status==1.67.1
fastapi[standard]==0.115.6
google-genai==0.3.0
httpx==0.27.2
itsdangerous==2.2.0
pytest-asyncio==0.25.0
praw==7.8.1
pydantic-ai[vertexai]==0.0.17
pytest-asyncio==0.25.1
pytest==8.3.4
httpx==0.28.1
google-genai==0.2.2
google-cloud-aiplatform==1.74.0
Loading