This repository was archived by the owner on Jul 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed
tests/Chain/InputProcessor Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff 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 ));
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments