rust-agent 0.0.5

Next Generation AI Agent Framework for Web3.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Prompt template implementation
use anyhow::Error;
use std::collections::HashMap;

// Prompt template interface
pub trait PromptTemplate: Send + Sync {
    // Get template input variable names
    fn input_variables(&self) -> Vec<String> {
        unimplemented!();
    }
    
    // Format template
    fn format(&self, inputs: HashMap<String, String>) -> Result<String, Error> {
        let _inputs = inputs;
        unimplemented!();
    }
}