pub struct ApiErrorParams {
pub effort: Option<String>,
pub provider: Option<ApiErrorProvider>,
pub remedy: Option<ApiErrorRemedy>,
}Expand description
Parameters of an assistant frame’s api_error, carried as
AssistantMessage::api_error_params only for the error kinds that have
any (CLI 2.1.274+).
Fields§
§effort: Option<String>The effort level the API refused (effort_requires_thinking).
provider: Option<ApiErrorProvider>The API provider whose credentials failed (provider_credentials,
gateway_session_expired).
remedy: Option<ApiErrorRemedy>How to repair the failed credentials (provider_credentials,
gateway_session_expired).
Trait Implementations§
Source§impl Clone for ApiErrorParams
impl Clone for ApiErrorParams
Source§fn clone(&self) -> ApiErrorParams
fn clone(&self) -> ApiErrorParams
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 ApiErrorParams
impl Debug for ApiErrorParams
Source§impl Default for ApiErrorParams
impl Default for ApiErrorParams
Source§fn default() -> ApiErrorParams
fn default() -> ApiErrorParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiErrorParams
impl<'de> Deserialize<'de> for ApiErrorParams
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 Eq for ApiErrorParams
Source§impl PartialEq for ApiErrorParams
impl PartialEq for ApiErrorParams
Source§impl Serialize for ApiErrorParams
impl Serialize for ApiErrorParams
impl StructuralPartialEq for ApiErrorParams
Auto Trait Implementations§
impl Freeze for ApiErrorParams
impl RefUnwindSafe for ApiErrorParams
impl Send for ApiErrorParams
impl Sync for ApiErrorParams
impl Unpin for ApiErrorParams
impl UnsafeUnpin for ApiErrorParams
impl UnwindSafe for ApiErrorParams
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