eln_plugin_sdk/identity.rs
1//! Tool 호출자 정체성 — SHOULD scope, default `Human`.
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
6#[serde(tag = "kind", rename_all = "snake_case")]
7#[non_exhaustive]
8pub enum Identity {
9 Human,
10 Agent { name: String },
11 System,
12}
13
14impl Default for Identity {
15 fn default() -> Self {
16 Identity::Human
17 }
18}