objectiveai-sdk 2.0.8

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};
use schemars::JsonSchema;

/// A state specification that is either an inline ParamsState definition
/// or a remote path reference.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
#[serde(untagged)]
#[schemars(rename = "functions.inventions.state.ParamsStateOrRemoteCommitOptional")]
pub enum ParamsStateOrRemoteCommitOptional {
    #[schemars(title = "ParamsState")]
    Inline(super::ParamsState),
    #[schemars(title = "Remote")]
    Remote(crate::RemotePathCommitOptional),
}