Commit 42e0023
committed
feat(sendblue): expose tapback action to the agent via send_message
The adapter's outbound send_reaction() (patch NousResearch#3) was reachable from
gateway code but invisible to the agent — no tool surface, and the
inbound message_handle (already on MessageEvent / SessionSource) was
never injected into the model-visible session-context block.
- gateway/session.py: Platform.SENDBLUE branch with iMessage notes plus
a triggering-message-handle IDs block (current turn only).
- tools/send_message_tool.py: send_message gains action='react' with
message_handle / reaction params, _handle_react validation arms, and
a _react_sendblue dispatcher that mirrors _send_sendblue's throwaway-
adapter pattern. _REACTION_PLATFORMS gates platform support.
- agent/prompt_builder.py: sharpen the sendblue blurb to point at the
now-real send_message(action='react', ...) mechanism and the handle
source (the original tapback line from patch NousResearch#4 was aspirational).
- tests/tools/test_sendblue_reaction.py: 15 tests covering dispatch,
validation arms, schema, and reaction normalization.
- LOCAL_PATCHES.md: new patch NousResearch#11 entry + file-index updates.1 parent 716021b commit 42e0023
5 files changed
Lines changed: 512 additions & 11 deletions
File tree
- agent
- gateway
- tests/tools
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
319 | 378 | | |
320 | 379 | | |
321 | 380 | | |
| |||
328 | 387 | | |
329 | 388 | | |
330 | 389 | | |
| 390 | + | |
331 | 391 | | |
332 | 392 | | |
333 | 393 | | |
| |||
339 | 399 | | |
340 | 400 | | |
341 | 401 | | |
342 | | - | |
343 | | - | |
| 402 | + | |
| 403 | + | |
344 | 404 | | |
345 | 405 | | |
346 | 406 | | |
347 | 407 | | |
348 | 408 | | |
| 409 | + | |
349 | 410 | | |
350 | 411 | | |
351 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
391 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
368 | 393 | | |
369 | 394 | | |
370 | 395 | | |
| |||
0 commit comments