synwire_agent/middleware/
http.rs1use synwire_core::agents::middleware::Middleware;
4use synwire_core::tools::Tool;
5
6#[derive(Debug, Default)]
8pub struct HttpMiddleware;
9
10impl Middleware for HttpMiddleware {
11 fn name(&self) -> &'static str {
12 "http"
13 }
14
15 fn tools(&self) -> Vec<Box<dyn Tool>> {
16 Vec::new()
17 }
18
19 fn system_prompt_additions(&self) -> Vec<String> {
20 vec![
21 "You have access to HTTP tools: http_get, http_post, http_put, http_delete."
22 .to_string(),
23 ]
24 }
25}