If youāre new to building agents, make sure to first read theĀ intro to agentsĀ and theĀ guided tour of smolagents. Code agents MultipleĀ researchĀ papersĀ have shown that having the LLM write its actions (the tool calls) in code is much better than the current standard format for tool calling, which is across the industry different shades of āwriting actions...
In this tutorial, weāll see how to implement an agent that leverages SQL using smolagents. Letās start with the golden question: why not keep it simple and use a standard text-to-SQL pipeline? A standard text-to-sql pipeline is brittle, since the generated SQL query can be incorrect. Even worse, the query could be incorrect, but not raise...