Public declaration syntax from forge-ts/packages/forge-agent/src/error.ts Original source SHA-256: b9f015e7e6f75d48dfd49027470d71711ecd33fdc7e8ae512fa755a349e0d2fc Function bodies and constant values are omitted. This is not the complete implementation. Source line 17 export const ForgeAgentErrorCode /* type inferred in source */; Source line 39 export type ForgeAgentErrorCodeType = (typeof ForgeAgentErrorCode)[keyof typeof ForgeAgentErrorCode]; Source line 59 export class ForgeAgentError extends Error { public readonly code: ForgeAgentErrorCodeType; static maxIterationsExceeded( maxIterations: number, lastToolNames: readonly string[] ): ForgeAgentError; static toolNotFound(toolName: string, available: readonly string[]): ForgeAgentError; static toolExecutionFailed(toolName: string, reason: string): ForgeAgentError; static modelError(reason: string): ForgeAgentError; static workflowFailed( workflowId: string, stepIndex: number, reason: string ): ForgeAgentError; static delegationFailed(parentDid: string, reason: string): ForgeAgentError; static invalidState( currentState: string, requiredState: string, operation: string ): ForgeAgentError; static channelError(reason: string): ForgeAgentError; static core(cause: string): ForgeAgentError; isMaxIterationsExceeded(): boolean; isToolNotFound(): boolean; isWorkflowFailed(): boolean; isDelegationFailed(): boolean; }