获取智能体会话主题
获取智能体会话主题
返回指定智能体最新的话题发现运行结果。
路径参数
agent_id
智能体 ID
请求头
xi-api-key
查询参数
page_size
要返回的顶级主题组数量。
sort_by
Column to rank topics by. Use conversations for volume, sentiment with sort_direction=asc for the most negative topics, and frustration with sort_direction=desc for the most frustrated ones. Topics with no score are always ranked last.
允许的值:
sort_direction
主题排序方向。
允许的值:
from_unix_secs
查看主题的时间窗口起点。与 to_unix_secs 一同设置时,范围内已完成的每日主题发现运行会汇总,因此该窗口同时限定指标和主题集。由于运行覆盖完整 UTC 日,会向下取整至对应 UTC 日的开始时间;aggregated_run_count 表示汇总的运行数量。省略两个边界可获取单个最新运行。
to_unix_secs
查看主题的时间窗口结束时间。
include_evaluation_criteria
在每个主题的指标中包含按条件划分的评估明细。传入 false 可移除该明细:它会占据大部分负载,但无论是否包含都会返回加权 success_rate。
cursor
用于获取下一页。响应中会返回游标。
响应
成功响应
topics
window_start_unix_secs
window_end_unix_secs
aggregated_run_count
返回指标汇总涵盖的每日主题发现运行次数。
has_more
next_cursor
错误
422
Unprocessable Entity Error