pub struct Response {
pub llm_response: LlmResponse,
pub metadata: Option<Metadata>,
}Expand description
A response an algorithm returns: the LlmResponse (streamed or aggregate) plus
optional correlation Metadata.
Not Clone — llm_response may own a live stream.
Fields§
§llm_response: LlmResponseThe neutral model response — a chunk stream or the buffered aggregate.
metadata: Option<Metadata>Correlation metadata carried through the response.
Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl !RefUnwindSafe for Response
impl Send for Response
impl !Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl !UnwindSafe for Response
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