Skip to content

Commit f6ac494

Browse files
gladychr-hertel
authored andcommitted
Fix typo within deptrac.yaml
1 parent 3cd93ed commit f6ac494

File tree

18 files changed

+14
-63
lines changed

18 files changed

+14
-63
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.deptrac.cache
12
.doctor-rst.cache
23
.php-cs-fixer.cache
34
.phpunit.cache

deptrac.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ deptrac:
33
- ./src
44
exclude_files:
55
- '#.*test.*#'
6+
- '#.*vendor.*#'
67
layers:
78
- name: Agent
89
collectors:
@@ -20,7 +21,16 @@ deptrac:
2021
Platform: ~
2122
Agent:
2223
- Platform
23-
- orm
2424
- Store
2525
Store:
2626
- Platform
27+
# Baseline of known violations to be skipped for now
28+
skip_violations:
29+
Symfony\AI\Platform\Bridge\Anthropic\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
30+
Symfony\AI\Platform\Bridge\DeepSeek\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
31+
Symfony\AI\Platform\Bridge\Gemini\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
32+
Symfony\AI\Platform\Bridge\Mistral\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
33+
Symfony\AI\Platform\Bridge\OpenAi\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
34+
Symfony\AI\Platform\Bridge\Perplexity\SearchResultProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
35+
Symfony\AI\Platform\Bridge\Perplexity\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
36+
Symfony\AI\Platform\Bridge\VertexAi\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]

src/agent/src/OutputProcessor/ResultOutputProcessor.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

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

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -683,23 +683,9 @@ public function testTokenUsageProcessorTags()
683683

684684
$agentId = 'ai.agent.tracked_agent';
685685

686-
// Token usage determiner must exist for OpenAI platform
687-
$tokenUsageDeterminer = $container->getDefinition('ai.platform.token_usage_result_handler.openai');
688-
$outputTags = $tokenUsageDeterminer->getTag('ai.agent.token_usage_result_handler');
689-
690-
$foundTag = false;
691-
foreach ($outputTags as $tag) {
692-
if (($tag['agent'] ?? '') === $agentId) {
693-
$foundTag = true;
694-
break;
695-
}
696-
}
697-
698-
$this->assertTrue($foundTag, 'Token usage determiner should have output tag with full agent ID');
699-
700686
// Token usage processor must exist for OpenAI platform
701-
$tokenOutputProcessor = $container->getDefinition('ai.platform.token_usage_processor.openai');
702-
$outputTags = $tokenOutputProcessor->getTag('ai.platform.token_usage_processor');
687+
$tokenUsageProcessor = $container->getDefinition('ai.platform.token_usage_processor.openai');
688+
$outputTags = $tokenUsageProcessor->getTag('ai.agent.output_processor');
703689

704690
$foundTag = false;
705691
foreach ($outputTags as $tag) {

0 commit comments

Comments
 (0)