跳转到正文

_controlled_packet_models API ​

完整接口目录 · 协议包用法 · 工具包下载

模块说明 ​

text
Model assembly for the existing permission-scoped one-packet actions.

The Host validates action profiles and resolves native inventory under its
execution gate. This module does no IO, wire encoding, or inventory synthesis.

prepare_controlled ​

python
def prepare_controlled(
    operations,
    packet,
    *,
    packet_type,
    held_item_ref = None,
    idempotency_key,
    deadline,
)

prepare_action ​

python
def prepare_action(operations, kind, fields, *, idempotency_key, deadline)

SDK 说明:

text
Adapt established SDK helper arguments to generated protocol fields.

intent_held_item_ref ​

python
def intent_held_item_ref(packet)

SDK 说明:

text
Read both new model intents and unchanged persisted legacy intents.

Neomega · 使用、开发与参考文档