Skip to main content

objectiveai_sdk/cli/output/notification/functions/executions/
create.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4/// Result of `functions executions create`.
5///
6/// Wire: `{"type":"notification","execution":{"output":...}}`.
7///
8/// Per-task / per-vote / reasoning errors are surfaced live during
9/// streaming via `Output::Error` notifications (see the CLI's
10/// streaming handler). They are NOT bundled into this payload.
11#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
12#[schemars(rename = "cli.output.notification.functions.executions.Execution")]
13pub struct Execution {
14    pub execution: ExecutionResult,
15}
16
17/// Body of an execution result: the final task output.
18#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
19#[schemars(rename = "cli.output.notification.functions.executions.ExecutionResult")]
20pub struct ExecutionResult {
21    pub output: crate::functions::expression::TaskOutputOwned,
22}