Skip to content

Conversation

@SongChiYoung
Copy link
Contributor

@SongChiYoung SongChiYoung commented Apr 4, 2025

Why are these changes needed?

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

Checks

@codecov
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.24%. Comparing base (b62b12e) to head (d02d6d0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6204   +/-   ##
=======================================
  Coverage   77.24%   77.24%           
=======================================
  Files         200      200           
  Lines       14212    14212           
=======================================
  Hits        10978    10978           
  Misses       3234     3234           
Flag Coverage Δ
unittests 77.24% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekzhu ekzhu merged commit f926820 into microsoft:main Apr 4, 2025
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AutoGen Studio is **broken** due to a missing message class (LLMCallEventMessage) (v0.5+)

2 participants