Commit cbcd8f1
feat: implement thinking events support for AG-UI protocol
Implements complete support for thinking events in the Kotlin SDK:
- Add 5 new thinking event types: THINKING_START, THINKING_END,
THINKING_TEXT_MESSAGE_START, THINKING_TEXT_MESSAGE_CONTENT,
THINKING_TEXT_MESSAGE_END
- Add comprehensive event validation with state machine logic
- Create full test suite with 40 test cases covering valid/invalid sequences
- Add JSON serialization support for all thinking events
- Ensure 100% test coverage with all 98 tests passing
Thinking events enable AI agents to represent internal reasoning
processes in the AG-UI protocol, following the same patterns as
text messages but within thinking contexts.
Fixes #61
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 8335f1a commit cbcd8f1
File tree
4 files changed
+962
-13
lines changed- kotlin-sdk/library
- client/src
- commonMain/kotlin/com/agui/client/verify
- commonTest/kotlin/com/agui/client/verify
- core/src
- commonMain/kotlin/com/agui/core/types
- commonTest/kotlin/com/agui/tests
4 files changed
+962
-13
lines changedLines changed: 69 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
72 | 90 | | |
73 | 91 | | |
74 | 92 | | |
| |||
205 | 223 | | |
206 | 224 | | |
207 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
208 | 276 | | |
209 | 277 | | |
210 | 278 | | |
| |||
0 commit comments