Skip to content

FrontendImageInjectionOptions

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/frontendImageInjectionMiddleware.ts:36

provider: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/frontendImageInjectionMiddleware.ts:45

Provider selecting the vision-block shape. Derived by the registry factory from gthConfig.modelProviderType (the raw llm.type), falling back to llm._llmType(). One of gth’s provider strings (anthropic, openai, openrouter, deepseek, xai, groq, ollama, google-genai, vertexai, huggingface, …) or a model class’s own _llmType() label, which is a different namespace and need not coincide with any of them (google, xai-responses); unknown values fall to the standard base64 block.


optional toolName?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/middleware/frontendImageInjectionMiddleware.ts:50

Tool name whose {mimeType,data} result is converted into a vision message. Defaults to DEFAULT_CAPTURE_TOOL_NAME (capture_image).