Tools
Tools enable tambo to interact with your application's APIs, agents, and other server-side functionality.
Tools enable tambo to interact with your application's data and functionality. They provide a type-safe way to extend the AI's capabilities with custom business logic. When applicable, tambo will automatically call these tools and use their outputs to help decide how to respond to a message, what component to show, and what data to fill the component with.
Tambo uses existing LLM tool calling capabilities to call your tools. For more details see the tool documentation at OpenAI and Anthropic.
Adding a Tool
Define your tool function and register it with tambo. Tools are asynchronous functions that take in a single argument and return a single value.
Now tambo can fetch weather information for a city when responding to a message!