NVIDIA ACE Agent Plugin Server (4.0.0)

下载 OpenAPI 规范:下载

健康 API

状态

健康检查端点

响应

响应示例

内容类型
application/json
null

获取指标

响应

响应示例

内容类型
application/json
null

名称

响应

响应示例

内容类型
application/json
null

获取 Fulfillment 列表

响应

响应示例

内容类型
application/json
[
  • {
    }
]

日期

获取日期

从 datetime 模块获取当前日期

响应

响应示例

内容类型
application/json
null

获取时间

从 datetime 模块获取当前时间

响应

响应示例

内容类型
application/json
null

股票

获取股票代码

获取公司名称并返回用于交易的股票代码 参数 Args: company_name: 公司名称,例如 Microsoft 返回: 用于交易的股票代码,例如微软的 MSFT

查询参数参数
company_name
必需
string (公司名称)

响应

响应示例

内容类型
application/json
"string"

获取股票价格

从雅虎财经 API 获取股票价格

查询参数参数
company_name
必需
string (公司名称)

响应

响应示例

内容类型
application/json
0
0

天气

获取天气

获取 fulfillment 请求中提供的位置的天气信息 参数: request_data: DM fulfillment 请求

请求体模式: application/json
必需
UserId
必需
string (用户 ID)
Domain
必需
string (域)
Intent
必需
string (意图)
Language
必需
string (语言)
Query
必需
string (查询)
QueryId
必需
string (查询 ID)
ProcessedQuery
必需
string (已处理的查询)
SessionId
必需
string (会话 ID)
StreamId
必需
string (流 ID)
Event
string (事件)
NlpResp
object (NLP 响应)
Slots
object (槽位)
LinkedSlots
object (链接槽位)
FulfillmentSlots
object (Fulfillment 槽位)
Parameters
object (参数)
History
object (历史记录)
Memory
object (内存)

响应

请求示例

内容类型
application/json
{
  • "UserId": "string",
  • "Domain": "string",
  • "Intent": "string",
  • "Language": "string",
  • "Query": "string",
  • "QueryId": "string",
  • "ProcessedQuery": "string",
  • "SessionId": "string",
  • "StreamId": "string",
  • "Event": "string",
  • "NlpResp": { },
  • "Slots": { },
  • "LinkedSlots": { },
  • "FulfillmentSlots": { },
  • "Parameters": { },
  • "History": { },
  • "Memory": { }
}

响应示例

内容类型
application/json
{
  • "UserResponse": { },
  • "Status": "",
  • "FulfillmentSlots": { },
  • "CustomData": { },
  • "InvalidSlots": [
    ],
  • "Slots": { },
  • "StatusDetails": "",
  • "Memory": { }
}

获取天气状况

返回给定位置的天气状况

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
"string"

获取温度

返回给定位置的温度

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
0
0

是否晴朗

检查给定位置是否晴朗

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
true

是否多云

检查给定位置是否多云

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
true

获取降雨量

返回给定位置的降雨量

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
"string"

是否下雨

检查给定位置是否正在下雨

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
true

是否下雪

检查给定位置是否正在下雪

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
true

获取湿度

返回给定位置的湿度

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
"string"

获取风速

返回给定位置的风速

查询参数参数
location
必需
string (位置)

响应

响应示例

内容类型
application/json
"string"

rag

聊天

此端点可用于响应查询驱动的用户请求。

请求体模式: application/json
必需
Query
string (查询)
默认值: ""

需要处理的用户查询。

UserId
必需
string (用户 ID)

用于识别哪个用户正在与聊天引擎交互的强制性唯一标识符。

响应

请求示例

内容类型
application/json
{
  • "Query": "",
  • "UserId": "string"
}

响应示例

内容类型
application/json
null

事件

此端点可用于响应事件驱动的用户请求。

请求体模式: application/json
必需
EventType
string (事件类型)
默认值: ""

需要处理的事件名称。

UserId
必需
string (用户 ID)

用于识别哪个用户正在与聊天引擎交互的强制性唯一标识符。

响应

请求示例

内容类型
application/json
{
  • "EventType": "",
  • "UserId": "string"
}

响应示例

内容类型
application/json
示例
{
  • "UserId": "",
  • "Events": [ ],
  • "Response": {
    }
}