billyaungmyint commited on
Commit
5ae3265
·
verified ·
1 Parent(s): 1ec8f50

Sync from GitHub via hub-sync

Browse files
Files changed (6) hide show
  1. VERSION +1 -1
  2. pyproject.toml +2 -0
  3. test/example +0 -0
  4. test/smol_agent.py +13 -0
  5. test/txt +0 -0
  6. uv.lock +0 -0
VERSION CHANGED
@@ -1 +1 @@
1
- 591b607e9256f858b32b23f79a2badc081ba4a0f
 
1
+ 3d3a30720c329276ef3638512b22d6c3fb1ea25f
pyproject.toml CHANGED
@@ -5,6 +5,8 @@ description = "Add your description here"
5
  readme = "README.md"
6
  requires-python = ">=3.13"
7
  dependencies = [
 
8
  "gradio>=5.49.1",
9
  "huggingface-hub>=1.11.0",
 
10
  ]
 
5
  readme = "README.md"
6
  requires-python = ">=3.13"
7
  dependencies = [
8
+ "ddgs>=9.14.1",
9
  "gradio>=5.49.1",
10
  "huggingface-hub>=1.11.0",
11
+ "smolagents[litellm]>=1.22.0",
12
  ]
test/example DELETED
File without changes
test/smol_agent.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from smolagents import CodeAgent, LiteLLMModel
2
+ import os
3
+
4
+ # Using LiteLLMModel is the safest bet for Google/GitHub/HuggingFace
5
+ # because it handles the API translation for you.
6
+ model = LiteLLMModel(
7
+ model_id="gemini/gemini-2.5-flash", # Let's use Gemini to avoid those GitHub HTML errors
8
+ api_key=os.getenv("GOOGLE_API_KEY")
9
+ )
10
+
11
+ agent = CodeAgent(tools=[], model=model)
12
+
13
+ print(agent.run("Success check: Are you online?"))
test/txt DELETED
File without changes
uv.lock CHANGED
The diff for this file is too large to render. See raw diff