mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-04-30 16:52:45 +08:00
feat: 支持@选择成员
This commit is contained in:
@@ -131,6 +131,13 @@ export interface ToolContext {
|
||||
timeFilter?: { startTs: number; endTs: number }
|
||||
maxMessagesLimit?: number
|
||||
ownerInfo?: { platformId: string; displayName: string }
|
||||
mentionedMembers?: Array<{
|
||||
memberId: number
|
||||
platformId: string
|
||||
displayName: string
|
||||
aliases: string[]
|
||||
mentionText: string
|
||||
}>
|
||||
locale?: string
|
||||
preprocessConfig?: PreprocessConfig
|
||||
}
|
||||
@@ -866,6 +873,15 @@ export const agentApi = {
|
||||
displayName: context.ownerInfo.displayName,
|
||||
}
|
||||
: undefined,
|
||||
mentionedMembers: context.mentionedMembers
|
||||
? context.mentionedMembers.map((member) => ({
|
||||
memberId: member.memberId,
|
||||
platformId: member.platformId,
|
||||
displayName: member.displayName,
|
||||
aliases: [...member.aliases],
|
||||
mentionText: member.mentionText,
|
||||
}))
|
||||
: undefined,
|
||||
locale: context.locale,
|
||||
preprocessConfig: context.preprocessConfig,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user