@nickyzj2023/utils
    Preparing search index...

    Type Alias Message

    type Message = {
        content: string | ContentPart[];
        name?: string;
        reasoning?: string | null;
        reasoning_content?: string | null;
        role: "system" | "user" | "assistant" | "tool" | "function";
        tool_call_id?: string;
        tool_calls?: ToolCall[];
    }
    Index

    Properties

    content: string | ContentPart[]
    name?: string
    reasoning?: string | null

    OpenRouter的思考字段

    reasoning_content?: string | null

    字节的思考字段

    role: "system" | "user" | "assistant" | "tool" | "function"
    tool_call_id?: string
    tool_calls?: ToolCall[]