Commit 07f7cb0
authored
refactor(jsonl-parser): replace _parse_tool_result if/elif with dispa… (#31)
* refactor(jsonl-parser): replace _parse_tool_result if/elif with dispatch table
Implement _TOOL_RESULT_DISPATCH as an ordered sequence of (predicate,
builder) pairs with explicit _tool_result_pred_* / _tool_result_build_*
helpers so new tool-result shapes register in one place. Preserve legacy
branch order and unknown fallback; no intentional behavior change.
* fix(jsonl-parser): safe web_search result_count + slug Optional typing (#29)
* docs: align Issue 29 guide with PR framing for #291 parent e0e0a76 commit 07f7cb0
2 files changed
Lines changed: 254 additions & 126 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
| |||
0 commit comments