UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

17 lines • 1 kB
/** Which image-generation surface owns the current request. */ export type ImageGenMode = "native" | "client" | "unavailable"; export declare const NATIVE_IMAGE_GEN_TOOL_TYPE = "image_generation"; /** * Enforces mutual exclusion between the client `generate_image` function tool * and the OpenAI Responses `image_generation` server tool at the wire level. * * Native entries are always removed first, so a payload that already carries one * (a replayed request, a second injector, a dated tool variant) can never end up * with duplicates and never leaks to a backend that does not implement it. The * injected entry pins `model`: without it the Responses API falls back to * gpt-image-1. When nothing changes the ORIGINAL payload reference is returned, * because payload hooks chain and an unconditional copy would defeat identity * checks downstream. */ export declare function applyImageGenerationTools(payload: unknown, mode: ImageGenMode): unknown; //# sourceMappingURL=inject.d.ts.map