McpServerFeatures.SyncPromptSpecification
.@Deprecated
public static class McpServerFeatures.SyncPromptRegistration
extends java.lang.Object
Example prompt registration:
new McpServerFeatures.SyncPromptRegistration(
new Prompt("analyze", "Code analysis template"),
request -> {
String code = request.getArguments().get("code");
return new GetPromptResult(
"Analyze this code:\n\n" + code + "\n\nProvide feedback on:"
);
}
)
构造器和说明 |
---|
SyncPromptRegistration()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
McpServerFeatures.SyncPromptSpecification |
toSpecification()
已过时。
|
public McpServerFeatures.SyncPromptSpecification toSpecification()