Skip to main content

Module context

Module context 

Source
Expand description

Memory-mapped context for zero-copy sharing.

Provides shared memory context for DCP protocol with atomic operations and memory fencing for thread safety.

Structs§

ContextLayout
Context memory layout
DcpContext
Memory-mapped context for zero-copy sharing
ToolState
Tool state structure

Constants§

CONTEXT_MAGIC
Magic number for context validation
CONVERSATION_ID_OFFSET
Conversation ID offset
DYNAMIC_CONTENT_OFFSET
Dynamic content offset (after tool states)
HEADER_OFFSET
Context memory layout header offset
MAX_TOOL_STATES
Maximum number of tool states in context
MESSAGE_COUNT_OFFSET
Message count offset
TOOL_STATES_OFFSET
Tool states offset