Skip to content

Commit ffd7bbb

Browse files
committed
[Agent] Update instructions in SystemPromptInputProcessor
1 parent 4180fd8 commit ffd7bbb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/agent/src/InputProcessor/SystemPromptInputProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public function processInput(Input $input): void
6363
$message = <<<PROMPT
6464
{$this->systemPrompt}
6565
66-
# Available tools
66+
# Tools
67+
68+
The following tools are available to assist you in completing the user's request:
6769
6870
{$tools}
6971
PROMPT;

src/agent/tests/InputProcessor/SystemPromptInputProcessorTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ public function execute(ToolCall $toolCall): mixed
140140
$this->assertSame(<<<PROMPT
141141
This is a system prompt
142142
143-
# Available tools
143+
# Tools
144+
145+
The following tools are available to assist you in completing the user's request:
144146
145147
## tool_no_params
146148
A tool without parameters
@@ -180,7 +182,9 @@ public function execute(ToolCall $toolCall): mixed
180182
$this->assertSame(<<<PROMPT
181183
My dynamic system prompt.
182184
183-
# Available tools
185+
# Tools
186+
187+
The following tools are available to assist you in completing the user's request:
184188
185189
## tool_no_params
186190
A tool without parameters

0 commit comments

Comments
 (0)