Skip to content

Commit 5fc307a

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

File tree

18 files changed

+22
-64
lines changed

18 files changed

+22
-64
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: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ deptrac:
33
- ./src
44
exclude_files:
55
- '#.*test.*#'
6+
- '#.*vendor.*#'
67
layers:
78
- name: Agent
89
collectors:
910
- type: classLike
1011
value: Symfony\\AI\\Agent.*
12+
- name: Chat
13+
collectors:
14+
- type: classLike
15+
value: Symfony\\AI\\Chat.*
1116
- name: Platform
1217
collectors:
1318
- type: classLike
@@ -17,10 +22,22 @@ deptrac:
1722
- type: classLike
1823
value: Symfony\\AI\\Store.*
1924
ruleset:
20-
Platform: ~
2125
Agent:
2226
- Platform
23-
- orm
2427
- Store
28+
Chat:
29+
- Agent
30+
- Platform
31+
Platform: ~
2532
Store:
2633
- Platform
34+
# Baseline of known violations to be skipped for now
35+
skip_violations:
36+
Symfony\AI\Platform\Bridge\Anthropic\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
37+
Symfony\AI\Platform\Bridge\DeepSeek\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
38+
Symfony\AI\Platform\Bridge\Gemini\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
39+
Symfony\AI\Platform\Bridge\Mistral\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
40+
Symfony\AI\Platform\Bridge\OpenAi\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
41+
Symfony\AI\Platform\Bridge\Perplexity\SearchResultProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
42+
Symfony\AI\Platform\Bridge\Perplexity\TokenOutputProcessor: [Symfony\AI\Agent\OutputProcessorInterface, Symfony\AI\Agent\Output]
43+
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)