Skip to main content

text_request

Function text_request 

Source
pub fn text_request(
    model: Option<String>,
    prompt: impl Into<String>,
) -> LlmRequest
Expand description

Builds a single-turn request: one user message carrying prompt, for model.

This deliberately creates only the common text shape. Construct LlmRequest directly for instructions, tools, multimodal content, or sampling controls.