parent
beab32894b
commit
006836b03c
1 changed files with 0 additions and 13 deletions
|
|
@ -96,17 +96,6 @@ pub fn get_tools() -> Vec<Tool> {
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Tool {
|
|
||||||
tool_type: "function".to_string(),
|
|
||||||
function: FunctionDefinition {
|
|
||||||
name: "get_current_time".to_string(),
|
|
||||||
description: "Get the current date and time in ISO 8601 format".to_string(),
|
|
||||||
parameters: serde_json::json!({
|
|
||||||
"type": "object",
|
|
||||||
"properties": {},
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -209,8 +198,6 @@ pub async fn handle_tool_call(
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
(out, false)
|
(out, false)
|
||||||
} else if name == "get_current_time" {
|
|
||||||
(chrono::Utc::now().to_rfc3339(), false)
|
|
||||||
} else {
|
} else {
|
||||||
(format!("Error: Unknown tool {}", name), false)
|
(format!("Error: Unknown tool {}", name), false)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue