agents: support the full run lifecycle and drop the classic agents fallback
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Start by reading the existing agents run command and its API client calls, then check api-client-go v0.17.3 for the platform Agents methods named in the issue. Trace where the classic agents endpoints are called so those fallbacks can be removed. Done means the CLI can start, poll, answer and cancel durable runs, and no agents subcommand calls a /rest/api/v1/agents/* endpoint.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
glean agents is platform-first, but agents run only creates a request-bound run and waits. The platform Agents API (GA) also supports the rest of the run lifecycle, and api-client-go v0.17.3 models it:
GET /api/agents/{agent_id}/runs/{run_id}:Glean.Agents.GetRunPOST /api/agents/{agent_id}/cancellations:Glean.Agents.CancelRunPOST /api/agents/{agent_id}/responses:Glean.Agents.RespondToRun(approval requests)execution_mode: DURABLEonPOST /api/agents/{agent_id}/runs: starts a persisted run and returns immediately
The CLI also still falls back to the classic agents endpoints (Client.Agents.List, Retrieve, RetrieveSchemas, Run). Those endpoints are deprecated, with removal scheduled for 2027-04-15.
Proposal
- Add
agents runs get,agents runs cancelandagents runs respond(exact names to be decided). - Let
agents runstart a durable run and print the run ID, for example with--durable. - Remove the classic agents fallback before 2027-04-15.
Done when
- A durable run can be started, polled, answered and cancelled from the CLI.
- No
agentssubcommand calls a/rest/api/v1/agents/*endpoint.
- Ngôn ngữ chính
- Go
- Star
- 65
- Fork
- 8
- Merge trung bình
- 5 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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 gleanwork/glean-cli
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
search: add glean search filtersĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
enhancement
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 56/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Tất cả issue của gleanwork/glean-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Azure/azure-storage-azcopy#3681 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Case detail: main-column section headers are hard to distinguish from body textCó thể đã có người làm @yubessy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ubie-oss/hecatoncheires#347 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
meilisearch/meilisearch-go#829 ·