v0.5.1
v0.5.1 — Flexible Transfer Granularity
Added
output=PayloadTypeonthink()— Controls what the returned context contains:PayloadType.AUTO(default): system decidesPayloadType.KV_CACHE: full KV-cache + hidden statePayloadType.HIDDEN_STATE: only last hidden state[1, D](~14KB vs ~76MB, KV freed)
PayloadType.AUTO— SDK-only sentinel (-1), resolves at runtime, never serializedAVPContext.payload_typeproperty — Derived from data present- Same-model hidden state injection —
generate()accepts hidden-state-only contexts for same-model (previously cross-model only) - Type validation for
output=with actionableConfigurationError
Removed
PayloadType.EMBEDDING— Removed from SDK and proto schema (dead code, never used)
Install
pip install avp==0.5.1Full changelog: https://github.com/VectorArc/avp-python/blob/main/CHANGELOG.md