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

Commit b203e16

Browse files
committed
-
1 parent f78bbbe commit b203e16

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/Chain/InputProcessor/SystemPromptInputProcessorTest.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -132,29 +132,4 @@ public function execute(ToolCall $toolCall): mixed
132132
or not
133133
PROMPT, $messages[0]->content);
134134
}
135-
136-
private function createFaultyToolBox(\Closure $exceptionFactory): ToolBoxInterface
137-
{
138-
return new class($exceptionFactory) implements ToolBoxInterface {
139-
public function __construct(private readonly \Closure $exceptionFactory)
140-
{
141-
}
142-
143-
/**
144-
* @return Metadata[]
145-
*/
146-
public function getMap(): array
147-
{
148-
return [
149-
new Metadata(ToolNoParams::class, 'tool_no_params', 'A tool without parameters', '__invoke', null),
150-
new Metadata(ToolRequiredParams::class, 'tool_required_params', 'A tool with required parameters', 'bar', null),
151-
];
152-
}
153-
154-
public function execute(ToolCall $toolCall): mixed
155-
{
156-
throw ($this->exceptionFactory)($toolCall);
157-
}
158-
};
159-
}
160135
}

0 commit comments

Comments
 (0)