小程序开放平台

文档中心
智能体API
消费侧(小组件/小程序)API
sendMessage
getAgentInfo
getHistoryMessages
getConversations
queryTasks

getConversations

应用开发
>
API和SDK
>
消费侧(小组件/小程序)API
>
getConversations
>
更新时间:2025-11-13 17:39:53

getConversations

使用示例

 
const agent = this.getAgent();
if (!agent) return;
const agentInfo = await agent.getConversations();
console.log("res", agentInfo);

类型声明

const agentInfo = await agent.getConversations();

返回值

export interface Conversation {
    id: string;
    createAt: string;
}
export interface GetConversationsData {
    conversations: Conversation[];
}
属性名
类型
说明
最低支持版本
conversations数组会话列表x.x.x
属性名
类型
说明
最低支持版本
idstring会话 idx.x.x
createAtstring会话创建时间x.x.x
该文档是否对您有帮助?