Commit 4a8ee72
fix: address Copilot review - empty name handling and type annotation
- _sanitize_author_name returns None for empty string (avoids invalid
OpenAI name field that doesn't match ^[^\s<|\\/>]+$ regex)
- Fix create_agents return type: dict[str, Agent] not list[Agent]
- Update test assertion to match new empty-string behavior
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b9979a7 commit 4a8ee72
3 files changed
Lines changed: 5 additions & 3 deletions
File tree
- src/processor/src
- libs
- agent_framework
- base
- tests/unit/libs/agent_framework
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments