| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
… optional _meta parameter to ClientSession.call_tool and ClientSessionGroup.call_tool\n- Passes _meta as request metadata for tool calls, enabling user-supplied context or progress tokens\n- Backward compatible: does not affect existing usage\n- Adds/updates tests to verify _meta passthrough and correct request construction
|
Thank you for your contribution! One of the examples mentioned in PR is passing progress token. SDK handless it automatically, when the progress_callback is set on the client tool call. This change will break the functionality to automatically assign the progress token in SDK. User context use case sounds more like an extension and should be handled outside of the SDK. Please re-open the PR in case there are concrete examples for passing _meta and I missed something. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Adds optional _meta parameter support to ClientSession.call_tool and ClientSessionGroup.call_tool methods, enabling users to pass request metadata (such as progress tokens or user context) in a clean, explicit, and backward-compatible way.
Motivation and Context
Currently, users who need to pass metadata (like progress tokens or user context) to tool calls have to work around the SDK's limitations by either:
This change provides a proper, first-class way to pass request metadata while maintaining full backward compatibility.
How Has This Been Tested?
Breaking Changes
No breaking changes. The _meta parameter is optional and defaults to None, so existing code will continue to work without modification.
Types of changes
Checklist
Additional context