Class InMemoryAsyncPromptRepository.Builder
java.lang.Object
org.springframework.ai.mcp.modern.InMemoryAsyncPromptRepository.Builder
- Enclosing class:
- InMemoryAsyncPromptRepository
Builder for
InMemoryAsyncPromptRepository.-
Method Summary
Modifier and TypeMethodDescriptionbuild()changeBroadcaster(@Nullable io.modelcontextprotocol.modern.server.feature.McpChangeBroadcaster changeBroadcaster) Receivesprompts/list_changedbroadcasts.completionSupported(boolean completionSupported) Whether the server servescompletion/completefor the prompts of this repository and advertisescompletions.Maximum number of prompts perprompts/listpage.prompt(io.modelcontextprotocol.modern.server.feature.McpAsyncPrompt prompt)
-
Method Details
-
prompt
public InMemoryAsyncPromptRepository.Builder prompt(io.modelcontextprotocol.modern.server.feature.McpAsyncPrompt prompt) -
prompts
public InMemoryAsyncPromptRepository.Builder prompts(List<io.modelcontextprotocol.modern.server.feature.McpAsyncPrompt> prompts) -
changeBroadcaster
public InMemoryAsyncPromptRepository.Builder changeBroadcaster(@Nullable io.modelcontextprotocol.modern.server.feature.McpChangeBroadcaster changeBroadcaster) Receivesprompts/list_changedbroadcasts. Unset, changes are not announced. -
pageSize
Maximum number of prompts perprompts/listpage. Unset returns all prompts on one page. -
completionSupported
Whether the server servescompletion/completefor the prompts of this repository and advertisescompletions. Defaults totrue; a prompt without a completion handler then completes to no values. -
build
-