McpServerFeatures.AsyncPromptSpecification
.@Deprecated
public static class McpServerFeatures.AsyncPromptRegistration
extends java.lang.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:"
));
}
)
构造器和说明 |
---|
AsyncPromptRegistration()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
McpServerFeatures.AsyncPromptSpecification |
toSpecification()
已过时。
|
public McpServerFeatures.AsyncPromptSpecification toSpecification()