Converted all external tool calling to async
This commit is contained in:
@@ -230,10 +230,7 @@ pub fn load_pipeline_state(ctx: &AppContext) -> Result<PipelineState, String> {
|
||||
|
||||
/// Build a map from story_id → AgentAssignment for all pending/running agents.
|
||||
fn build_active_agent_map(ctx: &AppContext) -> HashMap<String, AgentAssignment> {
|
||||
let agents = match ctx.services.agents.list_agents() {
|
||||
Ok(a) => a,
|
||||
Err(_) => return HashMap::new(),
|
||||
};
|
||||
let agents = ctx.services.agents.list_agents_nonblocking();
|
||||
|
||||
let config_opt = ctx
|
||||
.state
|
||||
|
||||
Reference in New Issue
Block a user