
Unified the naming convention for agent functions across modules to `agent` for consistency. Adjusted relevant imports and cleaned up unused imports in `webhooks.rs` to improve readability and maintainability.
7 lines
241 B
Rust
7 lines
241 B
Rust
use crate::utils::utils::run_agent;
|
|
use tokio::process::Child;
|
|
|
|
pub async fn agent(stream_id: &str, input: &str) -> Result<Child, String> {
|
|
run_agent(stream_id, input, "./packages/genaiscript/genaisrc/news-search.genai.mts", 10).await
|
|
}
|