init
This commit is contained in:
10
src/agents/image_generator.rs
Normal file
10
src/agents/image_generator.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use crate::utils::utils::run_agent;
|
||||
use tokio::process::Child;
|
||||
|
||||
pub async fn image_generator(stream_id: &str, input: &str) -> Result<Child, String> {
|
||||
tracing::debug!(
|
||||
"Running image generator, \ninput: {}",
|
||||
input
|
||||
);
|
||||
run_agent(stream_id, input, "./packages/genaiscript/genaisrc/image-generator.genai.mts").await
|
||||
}
|
Reference in New Issue
Block a user