pub struct LlmOutput {
pub content: String,
pub finish_reason: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
LLM output (completion).
Fields§
§content: StringGenerated text
finish_reason: Option<String>Finish reason (stop, length, content_filter, etc.)
metadata: HashMap<String, Value>Additional output metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LlmOutput
impl<'de> Deserialize<'de> for LlmOutput
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LlmOutput
impl RefUnwindSafe for LlmOutput
impl Send for LlmOutput
impl Sync for LlmOutput
impl Unpin for LlmOutput
impl UnwindSafe for LlmOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more