Package org.springframework.ai.mcp.annotation.method.complete
package org.springframework.ai.mcp.annotation.method.complete
Method callbacks for MCP completion (chat) requests, sync and async.
-
ClassDescriptionAbstract base class for creating callbacks around complete methods.AbstractMcpCompleteMethodCallback.AbstractBuilder<T extends AbstractMcpCompleteMethodCallback.AbstractBuilder<T,
R>, R> Abstract builder for creating McpCompleteMethodCallback instances.Exception thrown when there is an error invoking a complete method.Class for creating BiFunction callbacks around complete methods with asynchronous support.Builder for creating AsyncMcpCompleteMethodCallback instances.The asynchronous twin ofSyncModernMcpCompleteMethodCallback: serves acompletion/completeof a 2026-07-28 ("modern") MCP server by invoking a method annotated with@McpComplete.Builder forAsyncModernMcpCompleteMethodCallbackinstances.Class for creating BiFunction callbacks around complete methods with asynchronous processing for stateless contexts.Builder for creating AsyncStatelessMcpCompleteMethodCallback instances.Class for creating BiFunction callbacks around complete methods.Builder for creating SyncMcpCompleteMethodCallback instances.Serves acompletion/completeof a 2026-07-28 ("modern") MCP server by invoking a method annotated with@McpComplete.Builder forSyncModernMcpCompleteMethodCallbackinstances.Class for creating BiFunction callbacks around complete methods for stateless contexts.Builder for creating SyncStatelessMcpCompleteMethodCallback instances.