Commit f4d366f
authored
[Hotfix] Bump version to v1.0.0b2 and fix KeyError when only one tool call message is received (#246)
## Description
This PR updates the project version to **v1.0.0b2** and includes a bug
fix in the Agentscope message stream adapter:
- **Version bump**:
- `pyproject.toml` updated from `1.0.0b1` → `1.0.0b2`
- `__version__` in `version.py` updated accordingly
- **Bug fix – Tool call KeyError**:
- In scenarios where only a single tool call message is yielded, the
previous implementation could raise a `KeyError` when retrieving from
`tool_use_messages_dict`.
- Updated logic to use `.get()` and construct a new `PLUGIN_CALL`
message when the call ID is missing from the dictionary.
- Prevents runtime errors and ensures proper streaming of partial tool
call messages.
- **Cleanup**:
- Removed debug `print` statements from `sandbox_manager.py` for cleaner
logs.
**Impact:**
This improves stability when handling tool use messages in edge cases
and prepares the release for **v1.0.0b2**.
## Type of Change
- [x] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation
- [ ] Refactoring
## Component(s) Affected
- [x] Engine
- [ ] Sandbox
- [ ] Tools
- [ ] Common
- [ ] Documentation
- [ ] Tests
- [ ] CI/CD
## Checklist
- [x] Pre-commit hooks pass
- [x] Tests pass locally
- [x] Documentation updated (if needed)
- [x] Ready for review1 parent 4849b60 commit f4d366f
File tree
4 files changed
+37
-8
lines changed- src/agentscope_runtime
- adapters/agentscope
- sandbox/manager
4 files changed
+37
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
258 | 290 | | |
259 | 291 | | |
260 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | 463 | | |
467 | 464 | | |
468 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
0 commit comments