function isAgentError(error): error is AgentError;
Defined in: errors.ts:279
Type guard to check if an error is an AgentError
error
unknown
error is AgentError