Skip to main content

Module session

Module session 

Source

Structs§

Session
Session tracks symbols that have been transmitted to a client, enabling subsequent responses to reference them by ID without full retransmission. Thread-safe: multiple tool handlers may encode concurrently within a session.

Functions§

encode_with_session
Encode a payload with session deduplication. Symbols that were already transmitted in prior responses are emitted as bare references (@N # previously transmitted) instead of full declarations.