Skip to main content

build_command_stdin_payload

Function build_command_stdin_payload 

Source
pub fn build_command_stdin_payload(
    kind: AgentKind,
    request: BuildCommandRequest<'_>,
) -> Result<Option<Vec<u8>>, AgentBackendError>
Expand description

Builds one optional stdin payload for providers that stream prompts instead of sending them through argv.

ยงErrors

Returns an error when provider-specific prompt rendering fails.