Skip to main content

agent_template

Macro agent_template 

Source
macro_rules! agent_template {
    ($name:expr => {
        $(system_prompt: $prompt:expr,)?
        $(model: $model:expr,)?
        $(temperature: $temp:expr,)?
        $(tools: [$($tool:expr),* $(,)?],)?
        $(capabilities: [$($cap:expr),* $(,)?],)?
        $(description: $desc:expr,)?
    }) => { ... };
}
Expand description

Macro for defining templates concisely