Documentation Index
Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Function: isMessage()
function isMessage(
obj: any,
): obj is {
content:
| string
| ({ text: string; type: "text" } | { file_id: string; type: "file" })[];
role:
| "function"
| "agent"
| "tool"
| "assistant"
| "developer"
| "system"
| "user";
tool_call_id?: null | string;
tool_calls?:
| null
| { function: { arguments: string; name: string }; id: string }[];
};
Defined in: src/types/message.types.ts
Parameters
obj
any
Returns
obj is { content: string | ({ text: string; type: “text” } | { file_id: string; type: “file” })[]; role: “function” | “agent” | “tool” | “assistant” | “developer” | “system” | “user”; tool_call_id?: null | string; tool_calls?: null | { function: { arguments: string; name: string }; id: string }[] }