Converted all external tool calling to async

This commit is contained in:
Timmy
2026-06-29 16:59:54 +01:00
parent 75f41088b1
commit feb35ddd10
49 changed files with 482 additions and 496 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ pub async fn agent_stream(
Path((story_id, agent_name)): Path<(String, String)>,
ctx: Data<&Arc<AppContext>>,
) -> impl IntoResponse {
let mut rx = match ctx.services.agents.subscribe(&story_id, &agent_name) {
let mut rx = match ctx.services.agents.subscribe(&story_id, &agent_name).await {
Ok(rx) => rx,
Err(e) => {
return Response::builder()