{
  "openapi": "3.0.3",
  "info": {
    "title": "易源合一",
    "description": "一个入口调用多种API，智能识别用户意图，整合万维易源数据，提供针对性解决方案。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/3054-3": {
      "x-pointCode": 3,
      "x-mode": "mapping",
      "x-read-timeout": 60,
      "x-connect-timeout": 60,
      "post": {
        "summary": "智能对话(流式)",
        "description": "流式调用是一种处理连续数据流的技术，支持数据以块形式逐个传输，无需等待完整数据集加载到内存，数据块以换行符分隔，包含事件与响应信息。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "当前流式id"
                    },
                    "event": {
                      "type": "string",
                      "description": "当前流式事务说明：add：增量，error：异常，finish：结束，interrupted：中断"
                    },
                    "data": {
                      "type": "string",
                      "description": "当前流式内容，为json格式，详细参数参考https://www.showapi.com/apiGateway/view/3054/1"
                    },
                    "数据块": {
                      "type": "string",
                      "description": "以\\n\\n进行区分"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "3054_3_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "意图内容"
                  },
                  "args_list": {
                    "type": "array",
                    "items": {},
                    "minLength": 0,
                    "maxLength": 10000000,
                    "description": "相关内容的url或者base64，例如图片的base64"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        }
      }
    },
    "/3054-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 50,
      "x-connect-timeout": 60,
      "post": {
        "summary": "意图分析",
        "description": "借助人工智能技术，对语句中的内容进行分析，以识别文本中的意图。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "number",
                              "description": "0为成功，其余为失败"
                            },
                            "args": {
                              "type": "object",
                              "properties": {},
                              "description": "相关提取参数"
                            },
                            "name": {
                              "type": "string",
                              "description": "意图解释"
                            },
                            "ret_msg": {
                              "type": "string",
                              "description": "执行情况"
                            },
                            "confidence": {
                              "type": "number",
                              "description": "置信度"
                            },
                            "intent": {
                              "type": "string",
                              "description": "意图标识"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "3054_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "意图参数"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        }
      }
    },
    "/3054-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 60,
      "x-connect-timeout": 60,
      "post": {
        "summary": "智能对话",
        "description": "智能对话可识别对话中的命令或意图，并据此选择适用应用以获取服务，从而满足用户需求或要求。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "result": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              },
                              "description": "相关意图答复详细内容"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "0为调用成功，其余为失败"
                            },
                            "intent": {
                              "type": "object",
                              "properties": {
                                "args": {
                                  "type": "object",
                                  "properties": {
                                    "area": {
                                      "type": "string"
                                    },
                                    "date": {
                                      "type": "string"
                                    }
                                  },
                                  "description": "意图参数"
                                },
                                "name": {
                                  "type": "string",
                                  "description": "意图编码"
                                }
                              },
                              "description": "意图相关内容"
                            },
                            "reply_msg": {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string",
                                  "description": "答复内容"
                                },
                                "img_list": {
                                  "type": "object",
                                  "properties": {},
                                  "description": "答复图片信息"
                                },
                                "audio_list": {
                                  "type": "object",
                                  "properties": {},
                                  "description": "答复音频信息"
                                },
                                "video_list": {
                                  "type": "object",
                                  "properties": {},
                                  "description": "答复视频信息"
                                }
                              },
                              "description": "答复相关内容"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "3054_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "意图内容"
                  },
                  "args_list": {
                    "type": "array",
                    "items": {},
                    "minLength": 0,
                    "maxLength": 10000000,
                    "description": "相关内容的url或者base64，例如图片的base64"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/3054?tab=book"
  },
  "x-apiCode": "3054",
  "x-is-own": false,
  "x-is-op": false
}