microsoft / autogen

A programming framework for agentic AI. Discord: https://aka.ms/autogen-dc. Roadmap: https://aka.ms/autogen-roadmap
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
28.04k stars 4.09k forks source link

[.Net][Bug]: Add content field in ToolCallMessage #2975

Closed LittleLittleCloud closed 1 week ago

LittleLittleCloud commented 1 week ago

Describe the bug

The OpenAI model might return text content even for tool call

https://community.openai.com/t/simultaneous-text-response-and-tool-invocations-in-gpt-4-api/550631

Even though having text content in tool call message seems to be an unexpected feature, it's still better for AutoGen.Net to support it.

Solution: