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.

467 B
Raw Blame
import { getQueryClient } from '@/app/get-query-client'
import { consoleQuery } from '@/service/console'

export async function getAgentAccessAppId(agentId: string) {
  const agent = await getQueryClient().query(
    consoleQuery.agent.byAgentId.get.queryOptions({
      input: { params: { agent_id: agentId } },
      context: { silent: true },
      staleTime: Infinity,
      retry: false,
    }),
  )
  return agent.hidden_app_backed ? undefined : agent.app_id
}