TypeMarker

Derive Macro TypeMarker 

Source
#[derive(TypeMarker)]
Expand description

Derive macro for TypeMarker trait.

Automatically implements the TypeMarker trait and adds a __type field with a default value based on the struct name.

§Example

use llm_toolkit::orchestrator::TypeMarker;
use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize, TypeMarker)]
pub struct HighConceptResponse {
    pub reasoning: String,
    pub high_concept: String,
}

// Expands to:
// - Adds __type: String field with #[serde(default = "...")]
// - Implements TypeMarker with TYPE_NAME = "HighConceptResponse"