// Package swagger Code generated by swaggo/swag. DO NOT EDIT
package swagger

import "github.com/swaggo/swag"

const docTemplate = `{
    "schemes": {{ marshal .Schemes }},
    "swagger": "2.0",
    "info": {
        "description": "{{escape .Description}}",
        "title": "{{.Title}}",
        "termsOfService": "http://swagger.io/terms/",
        "contact": {
            "name": "API Support",
            "url": "http://www.swagger.io/support",
            "email": "support@swagger.io"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
        },
        "version": "{{.Version}}"
    },
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/v1/api/chat/completion": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "APIChat",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话",
                    "对话-internal"
                ],
                "summary": "APIChat",
                "parameters": [
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/api/doc": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取Agent Api文档",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话"
                ],
                "summary": "获取Agent Api文档",
                "parameters": [
                    {
                        "type": "string",
                        "description": "app_key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/chat/completion": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "与 Agent 进行对话交互，支持流式响应",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话",
                    "对话-internal"
                ],
                "summary": "对话",
                "parameters": [
                    {
                        "type": "string",
                        "description": "应用 Key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "对话请求",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/swagger.ChatReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/swagger.ChatResp"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/chat/resume": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "恢复之前的对话会话",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话"
                ],
                "summary": "对话恢复",
                "parameters": [
                    {
                        "type": "string",
                        "description": "应用 Key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "恢复请求",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/swagger.ResumeReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/chat/termination": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "终止对话",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话"
                ],
                "summary": "终止对话",
                "parameters": [
                    {
                        "type": "string",
                        "description": "app_key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/conversation": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取指定应用的对话列表，支持分页",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话管理"
                ],
                "summary": "获取对话列表",
                "parameters": [
                    {
                        "type": "string",
                        "description": "应用 Key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码，默认1",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 10,
                        "description": "每页数量，默认10",
                        "name": "size",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "创建一个新的会话会话",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话管理"
                ],
                "summary": "初始化对话",
                "parameters": [
                    {
                        "type": "string",
                        "description": "应用 Key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "初始化请求",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/conversationreq.InitReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "删除所有对话",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话管理"
                ],
                "summary": "删除所有对话",
                "parameters": [
                    {
                        "type": "string",
                        "description": "app_key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "所有对话删除成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/conversation/{id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "根据会话 ID 获取会话详细信息",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话管理"
                ],
                "summary": "获取对话详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "应用 Key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "会话 ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "404": {
                        "description": "会话不存在",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "编辑对话(修改标题)",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话管理"
                ],
                "summary": "编辑对话(修改标题)",
                "parameters": [
                    {
                        "type": "string",
                        "description": "app_key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "删除对话",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话管理"
                ],
                "summary": "删除对话",
                "parameters": [
                    {
                        "type": "string",
                        "description": "app_key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "删除成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "对话不存在",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/conversation/{id}/mark_read": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "标记对话已读",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话管理"
                ],
                "summary": "标记对话已读",
                "parameters": [
                    {
                        "type": "string",
                        "description": "app_key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v1/app/{app_key}/debug/completion": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "调试",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话"
                ],
                "summary": "调试",
                "parameters": [
                    {
                        "type": "string",
                        "description": "app_key",
                        "name": "app_key",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v1/conversation/session/{conversation_id}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "管理指定的对话会话状态",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "对话session管理"
                ],
                "summary": "管理对话session",
                "parameters": [
                    {
                        "type": "string",
                        "description": "会话 ID",
                        "name": "conversation_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "管理请求",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/sessionreq.ManageReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v3/agent": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "创建一个新的 Agent 配置",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent",
                    "agent-internal"
                ],
                "summary": "创建agent",
                "parameters": [
                    {
                        "description": "Agent 配置",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/swagger.AgentConfigCreateReq"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/swagger.AgentConfigCreateRes"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v3/agent-inout/export": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 批量导出指定的data agent数据 - 支持导出多个agent - 返回JSON格式的导出文件 - 只能导出\\\"我的个人空间\\\"中的agent - 如果提供的agent_id有不存在的，会返回404错误",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "其他"
                ],
                "summary": "导出数据",
                "parameters": [
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "导出成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-inout/import": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 从导出的JSON文件中导入data agent数据 - 支持批量导入多个agent - agent标识（key）不可与已存在的重复 - 如果重复，需要先删除已存在的agent，再导入 - 重复时，会返回重复的agent列表（包括agent_id、agent_key和agent_name） - 只能导入到\\\"我的个人空间\\\"中",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "其他"
                ],
                "summary": "导入数据",
                "parameters": [
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "导入结果",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-market/agent/{agent_id}/version/{version}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 智能体详情 - 包含已发布和未发布",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "已发布",
                    "agent-internal"
                ],
                "summary": "智能体详情（已发布或未发布）",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "version",
                        "name": "version",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-permission/execute": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 检查某个agent是否有执行（使用）权限 - 此接口有` + "`" + `内部接口` + "`" + `和` + "`" + `外部接口` + "`" + `",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "权限",
                    "权限-internal"
                ],
                "summary": "检查某个agent是否有执行（使用）权限",
                "parameters": [
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-permission/management/user-status": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 获取用户拥有的管理权限状态 - 这里暂时不针对某个具体的资源实例，而是针对资源类型 - 管理权限和具体的资源实例无关",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "权限",
                    "权限-internal"
                ],
                "summary": "获取用户拥有的管理权限状态",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-self-config-fields": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 获取SELF_CONFIG字段结构定义 - SELF_CONFIG字段对应agent详情接口的config字段（减去了少量字段） - 用于前端动态展示SELF_CONFIG字段树（供用户选择字段）",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "获取SELF_CONFIG字段结构",
                "responses": {
                    "200": {
                        "description": "成功获取字段结构",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-tpl/{id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取agent模板详情",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "获取agent模板详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "编辑agent模板",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "编辑agent模板",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "删除agent模板",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "删除agent模板",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-tpl/{id}/copy": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "复制智能体模板",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "复制智能体模板",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "201": {
                        "description": "复制成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-tpl/{id}/publish": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "发布智能体模板",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "发布智能体模板",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "发布成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-tpl/{id}/publish-info": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取模板发布信息",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "获取模板发布信息",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "更新模板发布信息",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "更新模板发布信息",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "更新成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent-tpl/{id}/unpublish": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "通过发布 ID 取消已发布的智能体模板",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "模板"
                ],
                "summary": "取消发布智能体模板",
                "parameters": [
                    {
                        "type": "string",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "取消发布成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/ai-autogen": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 根据提供的提示词，AI自动生成内容",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "其他"
                ],
                "summary": "AI自动生成内容",
                "parameters": [
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/avatar/built-in": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取内置头像列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "其他"
                ],
                "summary": "获取内置头像列表",
                "responses": {
                    "200": {
                        "description": "获取成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/avatar/built-in/{avatar_id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取内置头像",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "其他-ignore"
                ],
                "summary": "获取内置头像",
                "parameters": [
                    {
                        "type": "string",
                        "description": "avatar_id",
                        "name": "avatar_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/by-key/{key}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取agent详情",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent-internal"
                ],
                "summary": "根据key获取agent详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "key",
                        "name": "key",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/dolphin-tpl/list": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取dolphin模板列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "其他"
                ],
                "summary": "获取dolphin模板列表",
                "parameters": [
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/react": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "创建一个新的 React 模式 Agent 配置。请求体与普通创建接口一致，但 config.mode 必须为 react。",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent",
                    "agent-internal"
                ],
                "summary": "创建react agent",
                "parameters": [
                    {
                        "description": "React Agent 配置",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/swagger.AgentConfigCreateReq"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/swagger.AgentConfigCreateRes"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v3/agent/temp-zone/file-ext-map": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取文件扩展名映射",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "其他"
                ],
                "summary": "获取文件扩展名映射",
                "responses": {
                    "200": {
                        "description": "获取成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "根据 Agent ID 获取 Agent 配置详细信息",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent",
                    "agent-internal"
                ],
                "summary": "获取agent详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Agent ID",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/swagger.AgentConfigDetailRes"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "编辑agent",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent",
                    "agent-internal"
                ],
                "summary": "编辑agent",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "schema": {
                            "$ref": "#/definitions/swagger.AgentConfigUpdateReq"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "删除agent",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent",
                    "agent-internal"
                ],
                "summary": "删除agent",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "请求成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}/copy": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "复制agent",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "复制agent",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "201": {
                        "description": "复制成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}/copy2tpl": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "复制agent为模板",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent",
                    "模板"
                ],
                "summary": "复制agent为模板",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "201": {
                        "description": "复制成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}/copy2tpl-and-publish": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "复制agent为模板并发布",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent",
                    "模板"
                ],
                "summary": "复制agent为模板并发布",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "操作成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}/publish": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "可以通过提交已有的 agent_id 发布智能体，或者提交 agent_config 创建并发布智能体",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发布相关",
                    "发布相关-internal"
                ],
                "summary": "发布智能体",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/releasereq.UpdatePublishInfoReq"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "发布成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}/publish-info": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "- 获取已发布智能体的发布信息 - 如果提供的agent_id不是已发布智能体，会返回404错误",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发布相关",
                    "发布相关-internal"
                ],
                "summary": "获取已发布智能体的发布信息",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "获取成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "更新发布信息",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发布相关"
                ],
                "summary": "更新发布信息",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/releasereq.UpdatePublishInfoReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "更新发布信息成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}/release-history": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取发布历史记录列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "已发布"
                ],
                "summary": "获取发布历史记录列表",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/agent/{agent_id}/unpublish": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "通过发布 ID 取消已发布的智能体",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发布相关"
                ],
                "summary": "取消发布智能体",
                "parameters": [
                    {
                        "type": "string",
                        "description": "agent_id",
                        "name": "agent_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "取消发布成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "404": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/category": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取智能体分类",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发布相关"
                ],
                "summary": "获取智能体分类",
                "responses": {
                    "200": {
                        "description": "获取成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/personal-space/agent-list": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "个人空间（开发）下Agent列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "个人空间（开发）"
                ],
                "summary": "个人空间（开发）下Agent列表",
                "parameters": [
                    {
                        "type": "string",
                        "description": "发布状态 - unpublished: | - 未发布（注意包括published_edited） - published: 已发布 - published_edited: 发布后有修改",
                        "name": "publish_status",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "- 分页marker（用于获取下一页数据） - base64编码的json字符串 - base64编码前的json格式： ` + "`" + `` + "`" + `` + "`" + ` { \\",
                        "name": "pagination_marker_str",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/personal-space/agent-tpl-list": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "个人空间（开发）下Agent模板列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "个人空间（开发）",
                    "模板"
                ],
                "summary": "个人空间（开发）下Agent模板列表",
                "parameters": [
                    {
                        "type": "string",
                        "description": "- 分页marker（用于获取下一页数据） - base64编码的json字符串 - base64编码前的json格式： ` + "`" + `` + "`" + `` + "`" + ` { \\",
                        "name": "pagination_marker_str",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/product": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取产品列表，支持分页",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "获取产品列表",
                "parameters": [
                    {
                        "type": "integer",
                        "default": 1,
                        "description": "页码，默认1",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "default": 10,
                        "description": "每页数量，默认10",
                        "name": "page_size",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/productresp.ListRes"
                            }
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "创建一个新的产品",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "创建产品",
                "parameters": [
                    {
                        "description": "产品信息",
                        "name": "product",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/productreq.CreateReq"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "创建成功",
                        "schema": {
                            "$ref": "#/definitions/productresp.CreateRes"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v3/product/{id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "根据产品 ID 获取产品详细信息",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "获取产品详情",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "产品 ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/productresp.DetailRes"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "更新产品信息",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "编辑产品",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "产品 ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "产品信息",
                        "name": "product",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/productreq.UpdateReq"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "根据产品 ID 删除产品",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "删除产品",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "产品 ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v3/published/agent": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取已发布的智能体列表，支持分页和筛选",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "已发布"
                ],
                "summary": "已发布智能体列表",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/pubedreq.PubedAgentListReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "400": {
                        "description": "请求参数错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "401": {
                        "description": "未授权",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "403": {
                        "description": "禁止访问",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    },
                    "500": {
                        "description": "服务器内部错误",
                        "schema": {
                            "$ref": "#/definitions/swagger.APIError"
                        }
                    }
                }
            }
        },
        "/v3/published/agent-info-list": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "已发布智能体信息列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "已发布"
                ],
                "summary": "已发布智能体信息列表",
                "parameters": [
                    {
                        "description": "请求体",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/published/agent-tpl": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "已发布模板列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "已发布",
                    "模板"
                ],
                "summary": "已发布模板列表",
                "parameters": [
                    {
                        "type": "string",
                        "description": "- 分页marker（用于获取下一页数据） - base64编码的json字符串 - base64编码前的json格式： ` + "`" + `` + "`" + `` + "`" + ` { \\",
                        "name": "pagination_marker_str",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/published/agent-tpl/{tpl_id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "已发布模板详情",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "已发布"
                ],
                "summary": "已发布模板详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "tpl_id",
                        "name": "tpl_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/recent-visit/agent": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取最近访问的智能体",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "最近访问"
                ],
                "summary": "获取最近访问的智能体",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/tool-result-process-strategy/category": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "获取结果处理策略分类列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "工具结果处理策略"
                ],
                "summary": "获取结果处理策略分类列表",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        },
        "/v3/tool-result-process-strategy/category/{category_id}/strategy": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "根据分类获取结果处理策略列表",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "工具结果处理策略"
                ],
                "summary": "根据分类获取结果处理策略列表",
                "parameters": [
                    {
                        "type": "string",
                        "description": "category_id",
                        "name": "category_id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "400": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "401": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "403": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    },
                    "500": {
                        "description": "失败",
                        "schema": {
                            "type": "object"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "agentconfigenum.ConfigTplVersionT": {
            "type": "string",
            "enum": [
                "v1"
            ],
            "x-enum-varnames": [
                "ConfigTplVersionV1"
            ]
        },
        "agentreq.SelectedFile": {
            "type": "object",
            "required": [
                "file_name"
            ],
            "properties": {
                "file_name": {
                    "description": "文件名",
                    "type": "string"
                }
            }
        },
        "agentresperr.RespError": {
            "type": "object",
            "properties": {
                "error": {},
                "type": {
                    "$ref": "#/definitions/agentresperr.RespErrorType"
                }
            }
        },
        "agentresperr.RespErrorType": {
            "type": "string",
            "enum": [
                "agent_factory",
                "agent_executor"
            ],
            "x-enum-comments": {
                "RespErrorTypeAgentExecutor": "来自agent-executor的错误",
                "RespErrorTypeAgentFactory": "来自agent-factory的错误"
            },
            "x-enum-descriptions": [
                "来自agent-factory的错误",
                "来自agent-executor的错误"
            ],
            "x-enum-varnames": [
                "RespErrorTypeAgentFactory",
                "RespErrorTypeAgentExecutor"
            ]
        },
        "cdaenum.AgentMode": {
            "type": "string",
            "enum": [
                "default",
                "dolphin",
                "react"
            ],
            "x-enum-varnames": [
                "AgentModeDefault",
                "AgentModeDolphin",
                "AgentModeReact"
            ]
        },
        "cdaenum.AvatarType": {
            "type": "integer",
            "enum": [
                1,
                2,
                3
            ],
            "x-enum-varnames": [
                "AvatarTypeBuiltIn",
                "AvatarTypeUserUploaded",
                "AvatarTypeAIGenerated"
            ]
        },
        "cdaenum.BuiltIn": {
            "type": "integer",
            "format": "int32",
            "enum": [
                0,
                1
            ],
            "x-enum-varnames": [
                "BuiltInNo",
                "BuiltInYes"
            ]
        },
        "cdaenum.ConversationMsgRole": {
            "type": "string",
            "enum": [
                "user",
                "assistant"
            ],
            "x-enum-varnames": [
                "MsgRoleUser",
                "MsgRoleAssistant"
            ]
        },
        "cdaenum.ConversationMsgStatus": {
            "type": "string",
            "enum": [
                "received",
                "processed",
                "processing",
                "succeded",
                "failed",
                "cancelled"
            ],
            "x-enum-varnames": [
                "MsgStatusReceived",
                "MsgStatusProcessed",
                "MsgStatusProcessing",
                "MsgStatusSucceded",
                "MsgStatusFailed",
                "MsgStatusCancelled"
            ]
        },
        "cdaenum.DocSourceFieldType": {
            "type": "string",
            "enum": [
                "folder",
                "file"
            ],
            "x-enum-varnames": [
                "DocSourceFieldTypeFolder",
                "DocSourceFieldTypeFile"
            ]
        },
        "cdaenum.DolphinMode": {
            "type": "integer",
            "enum": [
                0,
                1
            ],
            "x-enum-varnames": [
                "DolphinModeDisabled",
                "DolphinModeEnabled"
            ]
        },
        "cdaenum.DolphinTplKey": {
            "type": "string",
            "enum": [
                "memory_retrieve",
                "temp_file_process",
                "doc_retrieve",
                "graph_retrieve",
                "context_organize",
                "related_questions"
            ],
            "x-enum-varnames": [
                "DolphinTplKeyMemoryRetrieve",
                "DolphinTplKeyTempFileProcess",
                "DolphinTplKeyDocRetrieve",
                "DolphinTplKeyGraphRetrieve",
                "DolphinTplKeyContextOrganize",
                "DolphinTplKeyRelatedQuestions"
            ]
        },
        "cdaenum.HistoryStrategy": {
            "type": "string",
            "enum": [
                "none",
                "count",
                "time_window",
                "token"
            ],
            "x-enum-varnames": [
                "HistoryStrategyNone",
                "HistoryStrategyCount",
                "HistoryStrategyTimeWindow",
                "HistoryStrategyToken"
            ]
        },
        "cdaenum.InputFieldType": {
            "type": "string",
            "enum": [
                "string",
                "file",
                "object"
            ],
            "x-enum-varnames": [
                "InputFieldTypeString",
                "InputFieldTypeFile",
                "InputFieldTypeJSONObject"
            ]
        },
        "cdaenum.ModelType": {
            "type": "string",
            "enum": [
                "llm",
                "rlm"
            ],
            "x-enum-varnames": [
                "ModelTypeLlm",
                "ModelTypeRlm"
            ]
        },
        "cdaenum.OutputDefaultFormat": {
            "type": "string",
            "enum": [
                "json",
                "markdown"
            ],
            "x-enum-varnames": [
                "OutputDefaultFormatJson",
                "OutputDefaultFormatMarkdown"
            ]
        },
        "cdaenum.PublishToBe": {
            "type": "string",
            "enum": [
                "api_agent",
                "web_sdk_agent",
                "skill_agent",
                "data_flow_agent"
            ],
            "x-enum-varnames": [
                "PublishToBeAPIAgent",
                "PublishToBeWebSDKAgent",
                "PublishToBeSkillAgent",
                "PublishToBeDataFlowAgent"
            ]
        },
        "cdaenum.Status": {
            "type": "string",
            "enum": [
                "unpublished",
                "published"
            ],
            "x-enum-varnames": [
                "StatusUnpublished",
                "StatusPublished"
            ]
        },
        "cenum.YesNoInt8": {
            "type": "integer",
            "format": "int32",
            "enum": [
                1,
                0
            ],
            "x-enum-varnames": [
                "YesNoInt8Yes",
                "YesNoInt8No"
            ]
        },
        "chatopt.ChatOption": {
            "type": "object",
            "properties": {
                "enable_dependency_cache": {
                    "description": "是否需要使用缓存",
                    "type": "boolean"
                },
                "is_need_doc_retrival_post_process": {
                    "description": "是否需要文档检索后处理",
                    "type": "boolean"
                },
                "is_need_history": {
                    "description": "是否需要历史上下文",
                    "type": "boolean"
                },
                "is_need_progress": {
                    "description": "是否需要progress",
                    "type": "boolean"
                }
            }
        },
        "chatresenum.AnswerType": {
            "type": "string",
            "enum": [
                "prompt",
                "explore",
                "other",
                "explore",
                "prompt",
                "other"
            ],
            "x-enum-comments": {
                "AnswerTypeExplore": "explore",
                "AnswerTypeOther": "other（除了 prompt 和 explore以外的）",
                "AnswerTypePrompt": "prompt，格式如：{\"answer\":\"xxx\",\"think\":\"xxx\"}"
            },
            "x-enum-descriptions": [
                "explore",
                "prompt，格式如：{\"answer\":\"xxx\",\"think\":\"xxx\"}",
                "other（除了 prompt 和 explore以外的）"
            ],
            "x-enum-varnames": [
                "AnswerTypeExplore",
                "AnswerTypePrompt",
                "AnswerTypeOther"
            ]
        },
        "comvalobj.LLMMessage": {
            "type": "object",
            "properties": {
                "content": {
                    "type": "string"
                },
                "role": {
                    "type": "string"
                }
            }
        },
        "conversationmsgvo.Message": {
            "type": "object",
            "properties": {
                "agent_info": {
                    "$ref": "#/definitions/valueobject.AgentInfo"
                },
                "content": {},
                "content_type": {
                    "$ref": "#/definitions/chatresenum.AnswerType"
                },
                "conversation_id": {
                    "type": "string"
                },
                "ext": {
                    "description": "扩展字段",
                    "allOf": [
                        {
                            "$ref": "#/definitions/conversationmsgvo.MessageExt"
                        }
                    ]
                },
                "id": {
                    "type": "string"
                },
                "index": {
                    "type": "integer"
                },
                "reply_id": {
                    "type": "string"
                },
                "role": {
                    "$ref": "#/definitions/cdaenum.ConversationMsgRole"
                },
                "status": {
                    "$ref": "#/definitions/cdaenum.ConversationMsgStatus"
                }
            }
        },
        "conversationmsgvo.MessageExt": {
            "type": "object",
            "properties": {
                "agent_run_id": {
                    "description": "Agent 运行 ID",
                    "type": "string"
                },
                "error": {
                    "description": "错误信息",
                    "allOf": [
                        {
                            "$ref": "#/definitions/agentresperr.RespError"
                        }
                    ]
                },
                "interrupt_info": {
                    "description": "中断信息",
                    "allOf": [
                        {
                            "$ref": "#/definitions/v2agentexecutordto.ToolInterruptInfo"
                        }
                    ]
                },
                "related_queries": {
                    "description": "相关问题（query 列表）",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "total_time": {
                    "description": "总耗时（秒）",
                    "type": "number"
                },
                "total_tokens": {
                    "description": "总 token 数",
                    "type": "integer"
                },
                "ttft": {
                    "description": "首 token 时间（毫秒）",
                    "type": "integer"
                }
            }
        },
        "conversationreq.InitReq": {
            "type": "object",
            "properties": {
                "agent_id": {
                    "description": "agent id",
                    "type": "string"
                },
                "agent_version": {
                    "description": "agent version",
                    "type": "string"
                },
                "executor_version": {
                    "description": "executor version v1 或 v2 默认v2",
                    "type": "string"
                },
                "temparea_id": {
                    "description": "临时区域ID",
                    "type": "string"
                },
                "title": {
                    "description": "conversation 标题",
                    "type": "string"
                },
                "visitor_type": {
                    "description": "访客类型  user / app",
                    "type": "string"
                }
            }
        },
        "daconfvalobj.Augment": {
            "type": "object",
            "required": [
                "data_source",
                "enable"
            ],
            "properties": {
                "data_source": {
                    "description": "图谱数据源配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.AugmentDataSource"
                        }
                    ]
                },
                "enable": {
                    "description": "是否启用",
                    "type": "boolean"
                }
            }
        },
        "daconfvalobj.AugmentDataSource": {
            "type": "object",
            "properties": {
                "kg": {
                    "description": "图谱类型数据源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/daconfvalobj.KgSource"
                    }
                }
            }
        },
        "daconfvalobj.BuiltInCanEditFields": {
            "type": "object",
            "properties": {
                "avatar": {
                    "description": "头像",
                    "type": "boolean"
                },
                "data_source.doc": {
                    "description": "知识来源-文档",
                    "type": "boolean"
                },
                "data_source.kg": {
                    "description": "知识来源-业务知识网络",
                    "type": "boolean"
                },
                "input_config": {
                    "description": "输入配置",
                    "type": "boolean"
                },
                "memory": {
                    "description": "长期记忆配置",
                    "type": "boolean"
                },
                "model": {
                    "description": "KnowledgeSource     bool ` + "`" + `json:\"knowledge_source\"` + "`" + `      // 知识来源",
                    "type": "boolean"
                },
                "name": {
                    "description": "名字",
                    "type": "boolean"
                },
                "opening_remark_config": {
                    "description": "开场白配置",
                    "type": "boolean"
                },
                "preset_questions": {
                    "description": "预设问题列表",
                    "type": "boolean"
                },
                "profile": {
                    "description": "描述",
                    "type": "boolean"
                },
                "related_question": {
                    "description": "相关问题配置",
                    "type": "boolean"
                },
                "skills": {
                    "description": "技能",
                    "type": "boolean"
                },
                "skills.tools.tool_input": {
                    "description": "skills.tools.tool_input",
                    "type": "boolean"
                },
                "system_prompt": {
                    "description": "角色指令，包括dolpin模式和非dolpin模式",
                    "type": "boolean"
                }
            }
        },
        "daconfvalobj.ConfigMetadata": {
            "type": "object",
            "properties": {
                "config_last_set_timestamp": {
                    "description": "配置时间戳(nanoseconds)",
                    "type": "integer"
                },
                "config_tpl_version": {
                    "description": "配置版本",
                    "allOf": [
                        {
                            "$ref": "#/definitions/agentconfigenum.ConfigTplVersionT"
                        }
                    ]
                }
            }
        },
        "daconfvalobj.ConversationHistoryConfig": {
            "type": "object",
            "properties": {
                "count_params": {
                    "description": "count策略参数",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.CountParams"
                        }
                    ]
                },
                "strategy": {
                    "description": "会话历史策略：none(无历史), count(按数量), time_window(按时间窗口-预留), token(按token-预留)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.HistoryStrategy"
                        }
                    ]
                },
                "time_window_params": {
                    "description": "time_window策略参数（预留）",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.TimeWindowParams"
                        }
                    ]
                },
                "token_limit_params": {
                    "description": "token_limit策略参数（预留）",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.TokenLimitParams"
                        }
                    ]
                }
            }
        },
        "daconfvalobj.CountParams": {
            "type": "object",
            "properties": {
                "count_limit": {
                    "description": "消息数量限制，默认10条，范围1-1000",
                    "type": "integer"
                }
            }
        },
        "daconfvalobj.DolphinTpl": {
            "type": "object",
            "required": [
                "key",
                "value"
            ],
            "properties": {
                "edited": {
                    "description": "是否编辑过",
                    "type": "boolean"
                },
                "enabled": {
                    "description": "是否启用",
                    "type": "boolean"
                },
                "key": {
                    "description": "dolphin块的key",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.DolphinTplKey"
                        }
                    ]
                },
                "name": {
                    "description": "dolphin块的名称",
                    "type": "string"
                },
                "value": {
                    "description": "dolphin块的dolphin语句",
                    "type": "string"
                }
            }
        },
        "daconfvalobj.Field": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "desc": {
                    "description": "参数描述",
                    "type": "string"
                },
                "name": {
                    "description": "参数（字段）名",
                    "type": "string"
                },
                "type": {
                    "description": "类型：string-字符串, file-文件, object-json对象",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.InputFieldType"
                        }
                    ]
                }
            }
        },
        "daconfvalobj.Input": {
            "type": "object",
            "required": [
                "fields"
            ],
            "properties": {
                "augment": {
                    "description": "query增强",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.Augment"
                        }
                    ]
                },
                "fields": {
                    "description": "参数列表",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/daconfvalobj.Field"
                    }
                },
                "rewrite": {
                    "description": "query重写",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.Rewrite"
                        }
                    ]
                }
            }
        },
        "daconfvalobj.KgSource": {
            "type": "object",
            "required": [
                "fields",
                "kg_id"
            ],
            "properties": {
                "field_properties": {
                    "description": "实体属性列表",
                    "type": "object",
                    "additionalProperties": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "fields": {
                    "description": "实体类范围",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "kg_id": {
                    "description": "图谱ID",
                    "type": "string"
                },
                "output_fields": {
                    "description": "结果范围，非必填",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "daconfvalobj.LlmConfig": {
            "type": "object",
            "required": [
                "max_tokens",
                "name"
            ],
            "properties": {
                "frequency_penalty": {
                    "description": "频率惩罚（-2~2）",
                    "type": "number",
                    "maximum": 2,
                    "minimum": -2
                },
                "id": {
                    "description": "模型ID，预留参数，目前无用",
                    "type": "string"
                },
                "max_tokens": {
                    "description": "最大token数",
                    "type": "integer",
                    "minimum": 0
                },
                "model_type": {
                    "description": "模型类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.ModelType"
                        }
                    ]
                },
                "name": {
                    "description": "模型名",
                    "type": "string"
                },
                "presence_penalty": {
                    "description": "存在惩罚（-2~2）",
                    "type": "number",
                    "maximum": 2,
                    "minimum": -2
                },
                "temperature": {
                    "description": "温度参数",
                    "type": "number",
                    "maximum": 2,
                    "minimum": 0
                },
                "top_k": {
                    "description": "Top-k参数",
                    "type": "integer",
                    "minimum": 0
                },
                "top_p": {
                    "description": "Top-p参数",
                    "type": "number",
                    "maximum": 1,
                    "minimum": 0
                }
            }
        },
        "daconfvalobj.LlmItem": {
            "type": "object",
            "required": [
                "llm_config"
            ],
            "properties": {
                "is_default": {
                    "description": "是否默认（从选择的所有llm中选择一个为默认llm）",
                    "type": "boolean"
                },
                "llm_config": {
                    "description": "其他LLM属性",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.LlmConfig"
                        }
                    ]
                }
            }
        },
        "daconfvalobj.MemoryCfg": {
            "type": "object",
            "properties": {
                "is_enabled": {
                    "description": "是否启用",
                    "type": "boolean"
                }
            }
        },
        "daconfvalobj.OpeningRemarkConfig": {
            "type": "object",
            "properties": {
                "dynamic_opening_remark_prompt": {
                    "description": "动态开场白提示语",
                    "type": "string"
                },
                "fixed_opening_remark": {
                    "description": "固定开场白",
                    "type": "string"
                },
                "type": {
                    "description": "开场白类型（固定/动态）",
                    "type": "string"
                }
            }
        },
        "daconfvalobj.Output": {
            "type": "object",
            "properties": {
                "default_format": {
                    "description": "默认输出格式",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.OutputDefaultFormat"
                        }
                    ]
                },
                "variables": {
                    "description": "变量名",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.VariablesS"
                        }
                    ]
                }
            }
        },
        "daconfvalobj.PlanMode": {
            "type": "object",
            "properties": {
                "is_enabled": {
                    "description": "是否启用",
                    "type": "boolean"
                }
            }
        },
        "daconfvalobj.PresetQuestion": {
            "type": "object",
            "properties": {
                "question": {
                    "description": "问题内容",
                    "type": "string"
                }
            }
        },
        "daconfvalobj.ReactConfig": {
            "type": "object",
            "properties": {
                "disable_history_in_a_conversation": {
                    "description": "是否禁用单次会话的历史记录",
                    "type": "boolean"
                },
                "disable_llm_cache": {
                    "description": "是否禁用LLM缓存",
                    "type": "boolean"
                }
            }
        },
        "daconfvalobj.RelatedQuestion": {
            "type": "object",
            "properties": {
                "is_enabled": {
                    "description": "是否启用",
                    "type": "boolean"
                }
            }
        },
        "daconfvalobj.Rewrite": {
            "type": "object",
            "required": [
                "enable",
                "llm_config"
            ],
            "properties": {
                "enable": {
                    "description": "是否启用",
                    "type": "boolean"
                },
                "llm_config": {
                    "description": "LLM配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.LlmConfig"
                        }
                    ]
                }
            }
        },
        "daconfvalobj.TimeWindowParams": {
            "type": "object"
        },
        "daconfvalobj.TokenLimitParams": {
            "type": "object"
        },
        "daconfvalobj.VariablesS": {
            "type": "object",
            "properties": {
                "answer_var": {
                    "description": "包含最终回答的变量名",
                    "type": "string"
                },
                "doc_retrieval_var": {
                    "description": "包含文档检索结果的变量名",
                    "type": "string"
                },
                "graph_retrieval_var": {
                    "description": "包含图谱检索结果的变量名",
                    "type": "string"
                },
                "middle_output_vars": {
                    "description": "中间输出变量数组",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "other_vars": {
                    "description": "其他变量数组",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "related_questions_var": {
                    "description": "包含相关问题的变量名",
                    "type": "string"
                }
            }
        },
        "daenum.PublishToWhere": {
            "type": "string",
            "enum": [
                "custom_space",
                "square"
            ],
            "x-enum-varnames": [
                "PublishToWhereCustomSpace",
                "PublishToWhereSquare"
            ]
        },
        "datasourcevalobj.DocAdvancedConfig": {
            "type": "object",
            "required": [
                "document_threshold",
                "documents_num",
                "max_slice_per_cite",
                "rerank_topk",
                "retrieval_max_length",
                "retrieval_slices_num",
                "slice_head_num",
                "slice_tail_num"
            ],
            "properties": {
                "document_threshold": {
                    "description": "文档ranker bge相似度阈值：-5.5",
                    "type": "number"
                },
                "documents_num": {
                    "description": "来源文档数量：8",
                    "type": "integer"
                },
                "max_slice_per_cite": {
                    "description": "每篇文档最大保留切片数：16",
                    "type": "integer"
                },
                "rerank_topk": {
                    "description": "CosSimWeight             float64 ` + "`" + `json:\"cos_sim_weight\"` + "`" + `\nBM25Weight               float64 ` + "`" + `json:\"bm_25_weight\"` + "`" + `\nRerankerMethod           string  ` + "`" + `json:\"reranker_method\"` + "`" + `\nAccRankingScoreThreshold float64 ` + "`" + `json:\"acc_ranking_score_threshold\"` + "`" + `\nChooseMethod             string  ` + "`" + `json:\"choose_method\"` + "`" + `",
                    "type": "integer"
                },
                "retrieval_max_length": {
                    "description": "召回文档最大长度",
                    "type": "integer"
                },
                "retrieval_slices_num": {
                    "description": "召回切片数：150",
                    "type": "integer"
                },
                "slice_head_num": {
                    "description": "获取上文切片数：2",
                    "type": "integer"
                },
                "slice_tail_num": {
                    "description": "获取下文切片数：0",
                    "type": "integer"
                }
            }
        },
        "datasourcevalobj.DocSource": {
            "type": "object",
            "required": [
                "ds_id",
                "fields"
            ],
            "properties": {
                "datasets": {
                    "description": "数据集列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "ds_id": {
                    "description": "数据源ID",
                    "type": "string"
                },
                "fields": {
                    "description": "数据源范围列表",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/datasourcevalobj.DocSourceField"
                    }
                }
            }
        },
        "datasourcevalobj.DocSourceField": {
            "type": "object",
            "required": [
                "name",
                "path",
                "source",
                "type"
            ],
            "properties": {
                "name": {
                    "description": "字段名称",
                    "type": "string"
                },
                "path": {
                    "description": "字段路径",
                    "type": "string"
                },
                "source": {
                    "description": "字段来源",
                    "type": "string"
                },
                "type": {
                    "description": "字段类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.DocSourceFieldType"
                        }
                    ]
                }
            }
        },
        "datasourcevalobj.KGAdvancedConfig": {
            "type": "object",
            "required": [
                "graph_rag_topk",
                "long_text_length",
                "reranker_sim_threshold",
                "retrieval_max_length",
                "text_match_entity_nums",
                "vector_match_entity_nums"
            ],
            "properties": {
                "graph_rag_topk": {
                    "description": "重排序后保留参考信息数量：25",
                    "type": "integer"
                },
                "long_text_length": {
                    "description": "长文本：256",
                    "type": "integer"
                },
                "reranker_sim_threshold": {
                    "description": "图谱rerank bge相似度过滤阈值：-5.5",
                    "type": "number"
                },
                "retrieval_max_length": {
                    "description": "EnableRAG             *bool    ` + "`" + `json:\"enable_rag\" binding:\"required\"` + "`" + `               // 是否启用RAG\nEnableNGQL            *bool    ` + "`" + `json:\"enable_ngql\" binding:\"required\"` + "`" + `              // 是否启用NGQL",
                    "type": "integer"
                },
                "text_match_entity_nums": {
                    "description": "文本匹配召回实体数量：60",
                    "type": "integer"
                },
                "vector_match_entity_nums": {
                    "description": "向量匹配召回实体数量：60",
                    "type": "integer"
                }
            }
        },
        "datasourcevalobj.KgSource": {
            "type": "object",
            "required": [
                "fields",
                "kg_id"
            ],
            "properties": {
                "field_properties": {
                    "description": "实体属性列表",
                    "type": "object",
                    "additionalProperties": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "fields": {
                    "description": "实体类范围",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "kg_id": {
                    "description": "图谱ID",
                    "type": "string"
                },
                "output_fields": {
                    "description": "结果范围，非必填",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "datasourcevalobj.KnEntrySource": {
            "type": "object",
            "required": [
                "kn_entry_id"
            ],
            "properties": {
                "kn_entry_id": {
                    "description": "知识条目ID",
                    "type": "string"
                }
            }
        },
        "datasourcevalobj.KnowledgeNetworkSource": {
            "type": "object",
            "required": [
                "knowledge_network_id"
            ],
            "properties": {
                "knowledge_network_id": {
                    "description": "业务知识网络ID",
                    "type": "string"
                }
            }
        },
        "datasourcevalobj.MetricSource": {
            "type": "object",
            "required": [
                "metric_model_id"
            ],
            "properties": {
                "metric_model_id": {
                    "description": "指标模型ID",
                    "type": "string"
                }
            }
        },
        "datasourcevalobj.RetrieverAdvancedConfig": {
            "type": "object",
            "properties": {
                "doc": {
                    "$ref": "#/definitions/datasourcevalobj.DocAdvancedConfig"
                },
                "kg": {
                    "$ref": "#/definitions/datasourcevalobj.KGAdvancedConfig"
                }
            }
        },
        "datasourcevalobj.RetrieverDataSource": {
            "type": "object",
            "properties": {
                "advanced_config": {
                    "description": "召回高级配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/datasourcevalobj.RetrieverAdvancedConfig"
                        }
                    ]
                },
                "doc": {
                    "description": "文档类型数据源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/datasourcevalobj.DocSource"
                    }
                },
                "kg": {
                    "description": "图谱类型数据源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/datasourcevalobj.KgSource"
                    }
                },
                "kn_entry": {
                    "description": "知识库类型数据源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/datasourcevalobj.KnEntrySource"
                    }
                },
                "knowledge_network": {
                    "description": "业务知识网络类型数据源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/datasourcevalobj.KnowledgeNetworkSource"
                    }
                },
                "metric": {
                    "description": "指标类型数据源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/datasourcevalobj.MetricSource"
                    }
                }
            }
        },
        "pmsvo.PmsControlObjS": {
            "type": "object",
            "properties": {
                "app_account_ids": {
                    "description": "应用账号ID列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "department_ids": {
                    "description": "部门ID列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "role_ids": {
                    "description": "角色ID列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "user_group_ids": {
                    "description": "用户组ID列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "user_ids": {
                    "description": "用户ID列表",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "productreq.CreateReq": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "key": {
                    "description": "产品标识，唯一",
                    "type": "string",
                    "maxLength": 50,
                    "example": "smart-customer-service"
                },
                "name": {
                    "description": "产品名称",
                    "type": "string",
                    "maxLength": 50,
                    "example": "智能客服"
                },
                "profile": {
                    "description": "产品简介",
                    "type": "string",
                    "maxLength": 100,
                    "example": "这是一个智能客服产品"
                }
            }
        },
        "productreq.UpdateReq": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "description": "产品名称",
                    "type": "string",
                    "maxLength": 50,
                    "example": "智能客服"
                },
                "profile": {
                    "description": "产品简介",
                    "type": "string",
                    "maxLength": 100,
                    "example": "这是一个智能客服产品"
                }
            }
        },
        "productresp.CreateRes": {
            "type": "object",
            "properties": {
                "id": {
                    "description": "产品ID",
                    "type": "integer",
                    "example": 12345
                },
                "key": {
                    "description": "产品Key",
                    "type": "string",
                    "example": "smart-customer-service"
                }
            }
        },
        "productresp.DetailRes": {
            "type": "object",
            "properties": {
                "created_at": {
                    "description": "创建时间（时间戳，单位：ms）",
                    "type": "integer"
                },
                "id": {
                    "description": "产品ID",
                    "type": "integer"
                },
                "key": {
                    "description": "产品标识",
                    "type": "string"
                },
                "name": {
                    "description": "产品名称",
                    "type": "string"
                },
                "profile": {
                    "description": "产品简介",
                    "type": "string"
                },
                "updated_at": {
                    "description": "更新时间（时间戳，单位：ms）",
                    "type": "integer"
                }
            }
        },
        "productresp.ListItem": {
            "type": "object",
            "properties": {
                "created_at": {
                    "description": "创建时间（时间戳，单位：ms）",
                    "type": "integer"
                },
                "id": {
                    "description": "产品ID",
                    "type": "integer"
                },
                "key": {
                    "description": "产品标识",
                    "type": "string"
                },
                "name": {
                    "description": "产品名称",
                    "type": "string"
                },
                "profile": {
                    "description": "产品简介",
                    "type": "string"
                },
                "updated_at": {
                    "description": "更新时间（时间戳，单位：ms）",
                    "type": "integer"
                }
            }
        },
        "productresp.ListRes": {
            "type": "object",
            "properties": {
                "entries": {
                    "description": "产品列表",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/productresp.ListItem"
                    }
                },
                "total": {
                    "description": "产品总数",
                    "type": "integer"
                }
            }
        },
        "pubedreq.PubedAgentListReq": {
            "type": "object",
            "properties": {
                "agent_keys": {
                    "description": "根据智能体标识查询",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "business_domain_ids": {
                    "description": "业务域ID数组；当未禁用业务域时，如果不传会使用 header 中的 \"x-business-domain\"，若该 header 也未传则默认使用“公共业务域”过滤",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "category_id": {
                    "description": "分类ID",
                    "type": "string"
                },
                "custom_space_id": {
                    "description": "自定义空间ID",
                    "type": "string"
                },
                "exclude_agent_keys": {
                    "description": "排除智能体标识",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "ids": {
                    "description": "根据ID查询",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "is_to_custom_space": {
                    "description": "获取发布到自定义空间的智能体",
                    "type": "integer"
                },
                "is_to_square": {
                    "description": "获取发布到广场的智能体",
                    "type": "integer"
                },
                "name": {
                    "description": "根据名称模糊查询",
                    "type": "string"
                },
                "pagination_marker_str": {
                    "description": "上一次查询的最后一条记录对应的pagination_marker_str",
                    "type": "string"
                },
                "publish_to_be": {
                    "description": "发布为标识(\"api_agent\", \"web_sdk_agent\", \"skill_agent\")",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.PublishToBe"
                        }
                    ]
                },
                "size": {
                    "description": "每页显示数量",
                    "type": "integer",
                    "maximum": 1000
                }
            }
        },
        "releasereq.UpdatePublishInfoReq": {
            "type": "object",
            "properties": {
                "category_ids": {
                    "description": "分类IDs",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "description": {
                    "description": "发布描述",
                    "type": "string"
                },
                "pms_control": {
                    "description": "权限控制信息",
                    "allOf": [
                        {
                            "$ref": "#/definitions/pmsvo.PmsControlObjS"
                        }
                    ]
                },
                "publish_to_bes": {
                    "description": "发布为什么 [\"skill_agent\", \"api_agent\", \"web_sdk_agent\", \"agent_tpl\"]",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/cdaenum.PublishToBe"
                    }
                },
                "publish_to_where": {
                    "description": "发布到的目标 [\"square\"]",
                    "type": "array",
                    "items": {
                        "enum": [
                            "square"
                        ],
                        "$ref": "#/definitions/daenum.PublishToWhere"
                    }
                }
            }
        },
        "rest.BaseError": {
            "type": "object",
            "properties": {
                "description": {
                    "description": "错误描述",
                    "type": "string"
                },
                "error_code": {
                    "description": "错误码",
                    "type": "string"
                },
                "error_details": {
                    "description": "详细内容"
                },
                "error_link": {
                    "description": "错误链接",
                    "type": "string"
                },
                "solution": {
                    "description": "解决方法",
                    "type": "string"
                }
            }
        },
        "rest.HTTPError": {
            "type": "object",
            "properties": {
                "baseError": {
                    "$ref": "#/definitions/rest.BaseError"
                },
                "httpcode": {
                    "type": "integer"
                },
                "language": {
                    "type": "string"
                }
            }
        },
        "sessionreq.ManageReq": {
            "type": "object",
            "required": [
                "action",
                "agent_id",
                "agent_version"
            ],
            "properties": {
                "action": {
                    "$ref": "#/definitions/sessionreq.SessionManageActionType"
                },
                "agent_id": {
                    "type": "string"
                },
                "agent_version": {
                    "type": "string"
                }
            }
        },
        "sessionreq.SessionManageActionType": {
            "type": "string",
            "enum": [
                "get_info_or_create",
                "recover_lifetime_or_create"
            ],
            "x-enum-varnames": [
                "SessionManageActionGetInfoOrCreate",
                "SessionManageActionRecoverLifetimeOrCreate"
            ]
        },
        "skillenum.Datasource": {
            "type": "string",
            "enum": [
                "inherit_main",
                "self_configured"
            ],
            "x-enum-comments": {
                "DatasourceInheritMain": "继承主 Agent 数据源",
                "DatasourceSelfConfigured": "使用自身配置（默认逻辑）"
            },
            "x-enum-descriptions": [
                "继承主 Agent 数据源",
                "使用自身配置（默认逻辑）"
            ],
            "x-enum-varnames": [
                "DatasourceInheritMain",
                "DatasourceSelfConfigured"
            ]
        },
        "skillenum.DatasourceSpecificInherit": {
            "type": "string",
            "enum": [
                "docs_only",
                "graph_only",
                "all"
            ],
            "x-enum-comments": {
                "DatasourceInheritAll": "all：继承所有类型数据源",
                "DatasourceInheritDocs": "docs_only：仅继承文档数据源",
                "DatasourceInheritGraph": "graph_only：仅继承图谱数据源"
            },
            "x-enum-descriptions": [
                "docs_only：仅继承文档数据源",
                "graph_only：仅继承图谱数据源",
                "all：继承所有类型数据源"
            ],
            "x-enum-varnames": [
                "DatasourceInheritDocs",
                "DatasourceInheritGraph",
                "DatasourceInheritAll"
            ]
        },
        "skillenum.LLM": {
            "type": "string",
            "enum": [
                "inherit_main",
                "self_configured"
            ],
            "x-enum-comments": {
                "LLMInheritMain": "继承主 Agent 大模型",
                "LLMSelfConfiged": "使用自身配置（默认逻辑）"
            },
            "x-enum-descriptions": [
                "继承主 Agent 大模型",
                "使用自身配置（默认逻辑）"
            ],
            "x-enum-varnames": [
                "LLMInheritMain",
                "LLMSelfConfiged"
            ]
        },
        "skillvalobj.Category": {
            "type": "object",
            "properties": {
                "description": {
                    "description": "类型描述",
                    "type": "string"
                },
                "id": {
                    "description": "类型ID",
                    "type": "string"
                },
                "name": {
                    "description": "类型名称",
                    "type": "string"
                }
            }
        },
        "skillvalobj.DataSourceConfig": {
            "type": "object",
            "properties": {
                "specific_inherit": {
                    "$ref": "#/definitions/skillenum.DatasourceSpecificInherit"
                },
                "type": {
                    "$ref": "#/definitions/skillenum.Datasource"
                }
            }
        },
        "skillvalobj.LLMConfig": {
            "type": "object",
            "properties": {
                "type": {
                    "$ref": "#/definitions/skillenum.LLM"
                }
            }
        },
        "skillvalobj.ResultProcessStrategy": {
            "type": "object",
            "properties": {
                "category": {
                    "description": "结果处理策略类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/skillvalobj.Category"
                        }
                    ]
                },
                "strategy": {
                    "description": "结果处理策略",
                    "allOf": [
                        {
                            "$ref": "#/definitions/skillvalobj.Strategy"
                        }
                    ]
                }
            }
        },
        "skillvalobj.Strategy": {
            "type": "object",
            "properties": {
                "description": {
                    "description": "策略描述",
                    "type": "string"
                },
                "id": {
                    "description": "策略ID",
                    "type": "string"
                },
                "name": {
                    "description": "策略名称",
                    "type": "string"
                }
            }
        },
        "swagger.APIError": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer",
                    "example": 400
                },
                "details": {
                    "type": "string",
                    "example": "详细错误信息"
                },
                "message": {
                    "type": "string",
                    "example": "请求参数错误"
                }
            }
        },
        "swagger.AgentConfigConfig": {
            "type": "object",
            "properties": {
                "built_in_can_edit_fields": {
                    "description": "内置 agent 可编辑字段配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.BuiltInCanEditFields"
                        }
                    ]
                },
                "conversation_history_config": {
                    "description": "会话历史配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.ConversationHistoryConfig"
                        }
                    ]
                },
                "data_source": {
                    "description": "数据源",
                    "allOf": [
                        {
                            "$ref": "#/definitions/datasourcevalobj.RetrieverDataSource"
                        }
                    ]
                },
                "dolphin": {
                    "description": "Dolphin 语句",
                    "type": "string"
                },
                "input": {
                    "description": "输入参数",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.Input"
                        }
                    ]
                },
                "is_data_flow_set_enabled": {
                    "description": "是否启用数据流设置",
                    "type": "integer"
                },
                "is_dolphin_mode": {
                    "description": "是否是 dolphin 模式",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.DolphinMode"
                        }
                    ]
                },
                "llms": {
                    "description": "LLM 配置",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/daconfvalobj.LlmItem"
                    }
                },
                "memory": {
                    "description": "长期记忆配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.MemoryCfg"
                        }
                    ]
                },
                "metadata": {
                    "description": "配置元数据",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.ConfigMetadata"
                        }
                    ]
                },
                "mode": {
                    "description": "配置模式",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.AgentMode"
                        }
                    ]
                },
                "opening_remark_config": {
                    "description": "开场白配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.OpeningRemarkConfig"
                        }
                    ]
                },
                "output": {
                    "description": "输出结果",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.Output"
                        }
                    ]
                },
                "plan_mode": {
                    "description": "任务规划模式配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.PlanMode"
                        }
                    ]
                },
                "post_dolphin": {
                    "description": "在用户自定义 dolphin 之后执行的内置 dolphin 语句",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/daconfvalobj.DolphinTpl"
                    }
                },
                "pre_dolphin": {
                    "description": "在用户自定义 dolphin 之前执行的内置 dolphin 语句",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/daconfvalobj.DolphinTpl"
                    }
                },
                "preset_questions": {
                    "description": "预设问题列表",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/daconfvalobj.PresetQuestion"
                    }
                },
                "react_config": {
                    "description": "ReAct 模式配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.ReactConfig"
                        }
                    ]
                },
                "related_question": {
                    "description": "相关问题配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/daconfvalobj.RelatedQuestion"
                        }
                    ]
                },
                "skills": {
                    "description": "技能",
                    "allOf": [
                        {
                            "$ref": "#/definitions/swagger.AgentConfigSkills"
                        }
                    ]
                },
                "system_prompt": {
                    "description": "系统提示词",
                    "type": "string"
                }
            }
        },
        "swagger.AgentConfigCreateReq": {
            "type": "object",
            "properties": {
                "avatar": {
                    "description": "头像信息",
                    "type": "string"
                },
                "avatar_type": {
                    "description": "头像类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.AvatarType"
                        }
                    ]
                },
                "config": {
                    "description": "agent 配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/swagger.AgentConfigConfig"
                        }
                    ]
                },
                "created_by": {
                    "description": "创建人 uid（内部接口有效）",
                    "type": "string"
                },
                "is_built_in": {
                    "description": "是否内置（内部接口有效）",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.BuiltIn"
                        }
                    ]
                },
                "is_system_agent": {
                    "description": "是否是系统智能体",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cenum.YesNoInt8"
                        }
                    ]
                },
                "key": {
                    "description": "agent 标识",
                    "type": "string"
                },
                "name": {
                    "description": "名字",
                    "type": "string"
                },
                "product_key": {
                    "description": "所属产品标识",
                    "type": "string"
                },
                "profile": {
                    "description": "简介",
                    "type": "string"
                }
            }
        },
        "swagger.AgentConfigCreateRes": {
            "type": "object",
            "properties": {
                "id": {
                    "description": "agent id",
                    "type": "string"
                },
                "version": {
                    "description": "agent版本",
                    "type": "string"
                }
            }
        },
        "swagger.AgentConfigDetailRes": {
            "type": "object",
            "properties": {
                "avatar": {
                    "description": "头像信息",
                    "type": "string"
                },
                "avatar_type": {
                    "description": "头像类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.AvatarType"
                        }
                    ]
                },
                "config": {
                    "description": "agent 配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/swagger.AgentConfigConfig"
                        }
                    ]
                },
                "id": {
                    "description": "agent id",
                    "type": "string"
                },
                "is_built_in": {
                    "description": "是否内置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.BuiltIn"
                        }
                    ]
                },
                "is_published": {
                    "description": "是否发布过",
                    "type": "boolean"
                },
                "is_system_agent": {
                    "description": "是否是系统智能体",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cenum.YesNoInt8"
                        }
                    ]
                },
                "key": {
                    "description": "agent 标识",
                    "type": "string"
                },
                "name": {
                    "description": "名字",
                    "type": "string"
                },
                "product_key": {
                    "description": "所属产品标识",
                    "type": "string"
                },
                "product_name": {
                    "description": "所属产品名称",
                    "type": "string"
                },
                "profile": {
                    "description": "描述",
                    "type": "string"
                },
                "status": {
                    "description": "状态",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.Status"
                        }
                    ]
                }
            }
        },
        "swagger.AgentConfigSkillAgent": {
            "type": "object",
            "properties": {
                "agent_input": {
                    "description": "技能输入",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/swagger.AgentConfigSkillAgentInput"
                    }
                },
                "agent_key": {
                    "description": "Agent Key",
                    "type": "string"
                },
                "agent_timeout": {
                    "description": "Agent 工具调用超时时间",
                    "type": "integer"
                },
                "agent_version": {
                    "description": "Agent 版本",
                    "type": "string"
                },
                "current_is_exists_and_published": {
                    "description": "当前是否存在并已发布",
                    "type": "boolean"
                },
                "current_pms_check_status": {
                    "description": "当前此技能的使用权限状态",
                    "type": "string"
                },
                "data_source_config": {
                    "description": "数据源配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/skillvalobj.DataSourceConfig"
                        }
                    ]
                },
                "intervention": {
                    "description": "是否启用干预",
                    "type": "boolean"
                },
                "intervention_confirmation_message": {
                    "description": "人工干预确认消息",
                    "type": "string"
                },
                "llm_config": {
                    "description": "LLM 配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/skillvalobj.LLMConfig"
                        }
                    ]
                }
            }
        },
        "swagger.AgentConfigSkillAgentInput": {
            "type": "object",
            "properties": {
                "children": {
                    "description": "子字段",
                    "allOf": [
                        {
                            "$ref": "#/definitions/swagger.AgentConfigSkillAgentInputs"
                        }
                    ]
                },
                "enable": {
                    "description": "是否启用",
                    "type": "boolean"
                },
                "input_name": {
                    "description": "输入名称",
                    "type": "string"
                },
                "input_type": {
                    "description": "输入类型",
                    "type": "string"
                },
                "map_type": {
                    "description": "值类型",
                    "type": "string"
                },
                "map_value": {
                    "description": "值"
                }
            }
        },
        "swagger.AgentConfigSkillAgentInputs": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/swagger.AgentConfigSkillAgentInput"
            }
        },
        "swagger.AgentConfigSkillMCP": {
            "type": "object",
            "properties": {
                "mcp_server_id": {
                    "description": "mcp server id",
                    "type": "string"
                }
            }
        },
        "swagger.AgentConfigSkillSkill": {
            "type": "object",
            "properties": {
                "skill_id": {
                    "description": "skill id",
                    "type": "string"
                }
            }
        },
        "swagger.AgentConfigSkillTool": {
            "type": "object",
            "properties": {
                "intervention": {
                    "description": "是否启用人工干预",
                    "type": "boolean"
                },
                "intervention_confirmation_message": {
                    "description": "人工干预确认消息",
                    "type": "string"
                },
                "result_process_strategies": {
                    "description": "结果处理策略",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/skillvalobj.ResultProcessStrategy"
                    }
                },
                "tool_box_id": {
                    "description": "工具箱 ID",
                    "type": "string"
                },
                "tool_id": {
                    "description": "工具 ID",
                    "type": "string"
                },
                "tool_input": {
                    "description": "输入参数配置",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/swagger.AgentConfigSkillToolInput"
                    }
                },
                "tool_timeout": {
                    "description": "工具调用超时时间",
                    "type": "integer"
                }
            }
        },
        "swagger.AgentConfigSkillToolInput": {
            "type": "object",
            "properties": {
                "children": {
                    "description": "子字段",
                    "allOf": [
                        {
                            "$ref": "#/definitions/swagger.AgentConfigSkillToolInputs"
                        }
                    ]
                },
                "enable": {
                    "description": "是否启用",
                    "type": "boolean"
                },
                "input_desc": {
                    "description": "输入描述",
                    "type": "string"
                },
                "input_name": {
                    "description": "输入名称",
                    "type": "string"
                },
                "input_type": {
                    "description": "输入类型",
                    "type": "string"
                },
                "map_type": {
                    "description": "值类型",
                    "type": "string"
                },
                "map_value": {
                    "description": "值"
                }
            }
        },
        "swagger.AgentConfigSkillToolInputs": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/swagger.AgentConfigSkillToolInput"
            }
        },
        "swagger.AgentConfigSkills": {
            "type": "object",
            "properties": {
                "agents": {
                    "description": "Agent 技能",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/swagger.AgentConfigSkillAgent"
                    }
                },
                "mcps": {
                    "description": "MCP 技能",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/swagger.AgentConfigSkillMCP"
                    }
                },
                "skills": {
                    "description": "skill",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/swagger.AgentConfigSkillSkill"
                    }
                },
                "tools": {
                    "description": "工具技能",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/swagger.AgentConfigSkillTool"
                    }
                }
            }
        },
        "swagger.AgentConfigUpdateReq": {
            "type": "object",
            "properties": {
                "avatar": {
                    "description": "头像信息",
                    "type": "string"
                },
                "avatar_type": {
                    "description": "头像类型",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.AvatarType"
                        }
                    ]
                },
                "config": {
                    "description": "agent 配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/swagger.AgentConfigConfig"
                        }
                    ]
                },
                "is_built_in": {
                    "description": "是否内置（内部接口有效）",
                    "allOf": [
                        {
                            "$ref": "#/definitions/cdaenum.BuiltIn"
                        }
                    ]
                },
                "name": {
                    "description": "名字",
                    "type": "string"
                },
                "product_key": {
                    "description": "所属产品标识",
                    "type": "string"
                },
                "profile": {
                    "description": "描述",
                    "type": "string"
                },
                "updated_by": {
                    "description": "更新人 uid（内部接口有效）",
                    "type": "string"
                }
            }
        },
        "swagger.ChatReq": {
            "type": "object",
            "properties": {
                "agent_app_key": {
                    "description": "agent app key",
                    "type": "string"
                },
                "agent_id": {
                    "description": "agentID",
                    "type": "string"
                },
                "agent_key": {
                    "description": "agentKey",
                    "type": "string"
                },
                "agent_run_id": {
                    "description": "Agent运行ID（中断恢复时由前端传入）",
                    "type": "string"
                },
                "agent_version": {
                    "description": "agent版本",
                    "type": "string"
                },
                "chat_mode": {
                    "description": "聊天模式",
                    "type": "string"
                },
                "chat_option": {
                    "$ref": "#/definitions/chatopt.ChatOption"
                },
                "conversation_id": {
                    "description": "会话ID",
                    "type": "string"
                },
                "custom_querys": {
                    "description": "自定义查询",
                    "type": "object",
                    "additionalProperties": true
                },
                "executor_version": {
                    "description": "executor version v1 或 v2 默认v2",
                    "type": "string"
                },
                "history": {
                    "description": "历史上下文",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/comvalobj.LLMMessage"
                    }
                },
                "inc_stream": {
                    "description": "是否增量返回",
                    "type": "boolean"
                },
                "interrupted_assistant_message_id": {
                    "description": "中断的助手消息ID",
                    "type": "string"
                },
                "model_name": {
                    "description": "指定使用的大模型名称",
                    "type": "string"
                },
                "query": {
                    "description": "查询内容",
                    "type": "string"
                },
                "regenerate_assistant_message_id": {
                    "description": "重新生成的助手消息ID",
                    "type": "string"
                },
                "regenerate_user_message_id": {
                    "description": "ConfirmPlan               bool                                ` + "`" + `json:\"confirm_plan\"` + "`" + `                     // 是否确认计划",
                    "type": "string"
                },
                "resume_interrupt_info": {
                    "description": "中断恢复信息（为nil时走正常流程）",
                    "allOf": [
                        {
                            "$ref": "#/definitions/v2agentexecutordto.AgentResumeInfo"
                        }
                    ]
                },
                "selected_files": {
                    "description": "用户选择的临时区文件",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/agentreq.SelectedFile"
                    }
                },
                "stream": {
                    "description": "NOTE: 新增stream参数，控制流式返回",
                    "type": "boolean"
                },
                "temp_files": {
                    "description": "临时文件",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/valueobject.TempFile"
                    }
                }
            }
        },
        "swagger.ChatResp": {
            "type": "object",
            "properties": {
                "agent_run_id": {
                    "description": "Agent运行ID（从Executor返回）",
                    "type": "string"
                },
                "assistant_message_id": {
                    "description": "助手消息ID",
                    "type": "string"
                },
                "conversation_id": {
                    "description": "会话ID",
                    "type": "string"
                },
                "error": {
                    "description": "Status  string                    ` + "`" + `json:\"status\"` + "`" + `  // 状态",
                    "allOf": [
                        {
                            "$ref": "#/definitions/rest.HTTPError"
                        }
                    ]
                },
                "message": {
                    "description": "消息",
                    "allOf": [
                        {
                            "$ref": "#/definitions/conversationmsgvo.Message"
                        }
                    ]
                },
                "user_message_id": {
                    "description": "用户消息ID",
                    "type": "string"
                }
            }
        },
        "swagger.ResumeReq": {
            "type": "object",
            "required": [
                "conversation_id"
            ],
            "properties": {
                "conversation_id": {
                    "description": "会话ID",
                    "type": "string"
                }
            }
        },
        "v2agentexecutordto.AgentResumeInfo": {
            "type": "object",
            "properties": {
                "action": {
                    "description": "操作类型: confirm | skip",
                    "type": "string"
                },
                "data": {
                    "description": "中断详情数据（从响应透传）",
                    "allOf": [
                        {
                            "$ref": "#/definitions/v2agentexecutordto.InterruptData"
                        }
                    ]
                },
                "modified_args": {
                    "description": "修改后的参数",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/v2agentexecutordto.ModifiedArg"
                    }
                },
                "resume_handle": {
                    "description": "复用 InterruptHandle",
                    "allOf": [
                        {
                            "$ref": "#/definitions/v2agentexecutordto.InterruptHandle"
                        }
                    ]
                }
            }
        },
        "v2agentexecutordto.InterruptConfig": {
            "type": "object",
            "properties": {
                "confirmation_message": {
                    "description": "确认提示消息",
                    "type": "string"
                },
                "requires_confirmation": {
                    "description": "是否需要用户确认",
                    "type": "boolean"
                }
            }
        },
        "v2agentexecutordto.InterruptData": {
            "type": "object",
            "properties": {
                "interrupt_config": {
                    "description": "中断配置",
                    "allOf": [
                        {
                            "$ref": "#/definitions/v2agentexecutordto.InterruptConfig"
                        }
                    ]
                },
                "tool_args": {
                    "description": "工具参数列表",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/v2agentexecutordto.ToolArg"
                    }
                },
                "tool_description": {
                    "description": "工具描述",
                    "type": "string"
                },
                "tool_name": {
                    "description": "工具名称",
                    "type": "string"
                }
            }
        },
        "v2agentexecutordto.InterruptHandle": {
            "type": "object",
            "properties": {
                "current_block": {
                    "description": "当前代码块索引",
                    "type": "integer"
                },
                "frame_id": {
                    "description": "执行帧ID",
                    "type": "string"
                },
                "interrupt_type": {
                    "description": "中断类型",
                    "type": "string"
                },
                "restart_block": {
                    "description": "是否重启代码块",
                    "type": "boolean"
                },
                "resume_token": {
                    "description": "恢复令牌",
                    "type": "string"
                },
                "snapshot_id": {
                    "description": "快照ID",
                    "type": "string"
                }
            }
        },
        "v2agentexecutordto.ModifiedArg": {
            "type": "object",
            "properties": {
                "key": {
                    "description": "参数名称",
                    "type": "string"
                },
                "value": {
                    "description": "参数值"
                }
            }
        },
        "v2agentexecutordto.ToolArg": {
            "type": "object",
            "properties": {
                "key": {
                    "description": "参数名称",
                    "type": "string"
                },
                "type": {
                    "description": "参数类型",
                    "type": "string"
                },
                "value": {
                    "description": "参数值"
                }
            }
        },
        "v2agentexecutordto.ToolInterruptInfo": {
            "type": "object",
            "properties": {
                "data": {
                    "description": "中断详情",
                    "allOf": [
                        {
                            "$ref": "#/definitions/v2agentexecutordto.InterruptData"
                        }
                    ]
                },
                "handle": {
                    "description": "恢复句柄",
                    "allOf": [
                        {
                            "$ref": "#/definitions/v2agentexecutordto.InterruptHandle"
                        }
                    ]
                }
            }
        },
        "valueobject.AgentInfo": {
            "type": "object",
            "properties": {
                "agent_id": {
                    "type": "string"
                },
                "agent_name": {
                    "type": "string"
                },
                "agent_status": {
                    "type": "string"
                },
                "agent_version": {
                    "type": "string"
                }
            }
        },
        "valueobject.TempFile": {
            "type": "object",
            "properties": {
                "details": {},
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            }
        }
    },
    "securityDefinitions": {
        "BearerAuth": {
            "description": "Bearer {token} - 需要有效的 OAuth 访问令牌",
            "type": "apiKey",
            "name": "Authorization",
            "in": "header"
        }
    }
}`

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
	Version:          "1.0",
	Host:             "localhost:30777",
	BasePath:         "/api/agent-factory",
	Schemes:          []string{},
	Title:            "Agent Factory API",
	Description:      "Agent Factory 智能体工厂 API 文档",
	InfoInstanceName: "swagger",
	SwaggerTemplate:  docTemplate,
	LeftDelim:        "{{",
	RightDelim:       "}}",
}

func init() {
	swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
