Class CollaborationClient
java.lang.Object
io.agentscope.extensions.aistio.transport.CollaborationClient
Issue/Comment/AgentTask client shared by Java external-agent runtimes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classNon-2xx response from the collaboration API.static final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeacknowledge(String taskId, String token, List<String> inputIds) com.fasterxml.jackson.databind.JsonNodeaddComment(String issueId, String token, String content, List<Map<String, String>> mentions, String parentId) awaitRuntimeToolApproval(String taskId, String token, String toolUseId, String toolName, Object inputPreview) Requests a fenced runtime tool decision and blocks without holding control-plane threads.com.fasterxml.jackson.databind.JsonNodeInvokes one canonical task-scoped collaboration tool through the control-plane MCP.com.fasterxml.jackson.databind.JsonNodecallTool(String taskId, String token, String toolName, Map<String, Object> arguments, String toolCallId) Invokes a tool while preserving the framework call identity for diagnostics.com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodecomplete(String taskId, String token, long expectedVersion, String summary, Object result, List<String> processedInputIds, List<String> deferredInputIds) com.fasterxml.jackson.databind.JsonNodecompleteRunNode(String taskId, String token, Object output) com.fasterxml.jackson.databind.JsonNodecreateChild(String taskId, String token, Object request) byte[]downloadArtifact(String artifactId, String taskId, String token) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodefailRunNode(String taskId, String token, String code, String message) com.fasterxml.jackson.databind.JsonNodefinish(String taskId, String token, long expectedVersion, String outcome, String reason, Object result, List<String> processedInputIds, List<String> deferredInputIds) Submit an explicit business outcome; the server preserves partial results on failure.com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNoderequestApproval(String token, Object request) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNoderunArtifacts(String taskId, String token) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodetaskContext(String taskId, String token) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodeReturns the canonical task-scoped collaboration tools advertised by the control plane.com.fasterxml.jackson.databind.JsonNodeuploadArtifact(String taskId, String token, String filename, String contentType, byte[] content, String targetType, String targetRef) Uploads shared bytes; local runtime paths never cross the collaboration boundary.com.fasterxml.jackson.databind.JsonNodeworkspaceApplied(String taskId, String token, String digest)
-
Constructor Details
-
CollaborationClient
-
-
Method Details
-
issue
-
comments
-
addComment
-
team
-
requestApproval
-
awaitRuntimeToolApproval
public CollaborationClient.RuntimeApprovalDecision awaitRuntimeToolApproval(String taskId, String token, String toolUseId, String toolName, Object inputPreview) Requests a fenced runtime tool decision and blocks without holding control-plane threads. -
workspaceApplied
-
taskContext
-
tools
Returns the canonical task-scoped collaboration tools advertised by the control plane. -
callTool
public com.fasterxml.jackson.databind.JsonNode callTool(String taskId, String token, String toolName, Map<String, Object> arguments) Invokes one canonical task-scoped collaboration tool through the control-plane MCP. -
callTool
public com.fasterxml.jackson.databind.JsonNode callTool(String taskId, String token, String toolName, Map<String, Object> arguments, String toolCallId) Invokes a tool while preserving the framework call identity for diagnostics. -
createChild
-
acknowledge
-
start
-
progress
-
respond
-
complete
-
finish
public com.fasterxml.jackson.databind.JsonNode finish(String taskId, String token, long expectedVersion, String outcome, String reason, Object result, List<String> processedInputIds, List<String> deferredInputIds) Submit an explicit business outcome; the server preserves partial results on failure. -
fail
-
run
-
runGraph
-
completeRunNode
-
failRunNode
-
replanRun
-
signalRun
-
runArtifacts
-
uploadArtifact
public com.fasterxml.jackson.databind.JsonNode uploadArtifact(String taskId, String token, String filename, String contentType, byte[] content, String targetType, String targetRef) Uploads shared bytes; local runtime paths never cross the collaboration boundary. -
downloadArtifact
-