使用示例
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 |
属性名 | 类型 | 说明 | 最低支持版本 |
|---|---|---|---|
| id | string | 会话 id | x.x.x |
| createAt | string | 会话创建时间 | x.x.x |