Agents are AI programs that operate autonomously.
yfinance
library, along with instructions to display the results in a table.
Setup your virtual environment
Install dependencies
Export your Anthropic key
Run the agent
debug_mode=True
or export AGNO_DEBUG=true
to see the system prompt and user messages.Storage
drivers save chat history and state to a database. When the Agent runs, it reads the chat history and state from the database and add it to the messages list, resuming the conversation and making the Agent stateful.
In this example, we’ll use:
UrlKnowledge
to load Agno documentation to LanceDB, using OpenAI for embeddings.SqliteStorage
to save the Agent’s session history and state in a database.OPENAI_API_KEY
and run the Agent
Install new dependencies
Run the agent
ReasoningTools
is one of the best approaches to improve an Agent’s response quality.Memory
and Reasoning
separately, you don’t need to use them together.