pending changes

This commit is contained in:
Adil Hafeez 2025-12-15 18:17:15 -08:00
parent afffa11e91
commit 358fa856c4
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
21 changed files with 1195 additions and 403 deletions

View file

@ -101,8 +101,17 @@ def validate_and_render_schema():
# Process agents section and convert to endpoints
agents = config_yaml.get("agents", [])
for agent in agents:
agent_filters = config_yaml.get("agent_filters", [])
agents_combined = agents + agent_filters
agent_id_keys = set()
for agent in agents_combined:
agent_id = agent.get("id")
if agent_id in agent_id_keys:
raise Exception(
f"Duplicate agent id {agent_id}, please provide unique id for each agent"
)
agent_id_keys.add(agent_id)
agent_endpoint = agent.get("url")
if agent_id and agent_endpoint: