eln-plugin-sdk 0.1.1

Plugin API platform for the elendirna project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Tool 호출자 정체성 — SHOULD scope, default `Human`.

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(tag = "kind", rename_all = "snake_case")]
#[non_exhaustive]
pub enum Identity {
    Human,
    Agent { name: String },
    System,
}

impl Default for Identity {
    fn default() -> Self {
        Identity::Human
    }
}