Files
cleveragents-core/tests/features/complex_templates.feature

24 lines
696 B
Gherkin

Feature: Complex Template Processing
As a CleverAgents user
I want to use complex Jinja2 templates in YAML
So that I can create sophisticated dynamic configurations
Background:
Given the template processing system is initialized
Scenario: Process YAML with Jinja2 loops
Given I have a YAML configuration with templates:
"""
agents:
{% for i in range(count) %}
agent_{{ i }}:
type: llm
config:
model: gpt-4
{% endfor %}
"""
And I have a template context:
| key | value |
| count | 3 |
When I process the YAML with the template processor
Then the result should have 3 agents