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.

612 B
Raw Blame
import { describe, expect, it } from 'vite-plus/test'
import { sandbox as agentSandbox } from './generated/api/console/agent/orpc.gen.ts'
import { sandbox as appSandbox } from './generated/api/console/apps/orpc.gen.ts'

describe('generated sandbox contracts', () => {
  it.each([
    ['Agent sandbox', agentSandbox],
    ['App sandbox', appSandbox],
  ])('exposes the %s file operations', (_, sandbox) => {
    expect(sandbox.files.get).toBeDefined()
    expect(sandbox.files.read.get).toBeDefined()
    expect(sandbox.files.download.post).toBeDefined()
    expect('upload' in sandbox.files).toBe(false)
  })
})