pub struct ApplicationInvokeResponse {
pub request_id: Option<String>,
pub conversation_id: Option<String>,
pub app_id: Option<String>,
pub choices: Option<Vec<ApplicationInvokeChoice>>,
pub usage: Option<Vec<ApplicationInvokeUsage>>,
}Expand description
Response from an application-v3 invocation.
The frozen OpenAPI schema marks every individual field optional. The
operations contract still requires at least one documented field to be
present; validate enforces that invariant after decode.
Fields§
§request_id: Option<String>Request identifier.
conversation_id: Option<String>Conversation identifier.
app_id: Option<String>Application identifier.
choices: Option<Vec<ApplicationInvokeChoice>>Invocation choices.
usage: Option<Vec<ApplicationInvokeUsage>>Per-node token usage.
Implementations§
Trait Implementations§
Source§impl Clone for ApplicationInvokeResponse
impl Clone for ApplicationInvokeResponse
Source§fn clone(&self) -> ApplicationInvokeResponse
fn clone(&self) -> ApplicationInvokeResponse
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 ApplicationInvokeResponse
impl Debug for ApplicationInvokeResponse
Source§impl<'de> Deserialize<'de> for ApplicationInvokeResponse
impl<'de> Deserialize<'de> for ApplicationInvokeResponse
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
impl StructuralPartialEq for ApplicationInvokeResponse
Auto Trait Implementations§
impl Freeze for ApplicationInvokeResponse
impl RefUnwindSafe for ApplicationInvokeResponse
impl Send for ApplicationInvokeResponse
impl Sync for ApplicationInvokeResponse
impl Unpin for ApplicationInvokeResponse
impl UnsafeUnpin for ApplicationInvokeResponse
impl UnwindSafe for ApplicationInvokeResponse
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