mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 15:44:28 +00:00
feat(chatbot): remove agentId from request and resolve it via team settings, toggle chatbot icon with tooltip guard
This commit is contained in:
@@ -3,7 +3,6 @@ import type { AgentMessage } from '@earendil-works/pi-agent-core'
|
||||
|
||||
export const chatRequestSchema = z
|
||||
.object({
|
||||
agentId: z.string(),
|
||||
textPrompt: z.string().optional(),
|
||||
attachedFiles: z.array(z.string()).optional(), // Uploaded file asset IDs
|
||||
assetIds: z.array(z.string()).optional(), // Workspace file/folder IDs referenced
|
||||
|
||||
@@ -76,6 +76,10 @@ export const updateTeamSettingsRequestSchema = z.discriminatedUnion('key', [
|
||||
key: z.literal('transcode.videoStrategy'),
|
||||
value: z.nativeEnum(VideoTranscodeStrategy),
|
||||
}),
|
||||
z.object({
|
||||
key: z.literal('chatbotAgentId'),
|
||||
value: z.string().nullable(),
|
||||
}),
|
||||
])
|
||||
export type UpdateTeamSettingsRequest = z.infer<typeof updateTeamSettingsRequestSchema>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user