Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Add text helper to flow skill example (#6406)
Vinicius Brasil1452ee2021b1
diff --git a/lib/crewai/src/crewai/flow/templates/flow_definition_example.yaml b/lib/crewai/src/crewai/flow/templates/flow_definition_example.yamlindex b0d7a8ed1..f01510438 100644--- a/lib/crewai/src/crewai/flow/templates/flow_definition_example.yaml+++ b/lib/crewai/src/crewai/flow/templates/flow_definition_example.yaml@@ -57,7 +57,7 @@ methods:role: Follow-up routergoal: 'Return exactly one bare value: followup or done. Do not include explanation.'backstory: Skilled at routing reviewed research briefs.- input: "${outputs.research_brief.raw}"+ input: "${'Reviewed research: ' + text(outputs, 'research_brief.raw')}"write_followup:listen: followupdo:diff --git a/lib/crewai/tests/test_flow_definition.py b/lib/crewai/tests/test_flow_definition.pyindex a6c040afa..81c0fc174 100644--- a/lib/crewai/tests/test_flow_definition.py+++ b/lib/crewai/tests/test_flow_definition.py@@ -1333,6 +1333,7 @@ def test_skill_documents_flow_wiring():assert isinstance(skill, str)assert "```yaml" in skillassert "[Method](#method-methods)" in skill+ assert "input: \"${'Reviewed research: ' + text(outputs, 'research_brief.raw')}\"" in skillassert 'text(root, "path", "default")' in skill