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.

573 B
Raw Blame
import type { WorkflowRunNodeExecutionResponse } from '@dify/contracts/api/console/apps/types.gen'

export function isBoundAgentV2Execution(
  execution: Pick<WorkflowRunNodeExecutionResponse, 'node_type' | 'process_data'>,
): boolean {
  const processData = execution.process_data
  return (
    execution.node_type === 'agent' &&
    typeof processData === 'object' &&
    processData !== null &&
    'workflow_agent_binding_id' in processData &&
    typeof processData.workflow_agent_binding_id === 'string' &&
    processData.workflow_agent_binding_id.length > 0
  )
}