| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| pub service: &'s S, | ||
| pub name: Cow<'static, str>, | ||
| pub arguments: Option<JsonObject>, | ||
| /// Client responses to input requests from the previous MRTR round. |
There was a problem hiding this comment.
I'd strip these comments
Sorry, something went wrong.
There was a problem hiding this comment.
@alexhancock Would you be open to documenting the existing fields instead? Since this struct is public, I think rustdoc for all of its fields would be useful and more consistent.
Sorry, something went wrong.
There was a problem hiding this comment.
I've added comments to the existing fields.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #1095.
Motivation and Context
ToolCallContext::new was dropping request_state and input_responses, so #[tool] handlers could not continue an MRTR call after the client completed its input requests. Because of that, servers had to bypass the macro routing path and implement ServerHandler::call_tool manually.
This PR preserves the SEP-2322 retry state and input responses when macro-generated tool handlers route calls through ToolCallContext. It also adds extractors for both values and lets #[tool] handlers return CallToolResponse. This allows a single handler to produce both input_required responses and completed results.
How Has This Been Tested?
Added regression tests
Breaking Changes
None.
Types of changes
Checklist