mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-23 17:01:35 +00:00

This PR defines the missing `LLMCallEventMessage` class to resolve an instantiation error that occurs when using custom messages (e.g., via AgentStudio). > **Discord Report** > சravanaன் — 오후 6:40 > _“i updated agentchat and agentcore and tried running the config from agentstudio and it is now not running the agent and is throwing error `TypeError: Can't instantiate abstract class LLMCallEventMessage with abstract methods to_model_message, to_model_text, to_text`”_ The issue stems from `LLMCallEventMessage` being an abstract class that lacks required methods from `BaseChatMessage`. This PR implements the missing methods. Since `LLMCallEventMessage` is intended for **logging/UI use only**, and not to be sent to LLMs, the `to_model_message()` method raises `NotImplementedError` by design. ## Related issue number Reported in Discord Closes #6206