🤯 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
import type {
AgentInitErrorPayload,
ChatCompletionErrorPayload,
CreateImageErrorPayload,
CreateVideoErrorPayload,
} from '../types';
import type { ILobeAgentRuntimeErrorType } from '../types/error';
export const AgentRuntimeError = {
chat: (error: ChatCompletionErrorPayload): ChatCompletionErrorPayload => error,
createError: (
errorType: ILobeAgentRuntimeErrorType | string | number,
error?: any,
): AgentInitErrorPayload => ({ error, errorType }),
createImage: (error: CreateImageErrorPayload): CreateImageErrorPayload => error,
createVideo: (error: CreateVideoErrorPayload): CreateVideoErrorPayload => error,
};