objectiveai_sdk/functions/executions/response/unary/
reasoning_summary.rs1use crate::functions::executions::response;
2use crate::{agent, error};
3use serde::{Deserialize, Serialize};
4use schemars::JsonSchema;
5
6#[derive(Debug, Clone, Serialize, Deserialize, Default, JsonSchema)]
7#[schemars(rename = "functions.executions.response.unary.ReasoningSummary")]
8pub struct ReasoningSummary {
9 #[serde(flatten)]
10 pub inner: agent::completions::response::unary::AgentCompletion,
11 pub error: Option<error::ResponseError>,
12}
13
14impl From<response::streaming::ReasoningSummaryChunk> for ReasoningSummary {
15 fn from(
16 response::streaming::ReasoningSummaryChunk {
17 inner,
18 error,
19 }: response::streaming::ReasoningSummaryChunk,
20 ) -> Self {
21 Self {
22 inner: inner.into(),
23 error,
24 }
25 }
26}