From b6dddc9cdaf4ec61a25299e71d0586c5c2f236ff Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Sun, 27 Aug 2023 14:25:59 +0800 Subject: [PATCH] refactor: remove unsued code --- counit-server/src/server/agent_api.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/counit-server/src/server/agent_api.rs b/counit-server/src/server/agent_api.rs index 37c919a..00db70e 100644 --- a/counit-server/src/server/agent_api.rs +++ b/counit-server/src/server/agent_api.rs @@ -3,7 +3,6 @@ use axum::http::StatusCode; use serde::{Deserialize, Serialize}; use crate::agent::prompts::tool_prompt; -use crate::agent::tools::{Tool, tools_list}; use crate::dsl::query_description::QAExample; pub(crate) fn router() -> Router { @@ -13,8 +12,6 @@ pub(crate) fn router() -> Router { .route("/prompt/explain", get(explain_query)) .route("/prompt/functions/matching", post(tool_prompter)) - - // .route("/prompt/functions/list", get(functions)) } #[derive(Debug, Deserialize)] @@ -54,8 +51,3 @@ pub(crate) async fn tool_prompter( } impl crate::server::ApiResponse for PromptResult {} - - -pub(crate) async fn functions() -> (StatusCode, Json>) { - (StatusCode::OK, Json(Vec::from(tools_list()))) -} \ No newline at end of file