Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

570 B
Raw Blame
import type { ToolProviderApiEntityResponse } from '@dify/contracts/api/console/workspaces/types.gen'
import { zToolProviderApiEntityResponse } from '@dify/contracts/api/console/workspaces/zod.gen'

export const createToolProviderFixture = (overrides: Partial<ToolProviderApiEntityResponse> = {}) =>
  zToolProviderApiEntityResponse.parse({
    id: 'provider-1',
    name: 'provider',
    type: 'builtin',
    author: 'Dify',
    label: { en_US: 'Provider' },
    description: { en_US: 'Tool provider' },
    icon: '/provider.svg',
    tools: [],
    ...overrides,
  })