-
Notifications
You must be signed in to change notification settings - Fork 526
Sampling Example #224
Copy link
Copy link
Closed
Labels
T-documentationDocumentation improvementsDocumentation improvementsT-enhancementNew features and enhancementsNew features and enhancements
Metadata
Metadata
Assignees
Labels
T-documentationDocumentation improvementsDocumentation improvementsT-enhancementNew features and enhancementsNew features and enhancements
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
It is not exactly a bug, but there is no available example in the documentation demonstrating how to implement both the client and server for the sampling endpoint using the rmcp crate. It is unclear how to properly structure the client-server communication to simulate or execute a sampling response (e.g., via sampling/createMessage).
To Reproduce
Expected behavior
A clear working example that demonstrates:
Logs
Additional context
Use case involves simulating or chaining multi-step prompt execution using the sampling/createMessage logic as a base. A minimal working example in Rust for both client and server would be extremely helpful to bootstrap development.
Thank you so much!