interface GenerateAiPromptCompletionRequest {
    resources:
        | AiPromptResourceWithPreTranslate
        | AiPromptResourceWithAssist
        | AiPromptResourceWithAlignment
        | AiPromptResourceWithCustom;
    tool_choice?: string | PlainObject;
    tools?: {
        tool: {
            function: {
                description?: string;
                name: string;
                parameters?: PlainObject;
            };
            type: "function";
        };
    }[];
}

Properties

tool_choice?: string | PlainObject
tools?: {
    tool: {
        function: {
            description?: string;
            name: string;
            parameters?: PlainObject;
        };
        type: "function";
    };
}[]