Skip to main content

Module session_model

Module session_model 

Source

Modules§

context
Context-preparation vocabulary shared between the runtime and the plugin host. The concrete strategy (rolling history, overflow recovery, /compact) lives in [crate::plugin_builtin::rolling_history] and is dispatched through the TurnContextTransform and HistoryRewriter plugin capability surfaces.
message
prompt

Structs§

ConversationRecord
ErrorEnvelope
Message
A structured message with typed parts for context management.
Part
PromptTemplate
PromptTemplateSection
ProtocolEvent
RuntimeSessionPolicy
Runtime-only policy resolved against host-owned live dependencies.
SessionPolicy
SessionSpec
Reusable session configuration overlay.
TokenUsage
Token usage statistics from an LLM call.
TurnTerminationPolicyState

Enums§

MessageRole
PartKind
PromptBuiltin
PromptSlot
PromptTemplateEntry
PruneState
SessionEvent

Constants§

MAIN_AGENT_INTRO

Functions§

default_prompt_template
format_tool_output_content
fresh_message_id
make_error_envelope
make_error_event
reassign_part_ids
render_prompt
render_transcript_prompt
shared_parts
Wrap a Vec<Part> for the Message::parts field. Use this in struct literals and tests (parts: shared_parts(vec![Part { ... }])) so the call sites stay short and uniform.

Type Aliases§

SessionEventRecord