feat: add A2A agent integration control plane
All checks were successful
CI and Production Smoke / smoke (push) Successful in 10s

This commit is contained in:
OG T
2026-06-11 13:30:22 +08:00
parent 4835d43426
commit 0601df8bd9
17 changed files with 774 additions and 44 deletions

View File

@@ -499,6 +499,7 @@ export const QueryAgentMemoryResponseSchema = z.object({
// ─────────────────────────────────────────────
export const NegotiateBountyRequestSchema = z.object({
task_id: UUIDSchema,
agent_id: z.string().min(1, "必須提供 agent_id 進行白名單驗證"),
requested_amount: MoneyAmountSchema,
reasoning: z.string().min(10, "Reasoning is required for negotiation"),
});

View File

@@ -117,7 +117,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
},
{
name: MCPToolName.NEGOTIATE_BOUNTY,
description: "[A2A Economy] Negotiate a higher bounty payout for an open task. Requests within a 10% margin are automatically approved by the platform.",
description: "[A2A Economy] Request a higher bounty payout for an open task. Production defaults to human review; tightly capped auto-approval requires platform configuration.",
inputSchema: toJsonSchema(NegotiateBountyRequestSchema),
},
{