pub struct NativeResponse {
pub content: Option<String>,
pub model: String,
pub usage: Option<Usage>,
pub finish_reason: FinishReason,
pub reasoning: Option<String>,
pub tool_calls: Vec<ToolCall>,
pub native_calls: Vec<NativeCall>,
pub assistant_blocks: Vec<Value>,
pub request_id: Option<String>,
pub organization_id: Option<String>,
}Expand description
Bound-route response: ordinary calls for existing dispatch, natives for the computer controller, verbatim blocks for history replay.
Fields§
§content: Option<String>Joined text content, when the turn produced any.
model: StringModel that generated the response.
usage: Option<Usage>Token usage statistics.
finish_reason: FinishReasonWhy the response finished.
reasoning: Option<String>Joined thinking text, when the turn produced any.
tool_calls: Vec<ToolCall>Ordinary function calls in wire order.
native_calls: Vec<NativeCall>Decoded native calls in wire order.
assistant_blocks: Vec<Value>Verbatim assistant content blocks for replay on the next request.
request_id: Option<String>Request ID from the provider.
organization_id: Option<String>Organization ID from the provider.
Trait Implementations§
Auto Trait Implementations§
impl Forget for NativeResponse
impl Freeze for NativeResponsewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<ToolCall>: Freeze,
PhantomData<NativeCall>: Freeze,
impl Move for NativeResponse
impl RefUnwindSafe for NativeResponse
impl Send for NativeResponse
impl Sync for NativeResponse
impl Unpin for NativeResponse
impl UnsafeUnpin for NativeResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<ToolCall>: UnsafeUnpin,
PhantomData<NativeCall>: UnsafeUnpin,
impl UnwindSafe for NativeResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.