Add a per-run limit for tool calls
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 67/100
Direzione di ricerca
Start by locating the Go tool loop and its existing iteration limit, then compare the requested behavior with Python's max_function_calls. Add a per-run call budget that is checked between iterations without interrupting a batch already in progress, and verify that runs cannot exceed the configured total across iterations.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I noticed Go has an iteration limit for the tool loop, but I couldn't find a way to cap the total number of tool calls in a single run.
Those aren't quite the same thing when the model returns several tool calls in one turn. A run can stay within the iteration limit and still make a lot of external calls.
Would be nice to have something similar to Python's max_function_calls on the Go side.
This would be especially useful for tools hitting paid APIs or other external services, where having a simple call budget is a useful safety net.
I don't think it needs to interrupt a batch that's already running - matching the Python behavior and applying the limit between iterations seems reasonable.
- Lingua principale
- Go
- Stelle
- 659
- Fork
- 67
- Merge medio
- 18h 49m
- PR unite (30g)
- 81
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 microsoft/agent-framework-go
-
[aw] Upgrade availableApertaagentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoft/agent-framework-go#1350 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/agent-framework-go#1348 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
microsoft/agent-framework-go#1327 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
microsoft/agent-framework-go#1164 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
microsoft/agent-framework-go#1163 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/agent-framework-go
Issue simili
-
[v3] KeyBindingManager calls (Add/Remove) are not converted into a case-insensitive accelerator.KeyApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
runtime: usleep sleeps nanoseconds instead of microseconds on linux/mips and linux/mips64Forse già presa @BRobertson7 l’ha presa oggi. Apertacompiler/runtime
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
golang/go#82913 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
aws/aws-sdk-go-v2#3625 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
adrianbrad/queue#92 ·