a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -799,7 +799,7 @@ class ProductionIncidentCommander(A2AAgent[CommanderConfig, NoAuth]):
|
|||||||
await emit_phase(ctx, "diagnosis", evidence_count=len(evidence), status="artifacts_written", started=started)
|
await emit_phase(ctx, "diagnosis", evidence_count=len(evidence), status="artifacts_written", started=started)
|
||||||
return diagnosis.model_dump(mode="json")
|
return diagnosis.model_dump(mode="json")
|
||||||
|
|
||||||
@a2a.tool(description="Create an ordered remediation plan from diagnosis artifacts. This skill never executes changes.", timeout_seconds=300, cost_class="incident-planning", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("outputs/incidents/**",))
|
@a2a.tool(description="Create an ordered remediation plan from diagnosis artifacts. This skill never executes changes.", input_schema=PLAN_INPUT_SCHEMA, timeout_seconds=300, cost_class="incident-planning", grant_mode="read_write_overlay", grant_write_prefixes=("outputs/incidents/",), grant_allow_patterns=("outputs/incidents/**",))
|
||||||
async def plan_remediation(
|
async def plan_remediation(
|
||||||
self,
|
self,
|
||||||
ctx: RunContext[NoAuth],
|
ctx: RunContext[NoAuth],
|
||||||
|
|||||||
Reference in New Issue
Block a user