Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit b29c1de

Browse files
committed
-
1 parent cf84d89 commit b29c1de

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/Chain/InputProcessor/SystemPromptInputProcessor.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ public function processInput(Input $input): void
4040
if ($this->includeToolDefinitions) {
4141
$tools = implode(PHP_EOL.PHP_EOL, array_map(
4242
fn (Metadata $tool) => <<<TOOL
43-
## {$tool->name}
44-
{$tool->description}
45-
TOOL,
43+
## {$tool->name}
44+
{$tool->description}
45+
TOOL,
4646
$this->toolBox->getMap()
4747
));
4848

4949
$message = <<<PROMPT
50-
{$this->systemPrompt}
51-
52-
# Available tools
53-
54-
{$tools}
55-
PROMPT;
50+
{$this->systemPrompt}
51+
52+
# Available tools
53+
54+
{$tools}
55+
PROMPT;
5656
}
5757

5858
$input->messages = $messages->prepend(Message::forSystem($message));

tests/Chain/InputProcessor/SystemPromptInputProcessorTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,16 @@ public function execute(ToolCall $toolCall): mixed
120120
self::assertInstanceOf(SystemMessage::class, $messages[0]);
121121
self::assertInstanceOf(UserMessage::class, $messages[1]);
122122
self::assertSame(<<<PROMPT
123-
This is a system prompt
124-
125-
# Available tools
126-
127-
## tool_no_params
128-
A tool without parameters
129-
130-
## tool_required_params
131-
A tool with required parameters
132-
or not
133-
PROMPT, $messages[0]->content);
123+
This is a system prompt
124+
125+
# Available tools
126+
127+
## tool_no_params
128+
A tool without parameters
129+
130+
## tool_required_params
131+
A tool with required parameters
132+
or not
133+
PROMPT, $messages[0]->content);
134134
}
135135
}

0 commit comments

Comments
 (0)