Skip to content

[AIBundle] Improve injection aliases #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants