Interface RemoteSubagentTransport
- All Known Implementing Classes:
AgentProtocolTransport
public interface RemoteSubagentTransport
Transport abstraction for remote subagent execution (Agent Protocol today; A2A later).
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(RemoteTarget target, String taskId) getStatus(RemoteTarget target, String taskId) voidresume(RemoteTarget target, String taskId, List<RemoteConfirmDecision> decisions) default CloseablestreamEvents(RemoteTarget target, String taskId, long fromSeq, Consumer<RemoteAgentEvent> consumer) Opens an event stream for the remote task.voidsubmit(RemoteTarget target, String taskId, String agentId, String input, RemoteSubmitContext context) Stable transport type string persisted onTaskRecord.getTransportType().waitForResult(RemoteTarget target, String taskId, long timeoutSeconds)
-
Method Details
-
transportType
String transportType()Stable transport type string persisted onTaskRecord.getTransportType(). -
submit
void submit(RemoteTarget target, String taskId, String agentId, String input, RemoteSubmitContext context) throws Exception - Throws:
Exception
-
getStatus
- Throws:
Exception
-
waitForResult
- Throws:
Exception
-
cancel
- Throws:
Exception
-
resume
void resume(RemoteTarget target, String taskId, List<RemoteConfirmDecision> decisions) throws Exception - Throws:
Exception
-
streamEvents
default Closeable streamEvents(RemoteTarget target, String taskId, long fromSeq, Consumer<RemoteAgentEvent> consumer) Opens an event stream for the remote task. Default is a no-op so transports without streaming degrade gracefully to polling.- Returns:
- closeable handle that stops the subscription
-