mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 12:51:26 +08:00
feat(types): add AgentServerError schema for error handling
This commit is contained in:
parent
219844cb74
commit
a264fd42e4
@ -158,3 +158,11 @@ export type GetAgentSessionResponse = z.infer<typeof GetAgentSessionResponseSche
|
||||
export interface CreateSessionMessageRequest {
|
||||
content: string
|
||||
}
|
||||
|
||||
export const AgentServerErrorSchema = z.object({
|
||||
message: z.string(),
|
||||
type: z.string(),
|
||||
code: z.string()
|
||||
})
|
||||
|
||||
export type AgentServerError = z.infer<typeof AgentServerErrorSchema>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user