@@ -148,7 +148,7 @@ Configuration
148148 System Prompt Configuration
149149---------------------------
150150
151- The `` system_prompt `` configuration uses an array structure to configure the prompt text and optional tool inclusion :
151+ For basic usage, specify the system prompt as a simple string :
152152
153153.. code-block :: yaml
154154
@@ -158,17 +158,11 @@ The ``system_prompt`` configuration uses an array structure to configure the pro
158158 model :
159159 class : ' Symfony\AI\Platform\Bridge\OpenAi\Gpt'
160160 name : !php/const Symfony\AI\Platform\Bridge\OpenAi\Gpt::GPT_4O_MINI
161- system_prompt :
162- prompt : ' You are a helpful assistant that can answer questions.'
163- include_tools : true # Include tool definitions at the end of the system prompt
164-
165- **Configuration Options **
166-
167- The ``system_prompt `` configuration supports two formats:
161+ system_prompt : ' You are a helpful assistant.'
168162
169- **Simple String Format **
163+ **Advanced Configuration **
170164
171- For basic usage, you can specify the system prompt as a simple string :
165+ For more control, such as including tool definitions in the system prompt, use the array format :
172166
173167.. code-block :: yaml
174168
@@ -178,27 +172,15 @@ For basic usage, you can specify the system prompt as a simple string:
178172 model :
179173 class : ' Symfony\AI\Platform\Bridge\OpenAi\Gpt'
180174 name : !php/const Symfony\AI\Platform\Bridge\OpenAi\Gpt::GPT_4O_MINI
181- system_prompt : ' You are a helpful assistant. '
182-
183- ** Advanced Array Format **
175+ system_prompt :
176+ prompt : ' You are a helpful assistant that can answer questions. '
177+ include_tools : true # Include tool definitions at the end of the system prompt
184178
185- For more control, use the array format with the following options:
179+ The array format supports these options:
186180
187181* ``prompt `` (string, required): The system prompt text that will be sent to the AI model
188182* ``include_tools `` (boolean, optional): When set to ``true ``, tool definitions will be appended to the system prompt
189183
190- .. code-block :: yaml
191-
192- ai :
193- agent :
194- my_agent :
195- model :
196- class : ' Symfony\AI\Platform\Bridge\OpenAi\Gpt'
197- name : !php/const Symfony\AI\Platform\Bridge\OpenAi\Gpt::GPT_4O_MINI
198- system_prompt :
199- prompt : ' You are a helpful assistant.'
200- include_tools : true
201-
202184
203185Usage
204186-----
0 commit comments