feat(toolList): add enums for message filter options
- Added enum values for 'has', 'authorType', 'sortBy', and 'sortOrder'
This commit is contained in:
parent
70c4843d9e
commit
cdff846b2a
|
|
@ -82,7 +82,7 @@ export const toolList = [
|
|||
forumChannelId: { type: "string" },
|
||||
title: { type: "string" },
|
||||
content: { type: "string" },
|
||||
tags: {
|
||||
tags: {
|
||||
type: "array",
|
||||
items: { type: "string" }
|
||||
}
|
||||
|
|
@ -312,14 +312,14 @@ export const toolList = [
|
|||
content: { type: "string", description: "Search for messages containing specific text" },
|
||||
authorId: { type: "string", description: "Filter messages by a specific user ID" },
|
||||
mentions: { type: "string", description: "Filter messages that mention a specific user ID" },
|
||||
has: { type: "string", description: "Filter messages that contain specific content types (e.g., link, embed, file, poll, image, video, sound, sticker, snapshot)" },
|
||||
has: { type: "string", description: "Filter messages that contain specific content types (e.g., link, embed, file, poll, image, video, sound, sticker, snapshot)", enum: ["link", "embed", "file", "poll", "image", "video", "sound", "sticker", "snapshot"] },
|
||||
maxId: { type: "string", description: "Filter messages with IDs less than this value (messages before this ID)" },
|
||||
minId: { type: "string", description: "Filter messages with IDs greater than this value (messages after this ID)" },
|
||||
channelId: { type: "string", description: "Filter messages within a specific channel ID" },
|
||||
pinned: { type: "boolean", description: "Filter messages based on whether they are pinned" },
|
||||
authorType: { type: "string", description: "Filter messages by author type (user, bot, webhook)" },
|
||||
sortBy: { type: "string", description: "Sort results by 'timestamp' or 'relevance'" },
|
||||
sortOrder: { type: "string", description: "Sort order: 'desc' for descending or 'asc' for ascending" },
|
||||
authorType: { type: "string", description: "Filter messages by author type (user, bot, webhook)", enum: ["user", "bot", "webhook"] },
|
||||
sortBy: { type: "string", description: "Sort results by 'timestamp' or 'relevance'", enum: ["timestamp", "relevance"] },
|
||||
sortOrder: { type: "string", description: "Sort order: 'desc' for descending or 'asc' for ascending", enum: ["desc", "asc"] },
|
||||
limit: { type: "number", description: "Maximum number of messages to return (default 25, max 100)" },
|
||||
offset: { type: "number", description: "Number of messages to skip (for pagination)" }
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue