a2a-source-edit: write agent.py
This commit is contained in:
5
agent.py
5
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)
|
||||
|
||||
Reference in New Issue
Block a user