@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<typeofchatTurnErrorMessageSchema>
Variables
chatTurnErrorMessages
constchatTurnErrorMessages:object
Type Declaration
contextOverflow
readonlycontextOverflow:"This chat has become too long to continue."="This chat has become too long to continue."
conversationScope
readonlyconversationScope:"This chat can't be used with the currently selected datastore."="This chat can't be used with the currently selected datastore."
customAppAllowance
readonlycustomAppAllowance:"This app has used its daily chat allowance; try again tomorrow."="This app has used its daily chat allowance; try again tomorrow."
customAppDeleted
readonlycustomAppDeleted:"This app's chat is no longer available."="This app's chat is no longer available."
customAppPersonAllowance
readonlycustomAppPersonAllowance:"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
readonlycustomAppTurnLimit:"Too many messages too quickly; wait a minute and try again."="Too many messages too quickly; wait a minute and try again."
customAppUserRemoved
readonlycustomAppUserRemoved:"Your access to this app's chat has ended."="Your access to this app's chat has ended."
messageNotSaved
readonlymessageNotSaved:"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
readonlyunexpected:"Manta couldn't complete this response. Please try again."="Manta couldn't complete this response. Please try again."
chatTurnErrorMessageSchema
constchatTurnErrorMessageSchema: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."