fix: typo specification (#2791)

Signed-off-by: kimsunghyun <tjdgus2319@gmail.com>
This commit is contained in:
kimsunghyun1995
2025-04-29 20:06:22 +09:00
committed by GitHub
parent d48f4f63db
commit b20e802259

View File

@@ -93,13 +93,13 @@ public final class McpToolUtils {
}
/**
* Converts a list of Spring AI tool callbacks to MCP synchronous tool specificaiton.
* Converts a list of Spring AI tool callbacks to MCP synchronous tool specification.
* <p>
* This method processes multiple tool callbacks in bulk, converting each one to its
* corresponding MCP tool specification while maintaining synchronous execution
* semantics.
* @param toolCallbacks the list of tool callbacks to convert
* @return a list of MCP synchronous tool specificaiton
* @return a list of MCP synchronous tool specification
*/
public static List<McpServerFeatures.SyncToolSpecification> toSyncToolSpecification(
List<ToolCallback> toolCallbacks) {
@@ -113,7 +113,7 @@ public final class McpToolUtils {
* This is a varargs wrapper around {@link #toSyncToolSpecification(List)} for easier
* usage when working with individual callbacks.
* @param toolCallbacks the tool callbacks to convert
* @return a list of MCP synchronous tool specificaiton
* @return a list of MCP synchronous tool specification
*/
public static List<McpServerFeatures.SyncToolSpecification> toSyncToolSpecifications(
ToolCallback... toolCallbacks) {
@@ -201,7 +201,7 @@ public final class McpToolUtils {
}
/**
* Converts a list of Spring AI tool callbacks to MCP asynchronous tool specificaiton.
* Converts a list of Spring AI tool callbacks to MCP asynchronous tool specification.
* <p>
* This method processes multiple tool callbacks in bulk, converting each one to its
* corresponding MCP tool specification while adding asynchronous execution
@@ -217,7 +217,7 @@ public final class McpToolUtils {
/**
* Convenience method to convert a variable number of tool callbacks to MCP
* asynchronous tool specificaiton.
* asynchronous tool specification.
* <p>
* This is a varargs wrapper around {@link #toAsyncToolSpecifications(List)} for
* easier usage when working with individual callbacks.
@@ -264,13 +264,13 @@ public final class McpToolUtils {
* This method enables Spring AI tools to be exposed as asynchronous MCP tools that
* can be discovered and invoked by language models. The conversion process:
* <ul>
* <li>First converts the callback to a synchronous specificaiton</li>
* <li>First converts the callback to a synchronous specification</li>
* <li>Wraps the synchronous execution in a reactive Mono</li>
* <li>Configures execution on a bounded elastic scheduler for non-blocking
* operation</li>
* </ul>
* <p>
* The resulting async specificaiton will:
* The resulting async specification will:
* <ul>
* <li>Execute the tool without blocking the calling thread</li>
* <li>Handle errors and results asynchronously</li>