ag2 icon indicating copy to clipboard operation
ag2 copied to clipboard

[Issue]: Revisit AG2 ChatCompletionMessage, ChatCompletionMessageFunctionToolCall etc to see why we can't use OAI native ones

Open randombet opened this issue 4 months ago • 2 comments

Describe the issue

AG2 internal ChatCompletionMessage adds some limitation when OAI model evolve. I understand we may need some internal objects to make AG2 compatible to other models, i.e. Gemini. But we have two conversions

  1. OAI ChatCompletionMessage -> AG2 ChatCompletionMessage
  2. Gemini ChatCompletionMessage -> AG2 ChatCompletionMessage

If we use a simple wrapper on top of OAI ChatCompletionMessage, we may only need the 2nd conversion and will reduce our work on maintain convertion like OAI ChatCompletionMessage -> AG2 ChatCompletionMessage

Steps to reproduce

No response

Screenshots and logs

No response

Additional Information

No response

randombet avatar Aug 15 '25 19:08 randombet

@priyansh4320 Could you verify if my claim is valid? If yes, could you list the items we need to work on to make it work?

randombet avatar Aug 15 '25 19:08 randombet

@randombet will take a look.

priyansh4320 avatar Aug 15 '25 19:08 priyansh4320