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
fromsmolagentsimportToolCallingAgentagent=ToolCallingAgent(tools=[], model=model)
agent.run("Could you get me the title of the page at url 'https://huggingface.co/blog'?")
but that can't work without any tools, right? Not sure what the tool-calling agent can do without tools, so probably the example should be changed to include some?
╭────────────────────────── New run ──────────────────────────╮
│ │
│ Could you get me the title of the page at url │
│ 'https://huggingface.co/blog'? │
│ │
╰─ LiteLLMModel - openrouter/google/gemini-2.0-flash-001 ─────╯
━━━━━━━━━━━━━━━━━━━━━━━━━━━ Step 1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╭─────────────────────────────────────────────────────────────╮
│ Calling tool: 'final_answer' with arguments: {'answer': 'I │
│ am unable to directly access URLs and extract information │
│ from them. Therefore, I cannot retrieve the title of the │
│ page at the given URL. Apologies for not being able to │
│ fulfill this request, as I lack the necessary tool for web │
│ scraping or accessing external websites.'} │
╰─────────────────────────────────────────────────────────────╯
Final answer: I am unable to directly access URLs and extract
information from them. Therefore, I cannot retrieve the title
of the page at the given URL. Apologies for not being able to
fulfill this request, as I lack the necessary tool for web
scraping or accessing external websites.
[Step 1: Duration 12.92 seconds| Input tokens: 967 | Output
tokens: 57]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
https://huggingface.co/docs/smolagents/v1.11.0/guided_tour lists this example:
but that can't work without any tools, right? Not sure what the tool-calling agent can do without tools, so probably the example should be changed to include some?
Beta Was this translation helpful? Give feedback.
All reactions