You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated model from `llama-3.3-70b-versatile` to `llama-3.1-8b-instant`
as with `llama-3.3-70b-versatile` model the specific tool calling
example is not working consistently .
please refer to the issue
agno-agi/agno#2601
### **Description**
The exact example given for Groq Agent with tools is not wroking
properly .
Getting some unexpected errors.
### **Steps to Reproduce**
Copy the example given on the following page
https://docs.agno.com/examples/models/groq/tool_use
```py
from agno.agent import Agent
from agno.models.groq import Groq
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.newspaper4k import Newspaper4kTools
agent = Agent(
model=Groq(id="llama-3.3-70b-versatile"),
tools=[DuckDuckGoTools(), Newspaper4kTools()],
description="You are a senior NYT researcher writing an article on a topic.",
instructions=[
"For a given topic, search for the top 5 links.",
"Then read each URL and extract the article text, if a URL isn't available, ignore it.",
"Analyse and prepare an NYT worthy article based on the information.",
],
markdown=True,
show_tool_calls=True,
add_datetime_to_instructions=True,
)
agent.print_response("Simulation theory", stream=True)
```
### **Expected Behavior**
Output should be an article on particluar topic.
### **Actual Behavior**
```py
groq.APIError: Failed to call a function. Please adjust your prompt. See 'failed_generation' for more details.
```
### **Screenshots or Logs **

### **Environment**
```bash
OS: Linux 6.8.0-56-generic
Python Version: 3.12.3
groq==0.20.0
duckduckgo-search==7.5.5
newspaper4k==0.9.3.1
lxml-html-clean==0.4.1
agno==1.2.6
```
### **Solution**
With changed model the example works perfectly . Seems
`llama-3.3-70b-versatile` is unable to handle the tool calling for the
particlular example .
Refer https://docs.agno.com/models/groq
Worked perfectly with
```py
from agno.agent import Agent
from agno.models.groq import Groq
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.newspaper4k import Newspaper4kTools
agent = Agent(
model=Groq(id="llama-3.1-8b-instant"),
tools=[DuckDuckGoTools(), Newspaper4kTools()],
description="You are a senior NYT researcher writing an article on a topic.",
instructions=[
"For a given topic, search for the top 5 links.",
"Then read each URL and extract the article text, if a URL isn't available, ignore it.",
"Analyse and prepare an NYT worthy article based on the information.",
],
markdown=True,
show_tool_calls=True,
add_datetime_to_instructions=True,
)
agent.print_response("Simulation theory", stream=True)
```
### **Proof**

Co-authored-by: Yash Pratap Solanky <[email protected]>
0 commit comments