pub enum ResumePayload {
Single {
response: String,
usage: Option<TokenUsage>,
query_id: String,
},
Batch(Vec<QueryResponse>),
}Expand description
Payload supplied to crate::execution::ExecutionService::resume.
Must match the pause kind of the session being resumed: a Single-paused session
requires Single, a Batch-paused session requires Batch.
Variants§
Single
Resume a session that is waiting for a single LLM response.
Fields
§
usage: Option<TokenUsage>Token usage metadata for this response, if available.
Batch(Vec<QueryResponse>)
Resume a session that is waiting for multiple LLM responses.
Trait Implementations§
Source§impl Clone for ResumePayload
impl Clone for ResumePayload
Source§fn clone(&self) -> ResumePayload
fn clone(&self) -> ResumePayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResumePayload
impl Debug for ResumePayload
Source§impl<'de> Deserialize<'de> for ResumePayload
impl<'de> Deserialize<'de> for ResumePayload
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 ResumePayload
impl RefUnwindSafe for ResumePayload
impl Send for ResumePayload
impl Sync for ResumePayload
impl Unpin for ResumePayload
impl UnsafeUnpin for ResumePayload
impl UnwindSafe for ResumePayload
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