kdeps-events-chat-retries
v1.0.1kdeps event: chat-retries
set events / shelf guardrails
PurposeThresholds the agent loop watches - tokens, rounds, bytes, repeated calls - and the action each runs when crossed.
LLM context: none - kdeps uses it without sending it to the model
Where it runs
Part of the events set, used in workflow and agent mode. Thresholds the agent loop watches - tokens, rounds, bytes, repeated calls - and the action each runs when crossed.
- the agent loop runs a turn
- kdeps measures tokens, rounds and calls
- an event's trigger is metevents/chat-retries
- its action runs
- the turn continues
Loaded by: kdeps (agent loop), kdeps new, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update, kdeps upgrade
In the code: kdeps (agent loop)executor.(*Engine).Executeparallel.Runagent.(*Loop).startSubagentsagent.eventPatternMatch
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Also installs what it requires, when missing or older: actions/cap.
Pin a version with kdeps install events/chat-retries@<version>.
Contents
- name
- chat-retries
- items
- 3
- run
- cap
requires:
actions/cap: ""
version: 1.0.1
# kdeps installs these with this event: the action it runs
requires:
actions/cap: ""
name: chat-retries
# Retries of a workflow chat's model call after a transient failure (rate
# limit, 5xx, dropped connection), with doubling backoff. A chat's
# model.retries overrides it; model.retries: 0 turns retrying off.
items: 3
run: cap
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 1.0.1 | 11/26/2026 | active | GitHub v1.0.1 |
| 1.0.0 | 11/21/2026 | active | GitHub v1.0.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.1
- Published
- 11/21/2026