{"version":3,"file":"AIAgentError.mjs","names":[],"sources":["../../../../../../src/plugins/AIComponents/Conversation/controller/AIAgentError.ts"],"sourcesContent":["/**\n * What an `AIAgentError` says when the agent said nothing of its own. To show your own copy, or\n * a translation, check for an `AIAgentError` without an `agentMessage`.\n */\nexport const AI_AGENT_ERROR_MESSAGE = \"The agent couldn't answer. Try again.\";\n\n/**\n * The agent couldn't answer: it said so, with what it said as `agentMessage`, or it didn't start\n * its reply in time.\n */\nexport class AIAgentError extends Error {\n  /** What the agent said about it, if anything. */\n  readonly agentMessage?: string;\n\n  constructor(agentMessage?: string) {\n    super(agentMessage || AI_AGENT_ERROR_MESSAGE);\n    this.name = 'AIAgentError';\n    this.agentMessage = agentMessage || undefined;\n  }\n}\n"],"mappings":";;;;;AAIA,IAAa,yBAAyB;;;;;AAMtC,IAAa,eAAb,cAAkC,MAAM;;CAEtC;CAEA,YAAY,cAAuB;EACjC,MAAM,gBAAA,uCAAsC;EAC5C,KAAK,OAAO;EACZ,KAAK,eAAe,gBAAgB,KAAA;CACtC;AACF"}