Commit f8c70c2
authored
fix: Introduce LLM wait time (#577)
## 📝 Pull Request Template
### 1. Related Issue
Closes # (issue number)
### 2. Type of Change (select one)
Type of Change: Bug Fix
### 3. Description
Previously, the LLM invocation within the compose method was not subject
to a specific timeout, which could lead to indefinite blocking if the
underlying LLM service failed to respond or was extremely slow.
This change Adds max_llm_wait_time, which defaults to 10 minutes to
ensure that the LLM composition process will time out after the
configured duration, preventing the agent from being stuck indefinitely
and allowing for graceful error handling.
### 4. Testing
- [x] I have tested this locally.
- [ ] I have updated or added relevant tests.
### 5. Checklist
- [x] I have read the [Code of Conduct](./CODE_OF_CONDUCT.md)
- [x] I have followed the [Contributing Guidelines](./CONTRIBUTING.md)
- [x] My changes follow the project's coding style1 parent 67348b9 commit f8c70c2
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
203 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
0 commit comments