Repository navigation
Labels
Description
Summary
The Go ADK now forwards image FileParts on user messages to the configured LLM as an OpenAI-compatible image_url content part, so an ADK agent can read images (for example a captcha) when the operator configures a vision-capable model. Implemented in inference-gateway/adk#325 (closes inference-gateway/adk#117).
Behavior to document:
- A client attaches an image with
types.CreateFilePart(name, "image/png", &base64Bytes, nil)or withfileWithUri. fileWithBytesis inlined as adata:<mediaType>;base64,<bytes>URL;fileWithUriis passed through unchanged, so the provider itself must be able to fetch that URL.- Text and image parts are sent in the same order they appear in the A2A message.
- Only
image/*on user-role messages is forwarded. Other media types (PDF, audio) are skipped, and agent-role file parts are never sent, because OpenAI-compatible assistant messages cannot carry images. - The operator picks the model via
AGENT_CLIENT_MODEL. A model without vision support rejects the request and the task ends asfailedwith the provider error. - Agents that accept images should advertise them on the agent card, e.g.
DefaultInputModes: ["text/plain", "image/png"]. - Works with
WithDefaultTaskHandlers()and with custom handlers callingRunWithStream, no extra configuration.
Affected pages: the Go ADK / A2A agent-building guides (message parts, LLM/model configuration, agent card input modes).
Acceptance Criteria
- A short "sending images to an agent" section with the client snippet
- Note that a vision-capable model must be configured, and that a non-vision model fails the task with the provider error
- Note the
DefaultInputModesguidance for image-accepting agents - Note the
fileWithUrireachability caveat (internal artifact-server URLs are typically not reachable by hosted providers)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Sep 26, 2026
@claude Can you document this?
inference-gateway-maintainer commentedon Sep 26, 2026
Claude finished @edenreich's task in 1m 43s —— View job •
docs/issue-810-20260926-0103• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-810-20260926-0103?quick_pull=1&title=Issue%20%23810%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23810%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented image input for ADK agents
adk.md, new### Sending images to an agentunder The A2A clientbun run lint:md,bun run format:check,bun run build- all passCovers all four acceptance criteria: the client snippet with
types.CreateFilePart, the vision-model requirement andfailedtask on a non-vision model,DefaultInputModesguidance, and thefileWithUrireachability caveat (internal artifact-server URLs are usually unreachable from hosted providers).PR: #811
| Branch
inference-gateway-releaser commentedon Sep 26, 2026
🎉 This issue has been resolved in version 0.9.17 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀