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