pub struct ReasoningItem {
pub id: String,
pub encrypted_content: Option<String>,
pub summary: Vec<ReasoningItemSummary>,
pub status: Option<ReasoningItemStatus>,
}
Expand description
A description of the chain of thought used by a reasoning model while generating
a response. Be sure to include these items in your input
to the Responses API
for subsequent turns of a conversation if you are manually
managing context.
Fields§
§id: String
The unique identifier of the reasoning content.
encrypted_content: Option<String>
The encrypted content of the reasoning item - populated when a response is
generated with reasoning.encrypted_content
in the include
parameter.
summary: Vec<ReasoningItemSummary>
Reasoning text contents.
status: Option<ReasoningItemStatus>
The status of the item. One of in_progress
, completed
, or
incomplete
. Populated when items are returned via API.
Implementations§
Source§impl ReasoningItem
impl ReasoningItem
Sourcepub fn builder() -> ReasoningItemBuilder<((), (), (), ())>
pub fn builder() -> ReasoningItemBuilder<((), (), (), ())>
Create a builder for building ReasoningItem
.
On the builder, call .id(...)
, .encrypted_content(...)
(optional), .summary(...)
, .status(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ReasoningItem
.
Trait Implementations§
Source§impl Clone for ReasoningItem
impl Clone for ReasoningItem
Source§fn clone(&self) -> ReasoningItem
fn clone(&self) -> ReasoningItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more