ART Framework API Docs
    Preparing search index...

    Type Alias ArtStandardMessageRole

    ArtStandardMessageRole:
        | "system"
        | "user"
        | "assistant"
        | "tool_request"
        | "tool_result"
        | "tool"

    Defines the standard roles for messages within the ArtStandardPrompt format.

    These roles are chosen for broad compatibility across major LLM providers (like OpenAI, Anthropic, Gemini). Provider Adapters are responsible for translating these standard roles into the specific formats required by their respective APIs (e.g., 'assistant' might become 'model' for Gemini).

    • system: Instructions or context provided to the AI, typically at the beginning.
    • user: Input or queries from the end-user. Also used to wrap tool_result content for some providers (e.g., Gemini).
    • assistant: Responses generated by the AI model. Can contain text content and/or tool_calls.
    • tool_request: Represents the LLM's request to use tools (often implicitly part of an assistant message with tool_calls). Included for potential future explicit use.
    • tool_result: The outcome (output or error) of executing a requested tool call.