🤯 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 { channelDocUrl } from '@lobechat/const';
import { PLATFORM_UNSUPPORTED_MESSAGE_APIS } from '../messageCapabilities';
import type { PlatformDefinition } from '../types';
import { DingTalkClientFactory } from './client';
import { DEFAULT_DINGTALK_CONNECTION_MODE } from './const';
import { schema } from './schema';
export const dingtalk: PlatformDefinition = {
id: 'dingtalk',
name: 'DingTalk',
connectionMode: DEFAULT_DINGTALK_CONNECTION_MODE,
description: 'Connect a DingTalk robot',
// Stream mode is hosted only by the Node message gateway (protocol-spec §11.4).
nodeMessageGatewayOnly: true,
documentation: {
portalUrl: 'https://open-dev.dingtalk.com/',
setupGuideUrl: channelDocUrl('dingtalk'),
},
schema,
// Replies go out as `sampleMarkdown` whenever they contain markdown.
supportsMarkdown: true,
// Robot messages cannot be edited; step progress is skipped and only the
// final reply is sent (streaming would need AI cards).
supportsMessageEdit: false,
unsupportedMessageApis: PLATFORM_UNSUPPORTED_MESSAGE_APIS.dingtalk,
clientFactory: new DingTalkClientFactory(),
};