Skip to content

智能体信息查询

接口信息

接口地址:/api/v1/agent

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

请求参数

请求头

参数名类型必填描述示例值
AuthorizationstringAPI KeyBearer ak-xxxxeyJhbGciOiJIUzI1NiJ9

响应参数:

参数名称参数说明类型schema
code业务状态码,0000 表示成功,其余失败string
displayCode源系统状态码,用于问题跟踪string
message错误描述信息string
data
  spaceId智能体所属的空间IDinteger(int64)
  agentId智能体IDinteger(int64)
  name智能体名称string
  description智能体介绍信息string
  icon图标string
  remark发布备注信息string
  publishDate智能体发布时间string(date-time)
  statistics统计信息(智能体、插件、工作流相关的统计都在该结构里,根据实际情况取值)
    targetIdinteger
    userCount用户人数integer
    convCount会话次数integer
    collectCount收藏次数integer
    likeCount点赞次数integer
  publishUser发布者信息
    userId用户IDinteger
    userName用户名string
    nickName昵称string
    avatar头像string
  category智能体分类名称string
  openSuggest是否开启问题建议,可用值:Open,Closestring
  openingChatMsg开场白文案string
  openingGuidQuestions引导问题arraystring
  openScheduledTask是否开启定时任务,可用值:Open,Closestring
  variables参数arrayArg
    key参数key,唯一标识,不需要前端传递,后台根据配置自动生成string
    name参数名称,符合函数命名规则string
    displayName参数展示名称,供前端展示使用string
    description参数详细描述信息string
    require是否必须boolean
    inputType输入类型, 单行文本 Text, 多行段落 Paragraph,
下拉单选 Select,下拉多选 MultipleSelect,
数字 Number, 智能识别 AutoRecognition
string
    selectConfig下拉参数配置SelectConfigSelectConfig
  shareLink分享链接string
  manualComponents可手动选择的组件列表array
    id组件IDinteger
    name组件名称string
    icon组件图标string
    description组件描述string
    type组件类型,可用值:Plugin,Workflowstring
    defaultSelected是否默认选中,0-否,1-是integer
  allowCopy是否允许复制, 1 允许integer(int32)
  collectboolean
tid跟踪唯一标识string
successboolean

响应示例:

javascript
{
	"code": "0000",
	"displayCode": "0000",
	"message": "",
	"data": {
		"spaceId": 0,
		"agentId": 0,
		"name": "",
		"description": "",
		"icon": "",
		"remark": "",
		"publishDate": "",
		"statistics": {
			"targetId": 0,
			"userCount": 0,
			"convCount": 0,
			"collectCount": 0,
			"likeCount": 0,
			"referenceCount": 0,
			"callCount": 0,
			"failCallCount": 0,
			"totalCallDuration": 0
		},
		"publishUser": {
			"userId": 0,
			"userName": "",
			"nickName": "",
			"avatar": ""
		},
		"category": "",
		"openSuggest": "",
		"openingChatMsg": "",
		"openingGuidQuestions": [],
		"openScheduledTask": "",
		"variables": [
			{
				"key": "",
				"name": "",
				"displayName": "",
				"description": "",
				"dataType": "",
				"require": true,
				"enable": true,
				"systemVariable": true,
				"bindValueType": "",
				"bindValue": "",
				"inputType": "",
				"selectConfig": {}
			}
		],
		"shareLink": "",
		"manualComponents": [
			{
				"id": 0,
				"name": "",
				"icon": "",
				"description": "",
				"type": "",
				"defaultSelected": 0
			}
		],
		"allowCopy": 0,
		"collect": true
	},
	"tid": "",
	"success": true
}