Skip to content

docs(agentchat): add missing TextMessage import in custom agents docs - #7676

Open
Jane Illarionova (JaneIllario) wants to merge 1 commit into
microsoft:mainfrom
JaneIllario:docs/fix-textmessage-import-6277
Open

docs(agentchat): add missing TextMessage import in custom agents docs#7676
Jane Illarionova (JaneIllario) wants to merge 1 commit into
microsoft:mainfrom
JaneIllario:docs/fix-textmessage-import-6277

Conversation

@JaneIllario

@JaneIllario Jane Illarionova (JaneIllario) commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR fixes a documentation issue in the AgentChat Custom Agents guide.

Specifically, the ArithmeticAgent example uses TextMessage but did not import it in the same code cell.
This update adds the missing import so the snippet is self-consistent and runnable when copied.

Changes

  • Updated python/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynb
  • In the ArithmeticAgent import section:
    • changed:
      • from autogen_agentchat.messages import BaseChatMessage
    • to:
      • from autogen_agentchat.messages import BaseChatMessage, TextMessage

Issue

Fixes #6277

Notes

  • Documentation-only change.

@codecov

codecov Bot commented May 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.23%. Comparing base (027ecf0) to head (5c3b186).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7676   +/-   ##
=======================================
  Coverage   81.23%   81.23%           
=======================================
  Files         244      244           
  Lines       18527    18527           
=======================================
  Hits        15050    15050           
  Misses       3477     3477           
Flag Coverage Δ
unittests 81.23% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

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.

adding TextMessage Dependency

1 participant