Manta Developers
GitHub
Menu

@manta-eu/client/shared/chat-turn-errors

Reference for @manta-eu/client/shared/chat-turn-errors as it is on main.

Type Aliases

ChatTurnErrorMessage

ChatTurnErrorMessage = z.infer<typeof chatTurnErrorMessageSchema>

Variables

chatTurnErrorMessages

const chatTurnErrorMessages: object

Type Declaration

contextOverflow

readonly contextOverflow: "This chat has become too long to continue." = "This chat has become too long to continue."

conversationScope

readonly conversationScope: "This chat can't be used with the currently selected datastore." = "This chat can't be used with the currently selected datastore."

customAppAllowance

readonly customAppAllowance: "This app has used its daily chat allowance; try again tomorrow." = "This app has used its daily chat allowance; try again tomorrow."

customAppDeleted

readonly customAppDeleted: "This app's chat is no longer available." = "This app's chat is no longer available."

customAppPersonAllowance

readonly customAppPersonAllowance: "You have used today's chat allowance in this app; try again tomorrow." = "You have used today's chat allowance in this app; try again tomorrow."

customAppTurnLimit

readonly customAppTurnLimit: "Too many messages too quickly; wait a minute and try again." = "Too many messages too quickly; wait a minute and try again."

customAppUserRemoved

readonly customAppUserRemoved: "Your access to this app's chat has ended." = "Your access to this app's chat has ended."

messageNotSaved

readonly messageNotSaved: "Manta couldn't complete this response, and your message may not have been saved. Please send it again." = "Manta couldn't complete this response, and your message may not have been saved. Please send it again."

unexpected

readonly unexpected: "Manta couldn't complete this response. Please try again." = "Manta couldn't complete this response. Please try again."


chatTurnErrorMessageSchema

const chatTurnErrorMessageSchema: ZodEnum<{ Manta couldn't complete this response, and your message may not have been saved. Please send it again.: "Manta couldn't complete this response, and your message may not have been saved. Please send it again."; Manta couldn't complete this response. Please try again.: "Manta couldn't complete this response. Please try again."; This app has used its daily chat allowance; try again tomorrow.: "This app has used its daily chat allowance; try again tomorrow."; This app's chat is no longer available.: "This app's chat is no longer available."; This chat can't be used with the currently selected datastore.: "This chat can't be used with the currently selected datastore."; This chat has become too long to continue.: "This chat has become too long to continue."; Too many messages too quickly; wait a minute and try again.: "Too many messages too quickly; wait a minute and try again."; You have used today's chat allowance in this app; try again tomorrow.: "You have used today's chat allowance in this app; try again tomorrow."; Your access to this app's chat has ended.: "Your access to this app's chat has ended."; }>

Functions

resolveChatTurnErrorMessage()

resolveChatTurnErrorMessage(error): "This chat can't be used with the currently selected datastore." | "This chat has become too long to continue." | "Manta couldn't complete this response, and your message may not have been saved. Please send it again." | "Manta couldn't complete this response. Please try again." | "Too many messages too quickly; wait a minute and try again." | "You have used today's chat allowance in this app; try again tomorrow." | "This app has used its daily chat allowance; try again tomorrow." | "Your access to this app's chat has ended." | "This app's chat is no longer available."

Parameters

error

unknown

Returns

"This chat can't be used with the currently selected datastore." | "This chat has become too long to continue." | "Manta couldn't complete this response, and your message may not have been saved. Please send it again." | "Manta couldn't complete this response. Please try again." | "Too many messages too quickly; wait a minute and try again." | "You have used today's chat allowance in this app; try again tomorrow." | "This app has used its daily chat allowance; try again tomorrow." | "Your access to this app's chat has ended." | "This app's chat is no longer available."