objectiveai-cli-sdk 2.0.5

Library surface for objectiveai-cli: structured JSON Lines output types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// Result of `functions profiles pairs get`. The CLI fetches both
/// halves of the pair and emits them together.
///
/// Wire: `{"type":"notification","pair":{"function":...,"profile":...}}`.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Pair {
    pub pair: FunctionProfilePair,
}

/// The composite body inside a `Pair` notification.
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct FunctionProfilePair {
    pub function: objectiveai_sdk::functions::response::GetFunctionResponse,
    pub profile: objectiveai_sdk::functions::profiles::response::GetProfileResponse,
}