You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a485bfd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/channel.lark/src/LarkSessionHandler.ts
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -248,6 +248,27 @@ Returns a map of question label → answer (string for radio/input, string[] for
248
248
return`Message sent successfully.`;
249
249
},
250
250
}),
251
+
newDynamicStructuredTool({
252
+
name: '_get_chat_list',
253
+
description: 'List all Lark groups the bot has joined. Returns chat_id, name, description, and other metadata for each group. Useful for broadcasting or for the user to pick a target chat.',
254
+
schema: z.object({
255
+
limit: z.number().optional().describe('Max number of chats to return (default 100).'),
256
+
sort_type: z.enum(['ByCreateTimeAsc','ByActiveTimeDesc']).optional().describe('Sort order. Defaults to "ByActiveTimeDesc".'),
257
+
name_keyword: z.string().optional().describe('If set, only return chats whose name contains this substring (case-insensitive).'),
description: 'Retrieve message history from the current Lark chat in reverse chronological order (newest first). To paginate older messages, pass the previous response\'s "oldest_time" attribute as the next call\'s "end_time".',
0 commit comments