智能体

获取推荐问题

Changed on

基于智能体关联的知识库,返回推荐问题供用户快捷提问

get/agents/{id}/suggested-questions

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/agents/{id}/suggested-questions
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

智能体ID

Query parameters

knowledge_base_idsstring

知识库ID列表(逗号分隔),覆盖智能体默认配置

knowledge_idsstring

知识ID列表(逗号分隔),限定到具体文档

tag_scopesstring

带知识库归属的标签范围(JSON)

limitinteger

返回数量上限(未传时使用智能体配置的开场问题数量,最大30)

Response

推荐问题列表

successboolean

Example response

{
  "success": true
}

Changes