-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create sampling response form #246
base: main
Are you sure you want to change the base?
Create sampling response form #246
Conversation
I think a JSON Editor should be an option here and not only the form. Two reasons:
Tool run form can't create new objects (in this case states)![]() Tool run form fortunately offers JSON editor option![]() Tool run form doesn't know how to handle objects![]() |
3e7c87a
to
37949fb
Compare
d933078
to
7cdaad0
Compare
Hi @nathanArseneau. In that screenshot, I like the extra content container around its elements. But I notice the mime type field is visible when the type is text. It should only be shown if type is not text. |
7cdaad0
to
4e42782
Compare
Hey @nathanArseneau. Testing this locally, the Approve and Reject buttons seem to work as before, but I'm seeing something weird when trying to switch from JSON to the Form. The crash comes when a hook in the The switch to form button is inside a component you're just using, but something must be different about the component where it is embedded. Can you have a look at how it is used in the ToolTab? It is not crashing there. This may not be about your implementation, but it's kind of a show stopper for this PR. If this just flushed out another bug, we can fix it elsewhere and you can merge it into this. Or if you pin it down and it's easy enough it could just go in as an incidental fix on this PR. Switch to Form crashes in Sampling tabform-crash.movSwitch to Form doesn't crash in Tools tabform-not-crash.mov |
Sure, I will be happy to investigate, and yes, it is better we solve this issue before this PR However, when I am testing from my end, I cannot reproduce. The closest I came to that issue was when my server went down, but that is expected behavior, and there was no error in the console. |
4e42782
to
c304549
Compare
My apologies; that was my mistake. The sampling is wrapped in a form for semantics, and the buttons were not typed. I did not get your error with the config, but I managed to reproduce a similar behavior. |
c304549
to
68067f5
Compare
68067f5
to
71bb89d
Compare
This address #199
Motivation and Context
The sampling response was hard coded here, The goal was to remove the stubs.
How Has This Been Tested?
I created a small MCP server to send / receive sampling request


Breaking Changes
Nope
Types of changes
Checklist
Additional context