pub struct ReasoningItem {
pub id: String,
pub encrypted_content: Option<String>,
pub summary: Vec<Item>,
pub content: Option<Vec<Item>>,
pub status: Option<Status>,
}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: StringThe 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<Item>Reasoning summary content.
content: Option<Vec<Item>>Reasoning text content.
status: Option<Status>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(...), .content(...)(optional), .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