Agno supports using local YAML files as a storage backend for Agents using the YamlStorage class.
Usage
yaml_storage_for_agent.py
from agno.agent import Agentfrom agno.tools.duckduckgo import DuckDuckGoToolsfrom agno.storage.yaml import YamlStorageagent = Agent( storage=YamlStorage(dir_path="tmp"), tools=[DuckDuckGoTools()], add_history_to_messages=True,)agent.print_response("How many people live in Canada?")agent.print_response("What is their national anthem called?")
Params
Parameter
Type
Default
Description
dir_path
str
-
Path to the folder to be used to store the YAML files.