Skip to content

Commit 7af9213

Browse files
committed
Move StructuredOutput fixtures to platform component
StructuredOutput fixtures belong to the platform component conceptually. This commit moves them from fixtures/StructuredOutput/ to src/platform/tests/Fixtures/StructuredOutput/ and updates all references across platform tests, agent tests, examples, and documentation. Updated namespace from Symfony\AI\Fixtures\StructuredOutput to Symfony\AI\Platform\Tests\Fixtures\StructuredOutput
1 parent 827e7f1 commit 7af9213

30 files changed

+46
-44
lines changed

docs/components/platform.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ the result back to PHP objects.
356356

357357
To achieve this, the ``Symfony\AI\Platform\StructuredOutput\PlatformSubscriber`` needs to be registered with the platform::
358358

359-
use Symfony\AI\Fixtures\StructuredOutput\MathReasoning;
359+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\MathReasoning;
360360
use Symfony\AI\Platform\Bridge\Mistral\PlatformFactory;
361361
use Symfony\AI\Platform\Message\Message;
362362
use Symfony\AI\Platform\Message\MessageBag;

examples/anthropic/structured-output-math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\MathReasoning;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\MathReasoning;
1313
use Symfony\AI\Platform\Bridge\Anthropic\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"minimum-stability": "dev",
7979
"autoload": {
8080
"psr-4": {
81-
"Symfony\\AI\\Fixtures\\": "../fixtures/"
81+
"Symfony\\AI\\Fixtures\\": "../fixtures/",
82+
"Symfony\\AI\\Platform\\Tests\\": "../src/platform/tests/"
8283
}
8384
},
8485
"autoload-dev": {

examples/gemini/structured-output-math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\MathReasoning;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\MathReasoning;
1313
use Symfony\AI\Platform\Bridge\Gemini\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/mistral/structured-output-math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\MathReasoning;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\MathReasoning;
1313
use Symfony\AI\Platform\Bridge\Mistral\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/ollama/structured-output-math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\MathReasoning;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\MathReasoning;
1313
use Symfony\AI\Platform\Bridge\Ollama\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/openai/structured-output-list-of-polymorphic-items.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\PolymorphicType\ListOfPolymorphicTypesDto;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\PolymorphicType\ListOfPolymorphicTypesDto;
1313
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/openai/structured-output-math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\MathReasoning;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\MathReasoning;
1313
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/openai/structured-output-union-types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\UnionType\UnionTypeDto;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\UnionType\UnionTypeDto;
1313
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/scaleway/structured-output-math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Fixtures\StructuredOutput\MathReasoning;
12+
use Symfony\AI\Platform\Tests\Fixtures\StructuredOutput\MathReasoning;
1313
use Symfony\AI\Platform\Bridge\Scaleway\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

0 commit comments

Comments
 (0)