跳到主要内容

Result_RuntimeTools

统一业务结果封装。

codeinteger必填

业务结果码;200 表示成功。

msgstring必填

结果消息。

errorKeystring可为空

稳定的业务错误键;成功时为 null。

data object可为空必填

成功时的业务数据;业务失败或无数据时为 null。

tools object[]必填

可调用的设备工具描述。

  • Array [
  • namestring

    工具名称。

    descriptionstring可为空

    工具说明。

    inputSchema object

    工具输入 JSON Schema。

    object
    property name*any

    工具输入 JSON Schema。

  • ]
  • successboolean

    外层业务是否成功;等价于 code=200。

    Result_RuntimeTools
    {
    "code": 0,
    "msg": "string",
    "errorKey": "string",
    "data": {
    "tools": [
    {
    "name": "string",
    "description": "string",
    "inputSchema": {}
    }
    ]
    },
    "success": true
    }