Skip to main content

Module scene

Module scene 

Source
Expand description

SceneSpec — what a scene is: its identity, tool and module surface, budgets and per-turn reminders, as data, plus the one behavior a scene supplies itself, its prompt (ScenePrompt). Bound at session creation and immutable thereafter.

Structs§

ExecutionParams
Execution limits a scene imposes on its own turns.
FixedPrompt
A prompt that is the same blocks every time and has no session context.
ModuleSurface
Which modules (agents, mcp, skills, …) a session in the scene runs. allow: None runs every module the host assembled; naming one the host did not assemble adds nothing. The delegates a session spawns inherit the narrowed list.
ReminderContext
Context for building the <system-reminder> block.
ScenePromptContext
Context passed to ScenePrompt.
SceneSpec
A scene: everything but its prompt is data, so a host that builds on a built-in scene changes the fields it cares about and keeps the rest, instead of wrapping a trait object and forwarding every method.
TokenBudget
Token budget configuration for a scene.
ToolSurface
Which tools a session in the scene may have, and which of them are advertised by name only.

Enums§

Reminder
What the per-turn <system-reminder> carries, in the order listed.

Constants§

NEEDS_A_USER
Tools that only work when someone answers. A session nobody attends (see SceneSpec::interactive) does not register them.

Traits§

ScenePrompt
The scene’s system prompt and the facts it sends once in the opening context message.