mirror of
https://github.com/hoshikawa2/agent_platform_oci.git
synced 2026-07-10 06:14:20 +00:00
Ajustes na documentação e remanejamento dos folders
This commit is contained in:
14
apps/agent_gateway/app/config/governance_loader.py
Normal file
14
apps/agent_gateway/app/config/governance_loader.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import yaml
|
||||
|
||||
|
||||
def load_gateway_governance_config(path: str | None = None) -> dict[str, Any]:
|
||||
config_path = Path(path or os.getenv("AGENT_GATEWAY_GOVERNANCE_CONFIG", "config/gateway_governance.yaml"))
|
||||
if not config_path.exists():
|
||||
return {}
|
||||
return yaml.safe_load(config_path.read_text(encoding="utf-8")) or {}
|
||||
Reference in New Issue
Block a user