synwire_agent/middleware/
environment.rs1use synwire_core::agents::middleware::Middleware;
4use synwire_core::tools::Tool;
5
6#[derive(Debug, Default)]
11pub struct EnvironmentMiddleware;
12
13impl Middleware for EnvironmentMiddleware {
14 fn name(&self) -> &'static str {
15 "environment"
16 }
17
18 fn tools(&self) -> Vec<Box<dyn Tool>> {
19 Vec::new()
20 }
21
22 fn system_prompt_additions(&self) -> Vec<String> {
23 vec![
24 "You have access to environment tools: get_env, set_env, list_env. \
25 Use get_env to read environment variable values, set_env to configure \
26 per-session variables, and list_env to enumerate available variables."
27 .to_string(),
28 ]
29 }
30}