> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取智能体图

> 返回包含 dotSrc 的对象；dark_mode 默认 false。无法构建图时返回空对象

此接口由所核验的 SDK/ADK 版本提供，仅用于受信任的开发和调试。路径随安装的 ADK 版本变化，不应作为公共业务入口



## OpenAPI

````yaml productions/api-reference/openapi/zh/harness-runtime.json GET /dev/apps/{app_name}/graph
openapi: 3.1.0
info:
  title: Harness Runtime
  version: agentkit-cli 0.54.0 / SDK 0.8.0 / ADK 2.2.0
  description: >-
    AgentKit CLI 0.54.0 部署的 Harness Runtime，基于 VeADK 1.0.8、AgentKit SDK 0.8.0 与
    Google ADK 2.2.0 核验；定时任务另需启用配置
servers:
  - url: http://localhost:8000
    description: 本地服务
security:
  - {}
  - RuntimeBearer: []
tags:
  - name: 服务与应用
  - name: 会话
  - name: 智能体运行
  - name: 制品
  - name: 记忆
  - name: 评测 · 开发服务
  - name: 调试 · 开发服务
  - name: 兼容接口
  - name: Harness 定时任务
paths:
  /dev/apps/{app_name}/graph:
    get:
      tags:
        - 调试 · 开发服务
      summary: 获取智能体图
      description: |-
        返回包含 dotSrc 的对象；dark_mode 默认 false。无法构建图时返回空对象

        此接口由所核验的 SDK/ADK 版本提供，仅用于受信任的开发和调试。路径随安装的 ADK 版本变化，不应作为公共业务入口
      operationId: harnessRuntimeGetAgentGraph
      parameters:
        - name: app_name
          in: path
          required: true
          schema:
            type: string
            title: App Name
          description: 应用名称，CLI 部署版为 harness_agent
          example: harness_agent
        - name: dark_mode
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Dark Mode
          description: 是否使用深色图背景，默认 false
          example: false
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/GetEventGraphResult'
                  - additionalProperties: true
                    type: object
                title: Response Get App Graph Dot Dev Apps  App Name  Graph Get
        '422':
          description: 请求参数验证失败
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetEventGraphResult:
      properties:
        dotSrc:
          type: string
          title: Dotsrc
          description: Graphviz DOT 格式的图定义
      type: object
      required:
        - dotSrc
      title: GetEventGraphResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
          description: 错误详情
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
          description: 出错字段的位置
        msg:
          type: string
          title: Message
          description: 验证错误说明
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    RuntimeBearer:
      type: http
      scheme: bearer
      description: 本地未配置网关时可不提供；云部署使用 Runtime API Key 或部署要求的用户池 JWT，不能使用模型 API Key

````