From 826b57b6c1f7232771150f1dc131868db1c7a1cf Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 13 Jul 2026 11:07:50 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 2f399fe..ddb0421 100644 --- a/agent.py +++ b/agent.py @@ -31,6 +31,9 @@ WRITE_INDICATORS = ("kubectl apply", "kubectl delete", "kubectl patch", "kubectl class StrictModel(BaseModel): model_config = ConfigDict(extra="forbid") + def __getitem__(self, key: str) -> Any: + return getattr(self, key) + class Severity(str, Enum): CRITICAL="critical"; HIGH="high"; MEDIUM="medium"; LOW="low"; INFO="info" class Confidence(str, Enum): @@ -125,7 +128,7 @@ class AgentComplianceAuditorConfig(StrictModel): default_allowed_namespaces: list[str] = Field(default_factory=list, max_length=50) class AgentComplianceAuditor(A2AAgent[AgentComplianceAuditorConfig, NoAuth]): - name="agent-compliance-auditor"; description="Read-only compliance auditor for deployed A2A agents and repositories."; version="0.1.0" + name="agent-compliance-auditor"; description="Read-only compliance auditor for deployed A2A agents and repositories."; version="0.1.1" config_model=AgentComplianceAuditorConfig; auth_model=NoAuth pricing=Pricing(price_per_call_usd=0.0, caller_pays_llm=False, notes="Deterministic read-only auditing; no LLM calls and no production mutations.") resources=Resources(cpu="500m", memory="512Mi", max_runtime_seconds=900)