Skip to content

Agent Configuration Documentation

Comprehensive documentation for agent configurations in Bast AI Agno.

Reference: Agno Agent Documentation


Documentation Index

📚 Core Documentation

Agent Configurations

  1. Quick Start Guide
  2. Get started in 5 minutes
  3. Basic usage patterns
  4. Common configurations
  5. Troubleshooting

  6. Configuration Guide

  7. Complete configuration guide
  8. All configuration types
  9. Configuration utilities
  10. Decision trees
  11. Best practices

  12. Configuration Schema

  13. Complete field reference
  14. Field types and defaults
  15. Field dependencies
  16. Validation rules
  17. Common patterns

  18. Examples

  19. Practical examples
  20. Real-world use cases
  21. Integration patterns
  22. Advanced scenarios

  23. Agent Templates

  24. Pre-configured agent templates
  25. RAG agent template
  26. Tool-using agent template
  27. Conversational agent template
  28. Reasoning agent template
  29. Template usage examples

Workflow Configurations

  1. Workflow Guide
  2. Complete workflow documentation
  3. Workflow factory usage
  4. Workflow configurations
  5. Step definitions (agents, teams, functions)
  6. Workflow storage
  7. Integration tests
  8. Examples and best practices

Get Started

Learn More

See Examples


Documentation Structure

docs/
├── README.md                      # This file - Documentation index
├── AGENT_CONFIG_QUICK_START.md   # Agent quick start guide
├── AGENT_CONFIGURATIONS.md        # Complete agent configuration guide
├── AGENT_CONFIG_SCHEMA.md        # Agent schema reference
├── AGENT_CONFIG_EXAMPLES.md      # Agent practical examples
├── AGENT_TEMPLATES.md            # Agent templates guide
└── WORKFLOWS.md                  # Workflow configuration guide

Recent Updates

New Workflow System (v0.1.7)

Added complete workflow support with configuration-driven workflow creation:

  1. AgnoWorkflowFactory - Workflow factory for building workflows from configuration/templates
  2. Located in: bp/agno_workflows.py
  3. Methods: create_workflow_from_json(), create_workflow(), create_workflow_from_template()
  4. Supports agents, teams, and functions as workflow steps
  5. Automatic workflow storage configuration

  6. Workflow Configurations - Pre-configured workflow templates

  7. Located in: dto/workflows/
  8. simple_workflow_config.py - Basic workflow with researcher and writer agents
  9. Supports sequential agent execution patterns

  10. Separate Workflow Storage - Dedicated MongoDB database for workflows

  11. Database: {prefix}_agno_workflow (separate from agent storage)
  12. Located in: bp/mongodb_resources.py
  13. Method: get_workflow_storage(workflow_name)

  14. Integration Tests - Comprehensive workflow tests

  15. Located in: integration/workflows/simple_workflow_check.py
  16. Tests workflow creation, execution, storage, and error handling
  17. Includes actual workflow execution using workflow.run()

  18. DTO Folder Reorganization - Improved structure

  19. dto/agents/ - All agent configurations
  20. dto/utils/ - All utility functions
  21. dto/workflows/ - Workflow configurations
  22. Backward compatibility maintained with stub files

New Agent Configurations

Added three new agent configurations that mimic existing Bast AI models:

  1. greeting_agent_config - Friendly greeting assistant (mimics greeting model)
  2. Responds with warm, welcoming greetings
  3. Located in: core_agent_configs.py
  4. Use case: Initial user interactions

  5. end_conversation_agent_config - Polite conversation ending assistant (mimics end_conversation model)

  6. Responds with warm, closing messages
  7. Located in: core_agent_configs.py
  8. Use case: Ending conversations gracefully

  9. early_exit_agent_config - Quick early exit decision assistant (mimics early_exit model)

  10. Quickly determines if a conversation should exit early
  11. Includes structured output schema (EarlyExitDecision)
  12. Located in: core_agent_configs.py
  13. Use case: Fast decision-making for conversation flow control

New Output Schema

EarlyExitDecision - Output schema for early exit decision analysis - Located in: dto/output/early_exit_output.py - Used with: early_exit_agent_config - Fields: - action: "HARD_EXIT" | "SOFT_EXIT" | "KEEP_GOING" - reason: str (e.g., "EMPTY_INPUT", "HAS_ENDING_PHRASE", "GREETING_MSG", "NO_EXIT")


External Resources

Agent Resources

Workflow Resources


Module Structure

Business Process Modules

  • bp/agno_workflows.py - AgnoWorkflowFactory class for creating workflows from configuration/templates
  • bp/mongodb_resources.py - MongoDB storage resources with separate workflow database
  • bp/agno_agents.py - AgnoAgentFactory class for creating agents
  • bp/agno_teams.py - AgnoTeamFactory class for creating teams
  • bp/kb_resources.py - Knowledge base resources

Configuration Modules

Agent Configurations (dto/agents/)

  • core_agent_configs.py - Core agent settings & basic configurations (includes greeting, end_conversation, early_exit configs)
  • memory_configs.py - Memory configurations
  • storage_session_configs.py - Storage & sessions configurations
  • knowledge_configs.py - Knowledge (Agentic RAG) configurations
  • tools_configs.py - Tools configurations
  • reasoning_configs.py - Reasoning configurations
  • dependencies_configs.py - Dependencies configurations
  • context_engineering_configs.py - Context engineering configurations
  • hooks_guardrails_configs.py - Hooks & guardrails configurations
  • full_featured_configs.py - Full-featured configurations

Workflow Configurations (dto/workflows/)

  • simple_workflow_config.py - Basic workflow template with researcher and writer agents

Output Schema Modules

  • output/early_exit_output.py - Early exit decision output schema (EarlyExitDecision)

Utility Modules (dto/utils/)

  • agent_tool_utils.py - Tools utilities
  • agent_reasoning_utils.py - Reasoning utilities
  • agent_session_utils.py - Session utilities
  • agent_dependency_utils.py - Dependency utilities
  • agent_context_utils.py - Context utilities
  • agent_guardrails_utils.py - Guardrails utilities
  • agent_validation_utils.py - Validation utilities
  • agent_merge_utils.py - Merge utilities
  • agent_preset_utils.py - Preset utilities

Getting Help

For Agents

  1. Check the Agent Quick Start Guide for common patterns
  2. Review the Agent Configuration Guide for detailed information
  3. See Agent Examples for real-world use cases
  4. Refer to Agno Agent Documentation for Agno-specific details

For Workflows

  1. Check the Workflow Guide for complete workflow documentation
  2. Review workflow examples and patterns in the Workflow Guide
  3. See integration tests in integration/workflows/ for practical examples
  4. Refer to Agno Workflow Documentation for Agno-specific details