| 17 | */ |
| 18 | |
| 19 | export interface MockAgentConfig { |
| 20 | /** Name surfaced in AgentCard.name. */ |
| 21 | name: string |
| 22 | /** Given the incoming user text, returns the artifact text to echo back. */ |
| 23 | respond: (userText: string) => string |
| 24 | /** Skills to expose in the AgentCard. Defaults to one passthrough skill. */ |
| 25 | skills?: Array<{ id: string; description: string }> |
| 26 | /** DID to expose in capabilities.extensions (optional). */ |
| 27 | did?: string |
| 28 | /** When true, ``tasks/get`` always returns ``working`` — simulates a |
| 29 | * stuck peer that never reaches a terminal state. Used to exercise |
| 30 | * the gateway's abort + deadline paths. */ |
| 31 | stuck?: boolean |
| 32 | } |
| 33 | |
| 34 | export interface MockAgentHandle { |
| 35 | url: string |
nothing calls this directly
no outgoing calls
no test coverage detected