Skip to content

feat: support file upload in agent chat - #2429

Open
supreme-gg-gg wants to merge 6 commits into
kagent-dev:release/v0.10.xfrom
supreme-gg-gg:feat/file-parts
Open

feat: support file upload in agent chat#2429
supreme-gg-gg wants to merge 6 commits into
kagent-dev:release/v0.10.xfrom
supreme-gg-gg:feat/file-parts

Conversation

@supreme-gg-gg

@supreme-gg-gg supreme-gg-gg commented Aug 12, 2026

Copy link
Copy Markdown
Contributor
  • Forward non-image file parts through Go model adapters instead of silently dropping them
  • Add chat UI file attach (paperclip, drag/drop, history chips) for Go declarative agents only
  • Demo video is attached in a comment below

Current support matrix:

Provider Native images Native documents
OpenAI (CC / Azure / Foundry) image/* PDF only, text extracted from text files
OpenAI (Responses) image/* PDF, text, markdown, csv, html, json, word, pptx, etc.
Anthropic image/* PDF, text/plain, text/markdown
Bedrock png/jpeg/gif/webp pdf, txt, md, csv, html, doc/docx, xls/xlsx
Ollama image/* only

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
Copilot AI lite review requested due to automatic review settings August 12, 2026 00:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the enhancement New feature or request label Aug 12, 2026
@supreme-gg-gg

Copy link
Copy Markdown
Contributor Author
input.mp4

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@iplay88keys

Copy link
Copy Markdown
Contributor

Tested locally with a PDF and gpt-4.1-mini:
image

@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Aug 12, 2026
Comment thread ui/src/components/chat/ChatInterface.tsx Outdated
Comment thread ui/src/components/chat/ChatInterface.tsx Outdated
Comment thread go/adk/pkg/models/bedrock.go
Comment thread ui/src/components/chat/ChatInterface.tsx Outdated
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Aug 12, 2026
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Aug 12, 2026
iplay88keys
iplay88keys previously approved these changes Aug 13, 2026

@iplay88keys iplay88keys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some extra validation, but nothing blocking.

Comment thread ui/src/components/chat/ChatInterface.tsx
Comment thread go/adk/pkg/models/file_parts.go
Comment thread ui/src/components/chat/ChatInterface.tsx Outdated
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants