2026-06-01 23:29:11 +08:00
|
|
|
import { WorkflowTaskType } from '@shumai/db'
|
2026-10-19 15:35:08 +08:00
|
|
|
import { registerWorkflow } from '@shumai/workflow-core'
|
2026-07-23 11:02:54 +08:00
|
|
|
import { agentAutofillMedia } from './workflows/agent-autofill'
|
|
|
|
|
import { agentChat } from './workflows/agent-chat'
|
|
|
|
|
import { agentEmbeddingMedia } from './workflows/agent-embedding'
|
2026-06-01 23:29:11 +08:00
|
|
|
|
|
|
|
|
export function initAgentWorkflows() {
|
|
|
|
|
registerWorkflow(WorkflowTaskType.ai_embedding, agentEmbeddingMedia)
|
|
|
|
|
registerWorkflow(WorkflowTaskType.ai_metadata_autofill, agentAutofillMedia)
|
|
|
|
|
registerWorkflow(WorkflowTaskType.chat, agentChat)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export * from './activities/agent'
|
|
|
|
|
export {
|
2026-11-11 16:05:18 +08:00
|
|
|
deleteAssetEmbeddingsActivity,
|
2026-07-28 16:13:40 +08:00
|
|
|
extractAiMetadataActivity,
|
|
|
|
|
generateImageEmbeddingActivity,
|
|
|
|
|
generateTextEmbeddingActivity,
|
|
|
|
|
generateVideoChunkEmbeddingActivity,
|
2026-10-16 08:33:29 +08:00
|
|
|
saveAssetEmbeddingsActivity,
|
2026-11-11 16:05:18 +08:00
|
|
|
type ExistingAssetEmbeddingInfo,
|
2026-07-28 16:13:40 +08:00
|
|
|
type ExtractAiMetadataParams,
|
|
|
|
|
type GeneratedEmbedding,
|
|
|
|
|
type GenerateTextEmbeddingParams,
|
2026-06-01 23:29:11 +08:00
|
|
|
} from './activities/ai'
|
2026-08-30 15:25:13 +08:00
|
|
|
export * from './context/serialize-context'
|
2026-11-11 16:05:18 +08:00
|
|
|
export * from './operation-tools'
|
|
|
|
|
export * from './runtime'
|
|
|
|
|
export * from './tools/generate-image'
|
|
|
|
|
export * from './tools/generate-video'
|
2026-06-01 23:29:11 +08:00
|
|
|
export * from './workflows/agent-autofill'
|
|
|
|
|
export * from './workflows/agent-chat'
|
|
|
|
|
export * from './workflows/agent-embedding'
|