Repository navigation
[Automated] Draft docs (kagent): feat: Send PDF and Office files to Responses API models end-to-end - #648
Open
github-actions[bot] wants to merge 1 commit into
Open
[Automated] Draft docs (kagent): feat: Send PDF and Office files to Responses API models end-to-end#648github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
…esponses API models end-to-end Signed-off-by: GitHub Action <action@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kagent-dev/kagent#3200 — feat: Send PDF and Office files to Responses API models end-to-end
Docs versions:
1.x(first shipped in v1.0.0-alpha16)No code-path rule covers 3 touched file(s). The planner could route these only by identifier search, so the candidate pages may miss what they changed, including in the other mode:
go/adk/pkg/fileextract/llm.goui/package.jsonui/yarn.lockWhat changes for users: In the UI and A2A clients, users can send PDF, Word, Excel, and PowerPoint files to agents that use an OpenAI or Azure OpenAI ModelConfig with
apiFormat: responses. Public file links can reach Responses API and Gemini models as URL parts, while other models keep the URL as text for a fetch tool.What the docs now say: The OpenAI provider page now explains file and link handling for
openAI.apiFormat: responses, including the 50 MB request cap, the supported inline file types, the unsupported-link error, and how named attachments are represented. The A2A guide now states that the file part shape also applies toSendStreamingMessage.Not verified: Configuration is unrun in this job; internal links are unchecked.
How
kagent-3200was drafted, and what was not verifiedPlan, and what changed it
launch-ui.mdanda2a-agents.mdalready covered most file behavior, butopenai.mddid not describeopenAI.apiFormat: responsesfile input anda2a-agents.mddid not nameSendStreamingMessage.Why a documentation change is necessary
The pull request changes how file inputs reach models. The UI now accepts PDF and Office attachments, links in message text can become A2A URL parts, and the OpenAI Responses API path sends PDF and Office bytes as provider file input instead of falling back to extracted text. The existing UI and A2A pages covered much of the reader workflow, but the OpenAI provider page did not say what
apiFormat: responseschanges for files.What changed on disk
docs-site/content/kagent/1.x/examples/a2a-agents.md: Clarifies that file parts use the same shape withSendStreamingMessage.docs-site/content/kagent/1.x/setup/model-providers/openai.md: Adds OpenAI Responses API file-input behavior, supported file types, link handling, and the 50 MB request cap.How to verify this change
openAI.apiFormat: responses, and create an Agent that references it.SendStreamingMessagerequest, send a PDF or.docx,.xlsx, or.pptxfile. The model should answer from the file contents instead of receiving the could-not-be-read note.http://orhttps://file link in the message text. A Responses API or Gemini model should fetch the link on that turn; a model that cannot fetch links should receive the URL as text.Proposed release note
No
proposed-release-note.md:markers.notes_placeableis false.PDF and Office file input for Responses API models
The kagent UI and A2A clients can now send PDF, Word, Excel, and PowerPoint files to agents that use OpenAI or Azure OpenAI with
apiFormat: responses. Supported public file links are sent as URL parts for Responses API and Gemini models, while other models keep the URL as text for a fetch tool.What was not verified
How the pages were chosen (triage report)
Feature clusters
These clusters look incomplete. Each names a pull request this run never saw, so documenting the cluster as it stands may describe half a feature — the classic failure is a guide telling a reader to set a field that a later change gave a default. Read the absent pull request before drafting:
Draft a documentation change
kagent-dev/kagent#3200 — feat: Send PDF and Office files to Responses API models end-to-end
kagent-dev/websitego/adk/pkg/fileextract/llm.goui/package.jsonui/yarn.lockDraft branch:
pr-tracker-draft-kagent-3200