const listThreads: (chat: ChatBinding, guard: ScopeGuard) => Tool<{ channelId: string; cursor: string; limit: number }, { nextCursor: string | undefined; threads: { id: string; lastReplyAt: string | undefined; replyCount: number | undefined; rootMessage: { attachments: { mimeType: string | undefined; name: string | undefined; type: "image" | "file" | "video" | "audio"; url: string | undefined }[]; author: { fullName: string; isBot: boolean | "unknown"; isMe: boolean; userId: string; userName: string }; dateSent: string; edited: boolean; id: string; isMention: boolean | undefined; text: string; threadId: string } }[] }>
ai Variables