Struct FunctionResponse
pub struct FunctionResponse {
pub name: String,
pub response: Value,
pub id: Option<String>,
pub scheduling: Option<FunctionResponseScheduling>,
}Expand description
A function call response sent back to the model.
Fields§
§name: StringName of the function that was called.
response: ValueJSON response from the function execution.
id: Option<String>Call ID matching the original FunctionCall::id.
scheduling: Option<FunctionResponseScheduling>Scheduling mode for non-blocking tool responses.
Only meaningful when the function was declared with
super::FunctionCallingBehavior::NonBlocking. Controls how the model
processes this result: immediately (interrupt), after finishing
current output (when_idle), or silently (no user notification).
Trait Implementations§
§impl Clone for FunctionResponse
impl Clone for FunctionResponse
§fn clone(&self) -> FunctionResponse
fn clone(&self) -> FunctionResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FunctionResponse
impl Debug for FunctionResponse
§impl<'de> Deserialize<'de> for FunctionResponse
impl<'de> Deserialize<'de> for FunctionResponse
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for FunctionResponse
impl PartialEq for FunctionResponse
§impl Serialize for FunctionResponse
impl Serialize for FunctionResponse
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FunctionResponse
Auto Trait Implementations§
impl Freeze for FunctionResponse
impl RefUnwindSafe for FunctionResponse
impl Send for FunctionResponse
impl Sync for FunctionResponse
impl Unpin for FunctionResponse
impl UnwindSafe for FunctionResponse
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