ailoy-web
    Preparing search index...

    Interface SingleTextMessage

    A simplified form of [Message] for concise definition. All other members are identical to [Message], but contents is a String instead of Vec<Part>. This can be converted to Message via .into().

    interface SingleTextMessage {
        contents: string;
        id?: string;
        role: Role;
        signature?: string;
        thinking?: string;
        tool_calls?: Part[];
    }
    Index

    Properties

    contents: string

    Primary part of message in text.

    id?: string

    Optional stable identifier for deduplication or threading.

    role: Role

    Author of the message.

    signature?: string

    Optional signature for the thinking field.

    This is only applicable to certain LLM APIs that require a signature as part of the thinking payload.

    thinking?: string

    Internal “thinking” text used by some models before producing final output.

    tool_calls?: Part[]

    Tool-call parts emitted alongside the main contents.