a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -726,7 +726,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]):
|
|||||||
ConsumerSetupField.secret("GITEA_TOKEN", label="Gitea token", description="Optional read-only repository token.", required=False),
|
ConsumerSetupField.secret("GITEA_TOKEN", label="Gitea token", description="Optional read-only repository token.", required=False),
|
||||||
)
|
)
|
||||||
|
|
||||||
@a2a.tool(description="Diagnose a production incident, collect bounded evidence, rank hypotheses, and write diagnosis artifacts", timeout_seconds=900, cost_class="incident-diagnostic", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("**",), grant_deny_patterns=("**/.env", "**/secrets/**", "**/*kubeconfig*"))
|
@a2a.tool(description="Diagnose a production incident, collect bounded evidence, rank hypotheses, and write diagnosis artifacts", input_schema=DIAGNOSE_INPUT_SCHEMA, timeout_seconds=900, cost_class="incident-diagnostic", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("**",), grant_deny_patterns=("**/.env", "**/secrets/**", "**/*kubeconfig*"))
|
||||||
async def diagnose_incident(
|
async def diagnose_incident(
|
||||||
self,
|
self,
|
||||||
ctx: RunContext[NoAuth],
|
ctx: RunContext[NoAuth],
|
||||||
|
|||||||
Reference in New Issue
Block a user