Remove finance-related code and dependencies.
This commit entirely removes the financial query agent, market data tools, and associated code and dependencies. It simplifies the codebase by eliminating unused or unnecessary functionality related to cryptocurrency market data and financial analysis.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
use tokio::process::Child;
|
||||
use tracing;
|
||||
|
||||
use crate::utils::utils::run_agent;
|
||||
|
||||
pub async fn finance_query_agent(stream_id: &str, input: &str) -> Result<Child, String> {
|
||||
run_agent(stream_id, input, "./packages/genaiscript/genaisrc/finance-query.genai.mts").await
|
||||
}
|
||||
|
||||
|
||||
// #[cfg(test)]
|
||||
// mod tests {
|
||||
// use std::fmt::Debug;
|
||||
// use crate::agents::search::search_agent;
|
||||
//
|
||||
// #[tokio::test] // Mark the test function as async
|
||||
// async fn test_search_execution() {
|
||||
// let input = "Who won the 2024 presidential election?";
|
||||
//
|
||||
// let mut command = search_agent("test-stream", input).await.unwrap();
|
||||
//
|
||||
// // command.stdout.take().unwrap().read_to_string(&mut String::new()).await.unwrap();
|
||||
// // Optionally, you can capture and inspect stdout if needed:
|
||||
// let output = command.wait_with_output().await.expect("Failed to wait for output");
|
||||
// println!("Stdout: {}", String::from_utf8_lossy(&output.stdout));
|
||||
// println!("Stderr: {}", String::from_utf8_lossy(&output.stderr));
|
||||
// }
|
||||
// }
|
@@ -18,7 +18,6 @@ use std::time::Duration;
|
||||
use tokio::io::{AsyncBufReadExt, BufReader};
|
||||
use tokio::process::Command;
|
||||
use tokio::sync::Mutex;
|
||||
use crate::agents::crypto_market::finance_query_agent;
|
||||
use crate::agents::image_generator::image_generator;
|
||||
|
||||
// init sled
|
||||
@@ -100,7 +99,6 @@ pub async fn handle_webhooks(Path(stream_id): Path<String>) -> impl IntoResponse
|
||||
"web-search" => search_agent(stream_id.as_str(), &*input).await,
|
||||
"news-search" => news_agent(stream_id.as_str(), &*input).await,
|
||||
"image-generator" => image_generator(stream_id.as_str(), &*input).await,
|
||||
"finance-query" => finance_query_agent(stream_id.as_str(), &*input).await,
|
||||
"web-scrape" => scrape_agent(stream_id.as_str(), &*input).await,
|
||||
_ => {
|
||||
tracing::error!("Unsupported resource type: {}", resource);
|
||||
|
Reference in New Issue
Block a user