Skip to main content

Module module

Module module 

Source

Structs§

ContextBuilder
Encapsulates context component management and builds combined context sections.
ContextComponentId
Strongly-typed identifier for context components. Using a wrapper type prevents accidental hardcoding of strings and ensures compile-time checking of component references.
PromptBuilder
Encapsulates prompt component management and builds the combined prompt.
PromptComponentId
Strongly-typed identifier for prompt components. Using a wrapper type prevents accidental hardcoding of strings and ensures compile-time checking of component references.

Enums§

ContextComponentSelection
Selection strategy for which context components an agent wants included.
PromptComponentSelection
Selection strategy for which prompt components an agent wants included.

Traits§

ContextComponent
A composable unit that contributes to the context message. Implementations provide specific sections of context content. Components should be self-contained - owning any state they need.
Module
A Module bundles related prompt components, context components, and tools.
PromptComponent
A composable unit that contributes to the system prompt. Implementations provide specific sections of prompt content.
SessionStateComponent
Handles session persistence for a module’s state.
SlashCommand
A slash command that can be provided by a module. Modules implement this trait for commands they want to register.