Skip to main content

Module text_model

Module text_model 

Source
Expand description

A model that turns a system prompt and a user message into text.

Work that happens outside a run (drafting a skill from a description, suggesting lessons from earlier feedback) needs one plain completion and nothing else of a chat model: no tools, no streaming, no run context. This trait is that much and no more, so the crates that do such work do not depend on a model provider. graphrt-llm implements it for any chat model.

Structs§

TextModelError
The model could not answer.
TextRequest
One completion request.

Traits§

TextModel
A model that answers one request with text.