Skip to content

Conversation

VincentLanglet
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #...
License MIT

Similar to #344 @OskarStark
Do you think it could be ok to expose the Agent model ?

It would be useful to access data like model name for logging purpose (without the need for reflection class).

But I'm dunno if it should be in the AgentInterface, your call.

@carsonbot carsonbot changed the title Expose Agent model Expose Agent model Aug 24, 2025
@OskarStark OskarStark added the Agent Issues & PRs about the AI Agent component label Aug 24, 2025
@carsonbot carsonbot changed the title Expose Agent model [Agent] Expose Agent model Aug 24, 2025
@chr-hertel
Copy link
Member

My heart always feels a bit sad when exposing stuff, but i think your use-case is valid 👍

Regarding the interface I'm a bit torn but currently in favor of adding it as well. 🤔

@VincentLanglet
Copy link
Contributor Author

VincentLanglet commented Aug 24, 2025

Regarding the interface I'm a bit torn but currently in favor of adding it as well. 🤔

I was hesitating about it because:

  • Symfony codebase itself currently never use AgentInterface::getModel
  • Some people might implements an AgentInterface with multiples models (based on the option ?)

Do you confirm I should update the interface in this PR @chr-hertel or you prefer another opinion ?

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.

Let's keep it like this - no change in the interface for now

@OskarStark
Copy link
Contributor

Thank you @VincentLanglet.

@OskarStark OskarStark merged commit 6c1b709 into symfony:main Aug 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agent Issues & PRs about the AI Agent component Feature New feature Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants