Class McpTaskCreatedResult<R>
java.lang.Object
com.soklet.McpTaskCreatedResult<R>
- Type Parameters:
R- eventual structured tool output type
- All Implemented Interfaces:
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
-
Method Summary
-
Method Details
-
fromTaskId
Creates a result for a task that is already durably readable.- Type Parameters:
R- eventual structured tool output type- Parameters:
taskId- nonblank task identifier without carriage-return or newline characters- Returns:
- immutable task-created result
- Throws:
NullPointerException- iftaskIdis nullIllegalArgumentException- iftaskIdis blank or contains a carriage-return or newline character
-
getTaskId
-
equals
-
hashCode
-
toString
-