fciannella commited on
Commit
18a808f
·
1 Parent(s): 96a6810

No healthcare agent

Browse files
examples/voice_agent_webrtc_langgraph/pipeline.py CHANGED
@@ -269,6 +269,9 @@ async def list_assistants(request: Request):
269
  except Exception as exc: # noqa: BLE001
270
  logger.error(f"Failed to read local agents/langgraph.json: {exc}")
271
 
 
 
 
272
  return enriched
273
 
274
  async def run_bot(webrtc_connection, ws: WebSocket, assistant_override: str | None = None):
 
269
  except Exception as exc: # noqa: BLE001
270
  logger.error(f"Failed to read local agents/langgraph.json: {exc}")
271
 
272
+ # Filter out healthcare-agent from the list
273
+ enriched = [agent for agent in enriched if agent.get("assistant_id") != "healthcare-agent" and agent.get("graph_id") != "healthcare-agent"]
274
+
275
  return enriched
276
 
277
  async def run_bot(webrtc_connection, ws: WebSocket, assistant_override: str | None = None):