Expand description
Image generation tool — wraps the image_gen provider behind AgentTool.
Action-based (mirrors LobeHub’s 4-API builtin tool, pared down to the synchronous Phase-1 surface):
generate— generate images from a prompt.list_models— echo the configured provider/model (availability check).
The provider, base URL, and default model come from [image-gen] config.
The API key is resolved via CredentialStore using the same chain as
the chat engine — no separate credential is needed.
Config is read once at construction (a boot-time snapshot via
kernel.infra.config()); the tool registers per-agent, so Phase-1 does
not need hot-reload.
Structs§
- Image
Generation Tool - Agent tool for image generation (Phase 1: OpenAI-compatible providers).