Skip to content

Commit 13c70ed

Browse files
committed
feature #580 [Agent] Update instructions in SystemPromptInputProcessor (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [Agent] Update instructions in `SystemPromptInputProcessor` | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | -- | License | MIT Commits ------- ffd7bbb [Agent] Update instructions in `SystemPromptInputProcessor`
2 parents 7c1652c + ffd7bbb commit 13c70ed

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)