Update agent.py
Browse files
agent.py
CHANGED
|
@@ -15,8 +15,12 @@ class BasicAgent:
|
|
| 15 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 16 |
|
| 17 |
# now for the agent:
|
| 18 |
-
|
| 19 |
-
model = LiteLLMModel(model_id=
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
agent = CodeAgent(
|
| 21 |
model=model,
|
| 22 |
tools=[DuckDuckGoSearchTool()]
|
|
|
|
| 15 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 16 |
|
| 17 |
# now for the agent:
|
| 18 |
+
|
| 19 |
+
model = LiteLLMModel(model_id="gemini/gemini-2.5-pro-preview-06-05", api_key=os.getenv(key="MY_GEMINI_API_KEY"))
|
| 20 |
+
|
| 21 |
+
# my_gemini_model = os.getenv(key="GEMINI_MODEL")
|
| 22 |
+
# model = LiteLLMModel(model_id=f"gemini/{my_gemini_model}", api_key=os.getenv(key="MY_GEMINI_API_KEY"))
|
| 23 |
+
|
| 24 |
agent = CodeAgent(
|
| 25 |
model=model,
|
| 26 |
tools=[DuckDuckGoSearchTool()]
|