Skip to main content

ReasonResult

Struct ReasonResult 

Source
pub struct ReasonResult {
Show 19 fields pub native_counts: Option<NativeExecutionCounts>, pub success: bool, pub text: String, pub tool_calls: Vec<ToolCall>, pub has_tool_calls: bool, pub tool_definitions: Vec<ToolDefinition>, pub max_iterations: usize, pub error: Option<String>, pub user_facing_error: Option<UserFacingError>, pub error_disclosure: Option<ErrorDisclosure>, pub usage: Option<TokenUsage>, pub output_message_id: Option<MessageId>, pub time_to_first_token_ms: Option<u64>, pub response_id: Option<String>, pub finish_reason: Option<String>, pub locale: Option<String>, pub network_access: Option<NetworkAccessList>, pub parallel_tool_calls: Option<bool>, pub waiting_for_tool_results: bool,
}
Expand description

Result of the ReasonAtom

Fields§

§native_counts: Option<NativeExecutionCounts>§success: bool

Whether the LLM call succeeded

§text: String

Text response from the model

§tool_calls: Vec<ToolCall>

Tool calls requested by the model

§has_tool_calls: bool

Whether tool execution is needed

§tool_definitions: Vec<ToolDefinition>

Tool definitions from applied capabilities (for tool execution)

§max_iterations: usize

Maximum iterations configured for the agent

§error: Option<String>

Error message if the call failed

§user_facing_error: Option<UserFacingError>

Disclosed user-facing decision of the failure, already filtered through the resolved error-disclosure mode. Hosts must prefer this over re-classifying error/text strings so disclosure stays consistent.

§error_disclosure: Option<ErrorDisclosure>

Error-disclosure mode that was applied to user_facing_error.

§usage: Option<TokenUsage>

Token usage from the LLM call

§output_message_id: Option<MessageId>

Assistant message emitted by output.message.completed for this generation.

§time_to_first_token_ms: Option<u64>

Streaming latency for this LLM call, when available.

§response_id: Option<String>

LLM provider’s response ID for chaining with previous_response_id

§finish_reason: Option<String>

Raw provider finish reason for this generation.

§locale: Option<String>

Resolved locale used for this turn’s prompt and backend-authored strings.

§network_access: Option<NetworkAccessList>

Merged network access list for URL filtering in tools.

§parallel_tool_calls: Option<bool>

Request-level parallel tool calling preference (EVE-598), carried from the resolved agent config into ActInput so the act scheduler can honor Some(false) (force serialize). None preserves the default schedule.

§waiting_for_tool_results: bool

A remote tool loop (OpenAI Agents API) paused on a tool call; the turn parks (EVE-1124).

Trait Implementations§

Source§

impl Clone for ReasonResult

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ReasonResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ReasonResult

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ReasonResult

Source§

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 Serialize for ReasonResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more