Skip to main content

Module prompt

Module prompt 

Source
Expand description

Prompt requests, responses, and incremental output streams. Prompt inputs, exact terminal responses, and transient output observation.

crate::prompt::PromptRequest applies per-prompt overrides to inherited workspace and Agent settings. crate::prompt::PromptStream observes the same accepted owner as unary prompting: deltas are transient, and only crate::prompt::PromptEvent::Completed conveys its authoritative response. Dropping observation does not abort accepted work.

Structs§

PromptRequest
Supplies one foreground prompt and its optional portable overrides.
PromptResponse
Contains the exact terminal output of one foreground prompt.
PromptStream
Non-Clone observation of one accepted prompt’s transient output.
StructuredOutputRequest
Strict self-contained JSON Schema requested for structured prompt output.
UsageInfo
Reports token usage covering every native model call in one prompt.

Enums§

PromptEvent
Transient text observation or the authoritative terminal prompt response.