Converted all external tool calling to async
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user