/** * MCP Evidence Hooks — Pure A2A Sideband Artifacts * * Captures tool arguments and results from the Copilot SDK's * onPreToolUse / onPostToolUse session hooks, then emits structured * A2A TaskArtifactUpdateEvent with `trace.*` artifact keys. * * These "sideband artifacts" flow through the A2A protocol itself — * no Kafka, no custom transport. The orchestrator receives them alongside * the normal response artifacts and forwards trace.* artifacts to its * event emitter (Kafka) for storage and UI display. * * Artifact key conventions: * trace.mcp — MCP tool call (request + response) * trace.thought — Agent reasoning / chain of thought * trace.delegation — Sub-agent delegation (child task link) * * The parent agent's LLM only reads `response` artifacts. * Everything prefixed with `trace.` is observability-only data. */ import type { AgentEventEmitter } from "@a2a-wrapper/core"; export declare class McpEvidenceHooks { private emitter; /** Correlate start/end by session+toolName → { toolCallId, args, startTime }. */ private activeToolCalls; /** * Bind the emitter for the current execution. * Must be called before each prompt so trace events route correctly. */ setEmitter(emitter: AgentEventEmitter): void; /** Clear emitter after execution completes. */ clearEmitter(): void; /** * Returns Copilot SDK session hooks object. * * Attach to session creation: * client.createSession({ ..., hooks: mcpHooks.getHooks() }) */ getHooks(): Record; } //# sourceMappingURL=mcp-hooks.d.ts.map