pub struct HttpLlmResponse {
pub delay: Option<Delay>,
pub provider: Option<String>,
pub model: Option<String>,
pub completion: Option<LlmCompletion>,
pub embedding: Option<Value>,
pub rerank: Option<Value>,
pub moderation: Option<Value>,
pub content_filter: Option<Value>,
pub conversation_predicates: Option<Value>,
pub chaos: Option<Value>,
pub primary: Option<bool>,
pub extra: Extra,
}Expand description
The LLM response action (httpLlmResponse). Only the completion, embedding,
rerank, moderation and content-filter sub-objects are commonly set; each is
optional and every unknown/nested field is preserved via its own extra
catch-all so full LLM configs round-trip.
Fields§
§delay: Option<Delay>§provider: Option<String>"ANTHROPIC", "OPENAI", "OPENAI_RESPONSES", "GEMINI", "BEDROCK",
"AZURE_OPENAI", "OLLAMA", "COHERE", "VOYAGE", and the OpenAI-chat-compatible
"MISTRAL", "XAI", "DEEPSEEK", "GROQ", "OPENROUTER".
model: Option<String>§completion: Option<LlmCompletion>§embedding: Option<Value>Embedding-response config (kept free-form; round-trips verbatim).
rerank: Option<Value>Rerank-response config (kept free-form; round-trips verbatim).
moderation: Option<Value>Moderation-response config (kept free-form; round-trips verbatim).
content_filter: Option<Value>Content-filter config (kept free-form; round-trips verbatim).
conversation_predicates: Option<Value>Conversation-matching predicates (kept free-form; round-trips verbatim).
chaos: Option<Value>LLM-specific chaos config (kept free-form; round-trips verbatim).
primary: Option<bool>§extra: ExtraImplementations§
Source§impl HttpLlmResponse
impl HttpLlmResponse
Sourcepub fn provider(self, provider: impl Into<String>) -> Self
pub fn provider(self, provider: impl Into<String>) -> Self
Set the provider (e.g. "ANTHROPIC", "OPENAI").
Sourcepub fn completion(self, completion: LlmCompletion) -> Self
pub fn completion(self, completion: LlmCompletion) -> Self
Set the completion.
Trait Implementations§
Source§impl Clone for HttpLlmResponse
impl Clone for HttpLlmResponse
Source§fn clone(&self) -> HttpLlmResponse
fn clone(&self) -> HttpLlmResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more