Skip to main content
Configures an Agno AI agent with all its dependencies — model, tools, knowledge base, memory, and storage.

Config

FieldTypeRequiredDefaultDescription
namestringNoResource nameDisplay name for the agent
descriptionstringNoAgent description
rolestringNoAgent role description
modelDependencyYesReference to agno/models/anthropic or agno/models/openai
instructionslist[string]NoSystem instructions for the agent
promptDependencyNoReference to agno/prompt for reusable instructions
toolslist[Dependency]No[]References to agno/tools/mcp or agno/tools/websearch
knowledgeDependencyNoReference to agno/knowledge
dbDependencyNoReference to agno/db/postgres for session storage
memoryDependencyNoReference to agno/memory/manager
markdownbooleanNofalseFormat responses as Markdown
add_datetime_to_contextbooleanNofalseInclude current datetime in context
read_chat_historybooleanNoAutoRead chat history from DB (auto-enabled when db is set)
add_history_to_contextbooleanNoAutoAdd history to context (auto-enabled when db is set)
num_history_runsintegerNoNumber of previous runs to include in history
enable_agentic_memorybooleanNofalseEnable agentic memory capabilities
update_memory_on_runbooleanNofalseUpdate memory after each run
add_memories_to_contextbooleanNoAdd stored memories to context
enable_session_summariesbooleanNofalseEnable session summary generation

Outputs

FieldTypeDescription
specobjectSerialized agent specification for runtime reconstruction
pip_dependencieslist[string]Python packages required by agent tools and knowledge

Dependencies

Depends on:
  • agno/models/anthropic or agno/models/openai (required) — the LLM powering the agent
  • agno/tools/mcp or agno/tools/websearch (optional) — tool integrations
  • agno/knowledge (optional) — semantic search knowledge base
  • agno/memory/manager (optional) — persistent memory
  • agno/db/postgres (optional) — session and chat history storage
  • agno/prompt (optional) — reusable prompt template
Depended on by:
  • agno/team — as a team member
  • agno/runner — for deployment to Kubernetes

Example

provider: agno
resource: agent
name: my-assistant
config:
  description: "A helpful AI assistant"
  model:
    provider: agno
    resource: models/anthropic
    name: claude
  instructions:
    - "You are a helpful assistant."
    - "Always respond concisely."
  tools:
    - provider: agno
      resource: tools/websearch
      name: search
  markdown: true

Notes

  • The agent resource is stateless — it produces a serializable spec used by agno/runner for deployment.
  • When db is set, read_chat_history and add_history_to_context are automatically enabled unless explicitly overridden.
  • Updating a dependency (e.g., changing the model) triggers the agent to rebuild automatically.