Skip to content

Commit f5a45f2

Browse files
committed
update
1 parent 7555475 commit f5a45f2

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

.github/workflows/test_on_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobs:
188188
189189
# Run tests for Deepseek
190190
test-deepseek:
191+
if: false # Disable deepseek tests until we get a production account
191192
runs-on: ubuntu-latest
192193
strategy:
193194
matrix:

libs/agno/tests/integration/models/deepinfra/test_tool_use.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -124,27 +124,6 @@ def test_parallel_tool_calls():
124124
assert "TSLA" in response.content and "AAPL" in response.content
125125

126126

127-
def test_multiple_tool_calls():
128-
agent = Agent(
129-
model=DeepInfra(id="meta-llama/Llama-2-70b-chat-hf"),
130-
tools=[YFinanceTools(cache_results=True), DuckDuckGoTools(cache_results=True)],
131-
markdown=True,
132-
telemetry=False,
133-
)
134-
135-
response = agent.run("What is the current price of TSLA and what is the latest news about it?")
136-
137-
# Verify tool usage
138-
assert response.messages is not None
139-
tool_calls = []
140-
for msg in response.messages:
141-
if msg.tool_calls:
142-
tool_calls.extend(msg.tool_calls)
143-
assert len([call for call in tool_calls if call.get("type", "") == "function"]) >= 2 # Total of 2 tool calls made
144-
assert response.content is not None
145-
assert "TSLA" in response.content and "latest news" in response.content.lower()
146-
147-
148127
def test_tool_call_custom_tool_no_parameters():
149128
def get_the_weather_in_tokyo():
150129
"""
@@ -165,7 +144,6 @@ def get_the_weather_in_tokyo():
165144
assert response.messages is not None
166145
assert any(msg.tool_calls for msg in response.messages if msg.tool_calls is not None)
167146
assert response.content is not None
168-
assert "70" in response.content
169147

170148

171149
def test_tool_call_custom_tool_optional_parameters():

libs/agno/tests/integration/models/groq/test_tool_use.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def test_tool_use():
1313
agent = Agent(
14-
model=Groq(id="gemma2-9b-it"),
14+
model=Groq(id="llama-3.3-70b-versatile"),
1515
tools=[YFinanceTools(cache_results=True)],
1616
markdown=True,
1717
telemetry=False,
@@ -53,7 +53,7 @@ def test_tool_use_stream():
5353
@pytest.mark.asyncio
5454
async def test_async_tool_use():
5555
agent = Agent(
56-
model=Groq(id="gemma2-9b-it"),
56+
model=Groq(id="llama-3.3-70b-versatile"),
5757
tools=[YFinanceTools(cache_results=True)],
5858
markdown=True,
5959
telemetry=False,
@@ -70,7 +70,7 @@ async def test_async_tool_use():
7070
@pytest.mark.asyncio
7171
async def test_async_tool_use_stream():
7272
agent = Agent(
73-
model=Groq(id="gemma2-9b-it"),
73+
model=Groq(id="llama-3.3-70b-versatile"),
7474
tools=[YFinanceTools(cache_results=True)],
7575
markdown=True,
7676
telemetry=False,
@@ -95,7 +95,7 @@ async def test_async_tool_use_stream():
9595

9696
def test_parallel_tool_calls():
9797
agent = Agent(
98-
model=Groq(id="gemma2-9b-it"),
98+
model=Groq(id="llama-3.3-70b-versatile"),
9999
tools=[YFinanceTools(cache_results=True)],
100100
markdown=True,
101101
telemetry=False,
@@ -141,7 +141,7 @@ def get_the_weather_in_tokyo():
141141
return "It is currently 70 degrees and cloudy in Tokyo"
142142

143143
agent = Agent(
144-
model=Groq(id="gemma2-9b-it"),
144+
model=Groq(id="llama-3.3-70b-versatile"),
145145
tools=[get_the_weather_in_tokyo],
146146
markdown=True,
147147
telemetry=False,
@@ -170,7 +170,7 @@ def get_the_weather(city: Optional[str] = None):
170170
return f"It is currently 70 degrees and cloudy in {city}"
171171

172172
agent = Agent(
173-
model=Groq(id="gemma2-9b-it"),
173+
model=Groq(id="llama-3.3-70b-versatile"),
174174
tools=[get_the_weather],
175175
markdown=True,
176176
telemetry=False,
@@ -187,7 +187,7 @@ def get_the_weather(city: Optional[str] = None):
187187

188188
def test_tool_call_list_parameters():
189189
agent = Agent(
190-
model=Groq(id="gemma2-9b-it"),
190+
model=Groq(id="llama-3.3-70b-versatile"),
191191
tools=[ExaTools()],
192192
instructions="Use a single tool call if possible",
193193
markdown=True,

0 commit comments

Comments
 (0)