mirror of
https://github.com/katanemo/plano.git
synced 2026-07-14 16:22:12 +02:00
chore: drop unrelated changes, keep docs-only diff
Co-authored-by: Musa <musa@spherrrical.dev>
This commit is contained in:
parent
432c94e2db
commit
b642817f6e
5 changed files with 163 additions and 29 deletions
|
|
@ -562,15 +562,15 @@ def validate_and_render_schema():
|
|||
"Please provide model_providers either under listeners or at root level, not both. Currently we don't support multiple listeners with model_providers"
|
||||
)
|
||||
|
||||
# Validate input_filters IDs on listeners reference valid agent/filter IDs
|
||||
# Validate listener-level filter IDs reference valid agent/filter IDs.
|
||||
for listener in listeners:
|
||||
listener_input_filters = listener.get("input_filters", [])
|
||||
for fc_id in listener_input_filters:
|
||||
if fc_id not in agent_id_keys:
|
||||
raise Exception(
|
||||
f"Listener '{listener.get('name', 'unknown')}' references input_filters id '{fc_id}' "
|
||||
f"which is not defined in agents or filters. Available ids: {', '.join(sorted(agent_id_keys))}"
|
||||
)
|
||||
for filter_field in ("input_filters", "output_filters"):
|
||||
for fc_id in listener.get(filter_field, []):
|
||||
if fc_id not in agent_id_keys:
|
||||
raise Exception(
|
||||
f"Listener '{listener.get('name', 'unknown')}' references {filter_field} id '{fc_id}' "
|
||||
f"which is not defined in agents or filters. Available ids: {', '.join(sorted(agent_id_keys))}"
|
||||
)
|
||||
|
||||
# Validate model aliases if present
|
||||
if "model_aliases" in config_yaml:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue