Mayson Monorepo Documentation
    Preparing search index...

    Interface AIMessageWithToolsResponse

    Message with tool calls response

    interface AIMessageWithToolsResponse {
        text: string;
        toolCalls: AIToolCall[];
        finishReason: "stop" | "tool_calls" | "length" | "content_filter";
        usage: AITokenUsage;
        cost: number;
        costBreakdown: AICostBreakdown;
    }
    Index

    Properties

    text: string

    Text content (if any)

    toolCalls: AIToolCall[]

    Tool calls to execute

    finishReason: "stop" | "tool_calls" | "length" | "content_filter"

    Whether AI wants to stop or continue

    Token usage

    cost: number

    Cost in USD

    costBreakdown: AICostBreakdown

    Detailed cost breakdown