import { AssistantContentPartTypes, MessageRoles } from './model'

export const GoatChainMessageTypes = [
  ...MessageRoles,
  ...AssistantContentPartTypes,
] as const

export type GoatChainMessageType = (typeof GoatChainMessageTypes)[number]

export function isGoatChainMessageType(v: string): v is GoatChainMessageType {
  return (GoatChainMessageTypes as readonly string[]).includes(v)
}
