Skip to content

Commit 5fda09f

Browse files
committed
Fix PHPStan error in AiBundleTest
Removed obsolete 'options' configuration from test. Agent configuration doesn't support an 'options' field at the root level - model options like temperature and max_tokens are passed at runtime via the Platform's invoke() method, not in the configuration. Also simplified model configuration from the old nested format with 'class' field to the simple string model identifier format.
1 parent e982073 commit 5fda09f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ai-bundle/tests/DependencyInjection/AiBundleTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,13 +2381,7 @@ public function testComprehensiveMultiAgentHappyPath()
23812381
],
23822382
// Code expert agent with memory and tools
23832383
'code_expert' => [
2384-
'model' => [
2385-
'name' => 'gpt-4',
2386-
'options' => [
2387-
'temperature' => 0.3,
2388-
'max_tokens' => 2000,
2389-
],
2390-
],
2384+
'model' => 'gpt-4',
23912385
'prompt' => [
23922386
'text' => 'You are a senior software engineer specialized in debugging and code optimization.',
23932387
'include_tools' => true,

0 commit comments

Comments
 (0)