Skip to main content

Module command_host

Module command_host 

Source

Structs§

CommandTurnContext
Credential-free snapshot of the session’s assembled turn context for command execution. Mirrors what a main turn sees (capability message filters applied, merged harness/agent/session system prompt) without exposing provider credentials.
DisabledCommandHost
Host stub for embedders that dispatch commands without turn-context/LLM facilities. Both methods fail with a clear error.
SessionCompletion
Successful completion result.
SessionCompletionRequest
Request for a tool-less, out-of-band completion against the session’s resolved model. The capability supplies core messages; the host owns provider conversion (image resolution, external-actor prefixes, dangling-tool-call patching) and credentials.
SessionCompletionStream
Streaming variant of SessionCompletion: provider stream events for progressive output, aligned with crate::utility_llm::UtilityLlmService’s streaming shape.
StoreCommandHost
Store-backed CommandHost shared by all hosts (server full/dev mode via worker adapters, in-process runtime via its runtime stores). Reuses inspect_turn_context and the reason-path message-building conventions so command completions see exactly what a main turn would.

Enums§

SessionCompletionError
Completion failure.

Traits§

CommandHost
Host facilities available to crate::capabilities::Capability::execute_command.