Skip to content

[Platform] Add provider identity to ResultConvertedEvent and ResultErrorEvent - #2467

Open
clegginabox wants to merge 1 commit into
symfony:mainfrom
clegginabox:provider-identity
Open

[Platform] Add provider identity to ResultConvertedEvent and ResultErrorEvent#2467
clegginabox wants to merge 1 commit into
symfony:mainfrom
clegginabox:provider-identity

Conversation

@clegginabox

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? yes
Docs? no
License MIT

A Platform can hold several providers, but a listener on ResultConvertedEvent / ResultErrorEvent can't tell which provider actually served the request.

This adds an optional ?ProviderInterface $provider to both events (with a getProvider(): ?ProviderInterface getter), and Provider now passes itself when dispatching them.

I need this to rework #1452: capacity is acquired when routing picks a provider and a listener on these events releases it when a result resolves. This will only work if the event says which provider's capacity to release.

@carsonbot carsonbot added Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants