agents: support the full run lifecycle and drop the classic agents fallback
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 65
- Fork
- 8
- Merge medio
- 5g 7h
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di gleanwork/glean-cli
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
enhancement
Difficoltà 4/5 1-2 giorni Idoneità per principianti 56/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Tutte le issue di gleanwork/glean-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Azure/azure-storage-azcopy#3681 ·
I maintainer di solito rispondono entro 2 giorni
-
Case detail: main-column section headers are hard to distinguish from body textForse già presa @yubessy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ubie-oss/hecatoncheires#347 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
meilisearch/meilisearch-go#829 ·