Commit ed28b59
fix(rest): send
**What**
Ensure `history_length=0` results in `?historyLength=0` being sent by
the REST client.
**Why**
`0` was treated as falsy → the param was omitted → servers returned the
full history.
**How**
Replace truthy check with explicit `is not None`.
**Ref**
- Permalink:
https://github.com/a2aproject/a2a-python/blob/4a4b4a92d7fce6db02f397753ce3ec0dfcd8a597/src/a2a/client/transports/rest.py#L217
Fixes #479
Co-authored-by: asechi_tadaki <[email protected]>historyLength=0 (avoid falsy omission) (#480)1 parent 4a4b4a9 commit ed28b59
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments