Skip to content

Commit 114af0a

Browse files
SStasclaude
andcommitted
Bump version to 0.5.0
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 6f7d04e commit 114af0a

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ All notable changes to the AVP Python SDK are documented in this file.
44

55
Format follows [Keep a Changelog](https://keepachangelog.com/). Versions follow [Semantic Versioning](https://semver.org/).
66

7+
## [0.5.0] - 2026-04-02
8+
9+
### Added
10+
11+
- **`output=PayloadType` on `think()`** — Controls what the returned context contains. `PayloadType.AUTO` (default) lets the system decide, `PayloadType.KV_CACHE` returns full KV-cache, `PayloadType.HIDDEN_STATE` returns only the last hidden state vector `[1, D]` (KV-cache freed immediately, ~14KB vs ~76MB). Enables flexible transfer granularity for bandwidth-constrained or cross-process scenarios.
12+
- **`PayloadType.AUTO`** — SDK-only sentinel (`-1`) that resolves to the optimal payload type at runtime. Never serialized.
13+
- **`AVPContext.payload_type` property** — Derived from data present: `KV_CACHE` if `past_key_values` is set, `HIDDEN_STATE` if only hidden state. Raises `ValueError` on empty context.
14+
- **Same-model hidden state injection in `generate()`**`generate()` now accepts same-model contexts with only a hidden state (previously gated behind `cross_model=True`). Uses existing embedding injection path.
15+
- Type validation for `output=` in Easy API — rejects non-`PayloadType` values with actionable `ConfigurationError`.
16+
17+
### Removed
18+
19+
- **`PayloadType.EMBEDDING`** — Removed from SDK enum and proto schema. Was never used in production code. Proto value 2 is available for future use.
20+
21+
### Changed
22+
23+
- `PayloadType` enum reordered: `AUTO = -1`, `HIDDEN_STATE = 0`, `KV_CACHE = 1`.
24+
- Proto schema cleaned: `EMBEDDING` removed from both `avp-python/proto/avp.proto` and `avp-spec/schemas/avp.proto`.
25+
726
## [0.4.2] - 2026-03-29
827

928
### Added

src/avp/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
CONTENT_TYPE = "application/avp+binary"
2525
AVP_VERSION_HEADER = "0.4"
26-
AVP_VERSION_STRING = "0.4.2"
26+
AVP_VERSION_STRING = "0.5.0"
2727

2828
# Flag bit constants — fast-path routing hints.
2929
# If FLAG_KV_CACHE is set, metadata.payload_type MUST be KV_CACHE.

src/avp/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.2"
1+
__version__ = "0.5.0"

0 commit comments

Comments
 (0)