Skip to content

Conversation

Guikingone
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues None
License MIT

Hi 👋🏻

This PR aims to add "injection aliases", those allows the user to use the following code while defining X agents:

public function __construct(
    private AgentInterface $fooAgent,
) {
}

Why the Agent suffix? Because we don't know, maybe one day, a service will be called foo and it will trigger an error, it seems better to define a suffix and ensure that this bundle is the only one to use it.

@Guikingone Guikingone force-pushed the ai-bundle/agent_alias branch from 0b218be to e7ac407 Compare August 11, 2025 14:40
@Guikingone Guikingone requested a review from OskarStark August 11, 2025 14:45
Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it - works! 👍

@chr-hertel chr-hertel force-pushed the ai-bundle/agent_alias branch from 11bea4c to 6bbb878 Compare August 12, 2025 17:32
@chr-hertel
Copy link
Member

Thank you @Guikingone.

@chr-hertel chr-hertel merged commit 1336ce7 into symfony:main Aug 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants