llm_chain::prompt

Type Alias Prompt

Source
pub type Prompt = Data<String>;
Expand description

A prompt.

A prompt input for an LLM model.

Aliased Type§

enum Prompt {
    Chat(ChatMessageCollection<String>),
    Text(String),
}

Variants§

§

Chat(ChatMessageCollection<String>)

A collection of chat messages.

§

Text(String)

A text prompt.