function isMessage(
obj: any,
): obj is {
content: string;
role:
| "function"
| "agent"
| "tool"
| "user"
| "assistant"
| "developer"
| "system";
tool_call_id?: null | string;
tool_calls?:
| null
| { function: { arguments: string; name: string }; id: string }[];
};