🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
export type ModelCompletionFailureReason =
'empty_completion' | 'provider_error' | 'refusal' | 'stream_error';
export interface ModelCompletionFailureRuntimeEvidence {
provider?: unknown;
route?: unknown;
}
export interface RecordModelCompletionFailureParams {
attempt: number;
maxAttempts: number;
model: string;
operationId: string;
operationLogId: string;
provider: string;
reason: ModelCompletionFailureReason;
/**
* The model payload only. Provider credentials and transport headers are
* deliberately not accepted by this hook.
*/
request: unknown;
/** Full normalized completion output and callback evidence. */
response: unknown;
/** Provider-boundary and route evidence captured for this exact call. */
runtime?: ModelCompletionFailureRuntimeEvidence;
stepIndex: number;
topicId?: string;
trigger?: unknown;
userId?: string;
workspaceId?: string;
}
export const recordModelCompletionFailure = async (
_params: RecordModelCompletionFailureParams,
): Promise<void> => {};