外观
typed_packet_send API
模块说明
text
Frozen generic model intents for the Host-owned packet dispatcher.PROTOCOL_PACKET_OPERATION
python
PROTOCOL_PACKET_OPERATION = 'framework.packet.send_protocol'TypedPacketSender
python
class TypedPacketSenderSDK 说明:
text
Prepare locally; encode in the Host at claim using the fenced connection.
No diagnostic codec RPC is part of prepare or submit. Mutating the model
later cannot alter a prepared intent. Retain the intent and operation ID
when admission or dispatch is uncertain; this helper never retries.TypedPacketSender.__init__
python
def __init__(self, operations)TypedPacketSender.prepare
python
def prepare(self, packet, *, connection_id, idempotency_key, deadline)TypedPacketSender.submit
python
async def submit(self, intent, *, timeout=10)TypedPacketSender.operations
python
self.operations公开实例属性,在 __init__ 中设置。