Class GrpcTransport
java.lang.Object
io.agentscope.extensions.aistio.transport.GrpcTransport
- All Implemented Interfaces:
AutoCloseable
ASDP upstream channel: a single bidirectional gRPC stream multiplexing every report type, the
same shape the Go control plane and the Python SDK use.
Reconnects with capped exponential backoff. The bridge owns the durable event outbox and only
advances it after receiving EventReportAck; non-event telemetry remains best effort.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReceives a fenced online conversation turn from the control plane.static interfaceReceives a durable commit acknowledgement for a Level-2 event report.static interfaceReceives a fenced execution-attempt command from the control plane.static interfaceReceivesSessionCommandpushed down by the control plane. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanvoidreportContext(ContextReport report) voidbooleanreportEvents(String reportId, List<SessionEventMsg> events) voidvoidreportInventory(InventoryReport report) voidreportSessions(List<SessionSnapshot> snapshots) voidvoidvoidvoidvoidstart()voidupdateIdentity(String credential, String agentId, String bindingId, String instanceKey, long generation) Refreshes the fenced Catalog identity used by the next connection attempt.
-
Constructor Details
-
GrpcTransport
-
-
Method Details
-
setSessionCommandHandler
-
setExecutionAttemptHandler
-
setConversationTurnHandler
-
setEventAckHandler
-
isConnected
public boolean isConnected() -
updateIdentity
public void updateIdentity(String credential, String agentId, String bindingId, String instanceKey, long generation) Refreshes the fenced Catalog identity used by the next connection attempt. HTTP self-registration can advance an instance generation while this transport is reconnecting after a control-plane outage; keeping these values immutable would make every later handshake stale until the whole Agent process restarted. -
start
public void start() -
reportSessions
-
reportEvents
-
reportContext
-
reportInventory
-
reportExecutionAttempt
-
reportConversationTurn
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-