Skip to content

Commit

Permalink
refactor: remove unsued code
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 27, 2023
1 parent 7e871ac commit b6dddc9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions counit-server/src/server/agent_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)]
Expand Down Expand Up @@ -54,8 +51,3 @@ pub(crate) async fn tool_prompter(
}

impl crate::server::ApiResponse for PromptResult {}


pub(crate) async fn functions() -> (StatusCode, Json<Vec<Tool>>) {
(StatusCode::OK, Json(Vec::from(tools_list())))
}

0 comments on commit b6dddc9

Please sign in to comment.