macro_api
Version:
A comprehensive, production-ready API toolkit for various services including Stripe, Slack, SendGrid, Vercel, AWS S3, Docker Hub, and more.
25 lines (24 loc) • 574 B
TypeScript
export default interface Message {
role: 'system' | 'user' | 'assistant' | 'function' | 'tool';
content: string | null | Array<{
type: 'text' | 'image_url';
text?: string;
image_url?: {
url: string;
detail?: 'low' | 'high' | 'auto';
};
}>;
name?: string;
function_call?: {
name: string;
arguments: string;
};
tool_calls?: Array<{
id: string;
type: 'function';
function: {
name: string;
arguments: string;
};
}>;
}