pub trait Prompter<T>: Execute<T> { }Expand description
A language-model inference provider that turns a prompt into a response.
The default contract is UTF-8 text in and out. It does not standardize chat roles, conversation delimiters, or tool calls; programs assigning those meanings to text must document their conventions. Structured formats require explicitly selected tokens and compatible profiles.
§Command-line contract
PROGRAM [OPTIONS] [INPUT-FILE [OUTPUT-FILE]]
Input and output default to stdin and stdout. A single operand selects
input; two select input then output, with - denoting a standard stream.
PrompterOptions selects formats (both default to text) and an inference
model (default auto). Repeated invocations need not be deterministic.
Response whitespace and newlines are part of the result and are preserved.
T is the implementation’s response representation. See crate::programs
for links to concrete execution behavior and the
prompter specification.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".