export function tools(webSearchEnabled, imageOptions) {
    return [
        ...(webSearchEnabled ? [{ type: "web_search" }] : []),
        { type: "image_generation", ...imageOptions },
    ];
}
export function toolTypes(requestTools) {
    return requestTools.map((tool) => tool.type);
}
export function imageToolChoice(forceImageTool) {
    return forceImageTool ? { type: "image_generation" } : "required";
}
export function imageToolChoiceKind(choice) {
    return choice === "required" ? "required" : "image_generation";
}
