Class McpTaskCreatedResult<R>

java.lang.Object
com.soklet.McpTaskCreatedResult<R>
Type Parameters:
R - eventual structured tool output type
All Implemented Interfaces:
McpOperationResult

@ThreadSafe public final class McpTaskCreatedResult<R> extends Object implements McpOperationResult
Immutable handler result identifying a durably created MCP task.

The result carries only a task ID. Before returning a task handle to the client, Soklet asks the configured McpTaskManager for that ID and requires a readable, authorized task whose origin matches the current invocation. Applications must therefore commit both their work description and the framework-supplied McpTaskOrigin before returning this value.

The type parameter preserves the original typed tool output contract for annotation processing and programmatic registration. It is not an in-memory future, callback, or worker result.

Author:
Mark Allen