objectiveai-sdk 2.0.6

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Role type for agent completion responses.

use serde::{Deserialize, Serialize};
use schemars::JsonSchema;

/// The role of a message in a response (always "assistant").
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize, Default, JsonSchema, arbitrary::Arbitrary)]
#[schemars(rename = "agent.completions.response.AssistantRole")]
pub enum AssistantRole {
    /// The assistant role.
    #[serde(rename = "assistant")]
    #[default]
    Assistant,
}