pub struct FunctionExecution {
pub id: String,
pub tasks: Vec<Task>,
pub tasks_errors: bool,
pub reasoning: Option<ReasoningSummary>,
pub output: Output,
pub error: Option<ResponseError>,
pub retry_token: Option<String>,
pub created: u64,
pub function: Option<RemotePath>,
pub profile: Option<RemotePath>,
pub object: Object,
pub usage: Usage,
}Expand description
A complete function execution response (non-streaming).
Fields§
§id: StringUnique identifier for this execution.
tasks: Vec<Task>Results from each task in the function.
tasks_errors: boolWhether any tasks encountered errors.
reasoning: Option<ReasoningSummary>Reasoning summary if reasoning was enabled.
output: OutputThe final output (scalar or vector score).
error: Option<ResponseError>Error details if the execution failed.
retry_token: Option<String>Token for retrying this execution with cached votes.
created: u64Unix timestamp when the execution was created.
function: Option<RemotePath>The function used (if remote).
profile: Option<RemotePath>The profile used (if remote).
object: ObjectObject type identifier.
usage: UsageAggregated token and cost usage.
Implementations§
Source§impl FunctionExecution
impl FunctionExecution
pub fn any_usage(&self) -> bool
Sourcepub fn normalize_for_tests(&mut self)
pub fn normalize_for_tests(&mut self)
Normalize non-deterministic fields for test snapshot comparison.
Trait Implementations§
Source§impl Clone for FunctionExecution
impl Clone for FunctionExecution
Source§fn clone(&self) -> FunctionExecution
fn clone(&self) -> FunctionExecution
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 FunctionExecution
impl Debug for FunctionExecution
Source§impl<'de> Deserialize<'de> for FunctionExecution
impl<'de> Deserialize<'de> for FunctionExecution
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
Source§impl From<FunctionExecutionChunk> for FunctionExecution
impl From<FunctionExecutionChunk> for FunctionExecution
Source§fn from(_: FunctionExecutionChunk) -> Self
fn from(_: FunctionExecutionChunk) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for FunctionExecution
impl JsonSchema for FunctionExecution
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FunctionExecution
impl RefUnwindSafe for FunctionExecution
impl Send for FunctionExecution
impl Sync for FunctionExecution
impl Unpin for FunctionExecution
impl UnsafeUnpin for FunctionExecution
impl UnwindSafe for FunctionExecution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more