{
  "openapi": "3.0.3",
  "info": {
    "title": "ONE-API意图分析",
    "description": "【oneapi_一个入口就能调用所有接口】通过接收用户提出的问题、输入的图片和文档等需求，准确识别其意图，并触发相应的回复。同时，整合了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": "流式调用（Streaming）是一种在计算机编程中常见的技术，用于处理大量连续的数据流。它允许数据以块的形式逐个传输，而不需要等待整个数据集完全加载到内存中。\n数据块以'\\n\\n'进行区别，例如：\nid: f081be41-dec0-4e8e-aba9-d56943956103\nevent: add\ndata: {\"reply_msg\":{\"text\":\"你好！\",\"img_list\":{},\"audio_list\":{},\"video_list\":{}},\"intent\":{\"args\":{},\"name\":\"default\"},\"result\":{},\"ret_code\":0}\n\n…………\n…………\n…………\n\nid: f081be41-dec0-4e8e-aba9-d56943956103\nevent: add\ndata: {\"reply_msg\":{\"text\":\"很高兴能和你交流。\",\"img_list\":{},\"audio_list\":{},\"video_list\":{}},\"intent\":{\"args\":{},\"name\":\"default\"},\"result\":{},\"ret_code\":0}\n\nid: f081be41-dec0-4e8e-aba9-d56943956103\nevent: finish\ndata: {\"reply_msg\":{\"text\":\"\",\"img_list\":{},\"audio_list\":{},\"video_list\":{}},\"intent\":{\"args\":{},\"name\":\"default\"},\"result\":{},\"ret_code\":0}",
        "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": true,
  "x-is-op": true
}