11 lines
365 B
Rust
11 lines
365 B
Rust
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
|
|
}
|