Feature Request: allow the host application to supply files and documents as session context
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- api, backend-api-design
Hướng nghiên cứu
Issue không xác định tệp, bài kiểm thử hoặc điểm vào nào. Hãy bắt đầu bằng cách xác định các API tạo session và các lượt tiếp theo, sau đó theo dõi cách các tài nguyên sẽ được nạp vào và báo cáo. Công việc được xem là hoàn tất khi các tài nguyên văn bản và nhị phân được đính kèm hoạt động mà không cần các commit trong repository, đồng thời các tài nguyên không được hỗ trợ, quá lớn hoặc không thể truy cập tạo ra kết quả có thể hành động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
A session can be given a prompt and a repository. It cannot be given the surrounding material that motivated the work: a specification, a design document, a log file, a crash dump, a screenshot, or a prior conversation transcript. That material typically lives outside source control and should not be committed to the repository merely to make the agent aware of it.
Today the only reliable workaround is to paste the content into the prompt, which loses fidelity and structure for anything that is not plain text, or to commit the file to the repository, which pollutes history with transient artifacts.
What is missing
- No API for attaching arbitrary files or binary content to a session as first-class resources.
- No way to supply an external transcript or prior conversation as additional grounding.
- No feedback about which supplied resources were actually read, skipped, or rejected.
Proposed behavior
- Session creation and subsequent turns accept a list of context resources, each with content or a resolvable reference, a MIME type, and a display name.
- Supplied resources are available to the agent for reading and are distinguishable from repository files.
- The session reports, per resource, whether it was ingested successfully; failures state the reason, such as unsupported type, size limit, or missing permission.
- Size and count limits are documented and enforced predictably.
Example scenario
A caller supplies a design document and two log files alongside a prompt asking the agent to determine whether the implementation matches the design and to explain a failure visible in the logs.
Acceptance criteria
- Files and binary content can be attached to a session without committing them to the repository.
- Attached resources are readable by the agent and reported in the session result.
- Ingestion failures are explicit and actionable.
Related
- #2349 — attachments silently ignored in one command path; this request covers the general capability.
- Ngôn ngữ chính
- Java
- Star
- 10.5k
- Fork
- 1.5k
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 133
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/copilot-sdk
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/copilot-sdk#2709 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
github/copilot-sdk#2673 ·
-
bug testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/copilot-sdk#2628 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/copilot-sdk#2627 · 1 bình luận ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
github/copilot-sdk#2493 ·
Tất cả issue của github/copilot-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
infinispan/infinispan#18150 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
opensearch-project/k-NN#3597 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100