Skip to content

Update: implement return_value_as_string for McpToolAdapter #6380

Merged
ekzhu merged 10 commits intomicrosoft:mainfrom
perfogic:main
Apr 25, 2025
Merged

Update: implement return_value_as_string for McpToolAdapter #6380
ekzhu merged 10 commits intomicrosoft:mainfrom
perfogic:main

Conversation

@perfogic
Copy link
Contributor

Why are these changes needed?

  • Add return_value_as_string for formating result from MCP tool

Related issue number

Checks

@perfogic
Copy link
Contributor Author

@ekzhu Can you check my new PR ? Thanks for your time!

@perfogic perfogic changed the title Update: override return_value_as_string for McpToolAdapter Update: implement return_value_as_string for McpToolAdapter Apr 24, 2025
Copy link
Contributor

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you run poe pyright and poe mypy in python/packages/autogen-ext to make sure the type checks pass?

@ekzhu
Copy link
Contributor

ekzhu commented Apr 24, 2025

Read python/README.md for instructions on how to run checks locally.

Copy link
Contributor

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls fix the tests

@perfogic
Copy link
Contributor Author

Pls fix the tests

yeah, i'm fixing it now

@perfogic
Copy link
Contributor Author

@ekzhu can you review it again, thanks for your time! I believe all the tests will be passed now!

@perfogic perfogic requested a review from ekzhu April 25, 2025 08:28
@codecov
Copy link

codecov bot commented Apr 25, 2025

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.40%. Comparing base (70784ea) to head (64ad2bb).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ges/autogen-ext/src/autogen_ext/tools/mcp/_base.py 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6380      +/-   ##
==========================================
+ Coverage   78.38%   78.40%   +0.01%     
==========================================
  Files         221      221              
  Lines       16024    16042      +18     
==========================================
+ Hits        12560    12577      +17     
- Misses       3464     3465       +1     
Flag Coverage Δ
unittests 78.40% <94.44%> (+0.01%) ⬆️

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 519a04d into microsoft:main Apr 25, 2025
61 checks passed
peterj added a commit to kagent-dev/autogen that referenced this pull request Apr 26, 2025
…n0425

* upstream/main:
  Update website for v0.5.5 (microsoft#6401)
  Document custom message types in teams API docs (microsoft#6400)
  [doc] Clarify selector prompt for SelectorGroupChat (microsoft#6399)
  Add functional termination condition (microsoft#6398)
  Update: implement return_value_as_string for McpToolAdapter  (microsoft#6380)
  Update version to 0.5.5 (microsoft#6397)
  Add example using autogen-core and FastAPI for handoff multi-agent design pattern with streaming and UI (microsoft#6391)
  Update agent documentation  (microsoft#6394)
  AssistantAgent to support Workbench (microsoft#6393)
  TEST: skip when macos+uv and adding uv venv tests (microsoft#6387)
  Add guide for workbench and mcp & bug fixes for create_mcp_server_session (microsoft#6392)

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
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.

2 participants