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".
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 moreSource§impl Debug for HttpLlmResponse
impl Debug for HttpLlmResponse
Source§impl Default for HttpLlmResponse
impl Default for HttpLlmResponse
Source§fn default() -> HttpLlmResponse
fn default() -> HttpLlmResponse
Source§impl<'de> Deserialize<'de> for HttpLlmResponse
impl<'de> Deserialize<'de> for HttpLlmResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for HttpLlmResponse
impl PartialEq for HttpLlmResponse
Source§fn eq(&self, other: &HttpLlmResponse) -> bool
fn eq(&self, other: &HttpLlmResponse) -> bool
self and other values to be equal, and is used by ==.