InspectImageConfig class final

Configuration for the inspectImageTool vision model.

Constructors

InspectImageConfig({required String modelId, required String apiKey, String? baseUrl, int maxTokens = 4096, String providerKind = 'openai-completions', Client? httpClient})
Creates a configuration.
const

Properties

apiKey → String
API key for the vision provider.
final
baseUrl → String?
Optional base URL. When omitted the provider's default is used (OpenAI: https://api.openai.com/v1, Copilot: https://api.githubcopilot.com).
final
hashCode → int
The hash code for this object.
no setterinherited
httpClient → Client?
Optional HTTP client for testing.
final
maxTokens → int
Maximum tokens for the vision description.
final
modelId → String
Vision model id, e.g. gpt-4o or openai/gpt-4o.
final
providerKind → String
Provider adapter kind. openai-completions (OpenAI, OpenRouter, and any OpenAI-compatible endpoint) and copilot (GitHub token exchanged for the short-lived Copilot API token via streamCopilot) are supported today.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited