The Hello World Agent is highly configurable, allowing you to tailor its behavior to your specific needs. This guide provides detailed instructions on how to configure the agent using YAML files located in the agent/config/
directory.
The main configuration files are:
agents.yaml
: Defines agent-specific settings.tasks.yaml
: Configures task parameters and behaviors.analysis.yaml
: Sets rules for data analysis.prompts.yaml
: Contains templates for system prompts and responses.
This file contains settings specific to the agent's operation.
agent_name: "Hello World Agent"
version: "1.0"
default_task: "research"
- agent_name: The display name of the agent.
- version: The current version of the agent.
- default_task: The default task type when none is specified.
This file configures task-related parameters.
tasks:
research:
depth: "comprehensive"
focus_areas:
- "technology"
- "science"
execute:
safety_checks: true
max_runtime: 300
- depth: The level of detail for research tasks.
- focus_areas: Specific areas of interest for research.
- safety_checks: Enable or disable safety checks for execution tasks.
- max_runtime: Maximum allowed runtime for execution tasks (in seconds).
This file sets rules for data analysis.
analysis:
methods:
- "statistical"
- "predictive"
output_format: "summary"
- methods: List of analysis methods to apply.
- output_format: Format of the analysis output (e.g., summary, detailed).
This file contains templates for system prompts and responses.
system_prompt: |
You are an AI assistant focused on {task_type}.
Your primary goal is to {goal_description}.
prompts:
greeting: "Hello! How can I assist you today?"
farewell: "Goodbye! Have a great day!"
- system_prompt: The main prompt that defines the agent's behavior.
- greeting: The message displayed when the agent starts.
- farewell: The message displayed when the agent ends.
The agent can use environment variables for sensitive information, such as API keys. Define these in a .env
file:
OPENROUTER_API_KEY=your_api_key_here
For advanced users, consider implementing dynamic configuration loading in agent/config/config_loader.py
. This allows for runtime configuration changes.
- Consistency: Maintain consistent naming conventions across configuration files.
- Documentation: Comment configuration files for clarity.
- Version Control: Track configuration changes in version control.
- Security: Use environment variables for sensitive information.
Configuration files provide a flexible way to customize the Hello World Agent's behavior. By understanding and modifying these files, you can create a tailored agent experience that meets your specific needs.