22 lines
767 B
Python
22 lines
767 B
Python
from typing import List
|
|
|
|
# Scopes matrix according to prompt.md
|
|
# agent -> list of allowed scopes
|
|
AGENT_SCOPES = {
|
|
"CLAUDE": ["infra", "llm", "nyora", "perso", "tt"],
|
|
"HERMES_TT": ["infra", "llm", "tt"],
|
|
"HERMES_NYORA": ["infra", "llm", "nyora"],
|
|
"HERMES_PERSO": ["infra", "llm", "nyora", "perso"],
|
|
"GEMINI": ["infra", "llm", "nyora"],
|
|
"NABIL": ["infra", "llm", "nyora", "perso", "tt"] # Assuming Nabil has access to all
|
|
}
|
|
|
|
ALL_SCOPES = ["infra", "llm", "nyora", "perso", "tt"]
|
|
|
|
def has_scope_access(agent_name: str, scope: str) -> bool:
|
|
allowed_scopes = AGENT_SCOPES.get(agent_name.upper(), [])
|
|
return scope in allowed_scopes
|
|
|
|
def get_allowed_scopes(agent_name: str) -> List[str]:
|
|
return AGENT_SCOPES.get(agent_name.upper(), [])
|