McpServerFeatures.AsyncPromptSpecification.@Deprecated public static class McpServerFeatures.AsyncPromptRegistration extends Object
Example prompt registration:
new McpServerFeatures.AsyncPromptRegistration(
new Prompt("analyze", "Code analysis template"),
request -> {
String code = request.getArguments().get("code");
return Mono.just(new GetPromptResult(
"Analyze this code:\n\n" + code + "\n\nProvide feedback on:"
));
}
)
| Constructor and Description |
|---|
AsyncPromptRegistration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
McpServerFeatures.AsyncPromptSpecification |
toSpecification()
Deprecated.
|
public McpServerFeatures.AsyncPromptSpecification toSpecification()
Copyright © 2025. All rights reserved.