//#region src/domains/run/types/chat.d.ts
type ContentItem = {
  type: string;
  text?: string;
};
type Message = {
  role: 'system' | 'user' | 'assistant' | 'function' | 'tool';
  content: string | ContentItem[];
  name?: string;
};
type ChatCompletionRequest = {
  model: string;
  messages: Message[];
  temperature?: number;
  top_p?: number;
  n?: number;
  stream?: boolean;
  max_tokens?: number;
  presence_penalty?: number;
  frequency_penalty?: number;
  logit_bias?: Record<string, number>;
  user?: string;
  tools?: Record<string, unknown>;
  runConfig?: Record<string, unknown>;
};
//#endregion
export { ChatCompletionRequest, ContentItem, Message };