@@ -389,7 +389,7 @@ public function testProcessorTagsUseFullAgentId()
389389 ['service ' => 'some_tool ' , 'description ' => 'Test tool ' ],
390390 ],
391391 'structured_output ' => true ,
392- 'system_prompt ' => 'You are a test assistant. ' ,
392+ 'prompt ' => 'You are a test assistant. ' ,
393393 ],
394394 ],
395395 ],
@@ -440,14 +440,14 @@ public function testMultipleAgentsWithProcessors()
440440 'tools ' => [
441441 ['service ' => 'tool_one ' , 'description ' => 'Tool for first agent ' ],
442442 ],
443- 'system_prompt ' => 'First agent prompt ' ,
443+ 'prompt ' => 'First agent prompt ' ,
444444 ],
445445 'second_agent ' => [
446446 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\Anthropic\Claude ' ],
447447 'tools ' => [
448448 ['service ' => 'tool_two ' , 'description ' => 'Tool for second agent ' ],
449449 ],
450- 'system_prompt ' => 'Second agent prompt ' ,
450+ 'prompt ' => 'Second agent prompt ' ,
451451 ],
452452 ],
453453 ],
@@ -656,8 +656,8 @@ public function testSystemPromptWithArrayStructure()
656656 'agent ' => [
657657 'test_agent ' => [
658658 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\OpenAi\Gpt ' ],
659- 'system_prompt ' => [
660- 'prompt ' => 'You are a helpful assistant. ' ,
659+ 'prompt ' => [
660+ 'text ' => 'You are a helpful assistant. ' ,
661661 ],
662662 'tools ' => [
663663 ['service ' => 'some_tool ' , 'description ' => 'Test tool ' ],
@@ -683,8 +683,8 @@ public function testSystemPromptWithIncludeToolsEnabled()
683683 'agent ' => [
684684 'test_agent ' => [
685685 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\OpenAi\Gpt ' ],
686- 'system_prompt ' => [
687- 'prompt ' => 'You are a helpful assistant. ' ,
686+ 'prompt ' => [
687+ 'text ' => 'You are a helpful assistant. ' ,
688688 'include_tools ' => true ,
689689 ],
690690 'tools ' => [
@@ -704,16 +704,16 @@ public function testSystemPromptWithIncludeToolsEnabled()
704704 $ this ->assertSame ('ai.toolbox.test_agent ' , (string ) $ arguments [1 ]);
705705 }
706706
707- #[TestDox('System prompt with only prompt key defaults include_tools to false ' )]
708- public function testSystemPromptWithOnlyPromptKey ()
707+ #[TestDox('System prompt with only text key defaults include_tools to false ' )]
708+ public function testSystemPromptWithOnlyTextKey ()
709709 {
710710 $ container = $ this ->buildContainer ([
711711 'ai ' => [
712712 'agent ' => [
713713 'test_agent ' => [
714714 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\OpenAi\Gpt ' ],
715- 'system_prompt ' => [
716- 'prompt ' => 'You are a helpful assistant. ' ,
715+ 'prompt ' => [
716+ 'text ' => 'You are a helpful assistant. ' ,
717717 ],
718718 'tools ' => [
719719 ['service ' => 'some_tool ' , 'description ' => 'Test tool ' ],
@@ -756,8 +756,8 @@ public function testValidSystemPromptCreatesProcessor()
756756 'agent ' => [
757757 'test_agent ' => [
758758 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\OpenAi\Gpt ' ],
759- 'system_prompt ' => [
760- 'prompt ' => 'Valid prompt ' ,
759+ 'prompt ' => [
760+ 'text ' => 'Valid prompt ' ,
761761 'include_tools ' => true ,
762762 ],
763763 'tools ' => [
@@ -777,38 +777,38 @@ public function testValidSystemPromptCreatesProcessor()
777777 $ this ->assertSame ('ai.toolbox.test_agent ' , (string ) $ arguments [1 ]);
778778 }
779779
780- #[TestDox('Empty prompt in array structure throws configuration exception ' )]
781- public function testEmptyPromptInArrayThrowsException ()
780+ #[TestDox('Empty text in array structure throws configuration exception ' )]
781+ public function testEmptyTextInArrayThrowsException ()
782782 {
783783 $ this ->expectException (InvalidConfigurationException::class);
784- $ this ->expectExceptionMessage ('The "prompt " cannot be empty. ' );
784+ $ this ->expectExceptionMessage ('The "text " cannot be empty. ' );
785785
786786 $ this ->buildContainer ([
787787 'ai ' => [
788788 'agent ' => [
789789 'test_agent ' => [
790790 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\OpenAi\Gpt ' ],
791- 'system_prompt ' => [
792- 'prompt ' => '' ,
791+ 'prompt ' => [
792+ 'text ' => '' ,
793793 ],
794794 ],
795795 ],
796796 ],
797797 ]);
798798 }
799799
800- #[TestDox('System prompt array without prompt key throws configuration exception ' )]
801- public function testSystemPromptArrayWithoutPromptKeyThrowsException ()
800+ #[TestDox('System prompt array without text key throws configuration exception ' )]
801+ public function testSystemPromptArrayWithoutTextKeyThrowsException ()
802802 {
803803 $ this ->expectException (InvalidConfigurationException::class);
804- $ this ->expectExceptionMessage ('The "prompt " cannot be empty. ' );
804+ $ this ->expectExceptionMessage ('The "text " cannot be empty. ' );
805805
806806 $ this ->buildContainer ([
807807 'ai ' => [
808808 'agent ' => [
809809 'test_agent ' => [
810810 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\OpenAi\Gpt ' ],
811- 'system_prompt ' => [
811+ 'prompt ' => [
812812 'include_tools ' => true ,
813813 ],
814814 ],
@@ -825,7 +825,7 @@ public function testSystemPromptWithStringFormat()
825825 'agent ' => [
826826 'test_agent ' => [
827827 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\OpenAi\Gpt ' ],
828- 'system_prompt ' => 'You are a helpful assistant. ' ,
828+ 'prompt ' => 'You are a helpful assistant. ' ,
829829 'tools ' => [
830830 ['service ' => 'some_tool ' , 'description ' => 'Test tool ' ],
831831 ],
@@ -1270,8 +1270,8 @@ private function getFullConfig(): array
12701270 ],
12711271 'structured_output ' => false ,
12721272 'track_token_usage ' => true ,
1273- 'system_prompt ' => [
1274- 'prompt ' => 'You are a helpful assistant. ' ,
1273+ 'prompt ' => [
1274+ 'text ' => 'You are a helpful assistant. ' ,
12751275 'include_tools ' => true ,
12761276 ],
12771277 'tools ' => [
@@ -1285,7 +1285,7 @@ private function getFullConfig(): array
12851285 ],
12861286 'another_agent ' => [
12871287 'model ' => ['class ' => 'Symfony\AI\Platform\Bridge\Anthropic\Claude ' , 'name ' => 'claude-3-opus-20240229 ' ],
1288- 'system_prompt ' => 'Be concise. ' ,
1288+ 'prompt ' => 'Be concise. ' ,
12891289 ],
12901290 ],
12911291 'store ' => [
0 commit comments