agents: support the full run lifecycle and drop the classic agents fallback

Đang mở
#169 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
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ệ
go
Lĩnh vực
api, cli

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ả

enhancement

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.GetRun
  • POST /api/agents/{agent_id}/cancellations: Glean.Agents.CancelRun
  • POST /api/agents/{agent_id}/responses: Glean.Agents.RespondToRun (approval requests)
  • execution_mode: DURABLE on POST /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 cancel and agents runs respond (exact names to be decided).
  • Let agents run start 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 agents subcommand 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gleanwork/glean-cli

Tất cả issue của gleanwork/glean-cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.