Skip to content

feat(yuanbao): wire native text + media delivery into send_message#17424

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-47e4ef92
Apr 29, 2026
Merged

feat(yuanbao): wire native text + media delivery into send_message#17424
teknium1 merged 1 commit into
mainfrom
hermes/hermes-47e4ef92

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Wires the existing _send_yuanbao() helper into _send_to_platform() so send_message targeting yuanbao actually works — both text-only and media-attached chunks.

Before this, _send_yuanbao() already accepted media_files= and the user-facing error strings already claimed yuanbao was supported, but no dispatch branch actually routed to it. Text-only yuanbao sends fell through to "Direct sending not yet implemented".

Changes

  • tools/send_message_tool.py: yuanbao media-chunk branch (mirrors Signal/Matrix — attachments on the final chunk only) + elif Platform.YUANBAO dispatch in the non-media loop.

Validation

Before After
send_message target="yuanbao:..." text {error: "Direct sending not yet implemented for yuanbao"} routes to _send_yuanbao
send_message with media_files silently omitted (despite advertised support) attached on final chunk
py_compile OK

Salvage of #17411 by @LoongZhao. SKILL.md description change and redundant website/sidebars.ts entry (already on main) dropped; indentation + trailing-whitespace cleaned up.

_send_yuanbao() already supported media_files= and the user-facing
error strings already advertised yuanbao support, but there was no
dispatch branch in _send_to_platform() actually routing to it. Target
yuanbao in send_message previously fell through to
"Direct sending not yet implemented".

- Add yuanbao media-chunk branch (mirrors Signal/Matrix: media on
  final chunk only).
- Add yuanbao elif in the non-media loop.

Salvage of #17411; SKILL.md description change and redundant
sidebars.ts entry dropped, indentation/trailing-whitespace cleaned up.
@teknium1 teknium1 merged commit ecaf800 into main Apr 29, 2026
11 of 12 checks passed
@teknium1 teknium1 deleted the hermes/hermes-47e4ef92 branch April 29, 2026 11:56
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/tools Tool registry, model_tools, toolsets comp/gateway Gateway runner, session dispatch, delivery labels Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants