mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 11:49:02 +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 {
|
export interface CreateSessionMessageRequest {
|
||||||
content: string
|
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