APIEngine moduleContent quality / Brand fit / Runtime reliability

Image Selection Module API

Programmatic surfaces for this module: endpoints, functions, scripts, types, and configs.

Status

7 documented surfaces

API Surfaces

7

This list is intentionally concrete: surface label, location, and what it does.

Function

runImageSelectionPipeline(input): Promise<RunReport>

Function

Main pipeline entry point (validates SlotRequest, runs retrieval/scoring loop, returns RunReport).

Location: src/image_module/loop/orchestrator.ts

runImageSelectionPipeline(request)

Function

Public module export for the orchestrator entry point.

Location: src/image_module/index.ts

Type

SlotRequest (Zod schema + TS type)

Type

Validated input contract for selecting images for a slot.

Location: src/image_module/types.ts

RunReport (Zod schema + TS type)

Type

Output contract containing accepted/rejected candidates plus full audit log.

Location: src/image_module/types.ts

Script

scripts/find-images.ts

Script

CLI wrapper to run the pipeline with --slot-type and --context-file and write artifacts.

Location: scripts/find-images.ts

npm run test:image-module

Script

Runs the image-module-only test runner for CI isolation.

Location: package.json

Config

Repo profile presets, budgets, and thresholds

Config

Defaults for slot presets, budgets, timeouts, and score thresholds.

Location: src/image_module/repo_profile.json

Sources

File references that anchor this module and its API surfaces.

docs/pipeline-contract.md
src/image_module/types.ts
src/image_module/repo_profile.json
Image Selection Module API | Bouncebeam Documentation