feat(channels): enable tool hints by default

This commit is contained in:
chengyongru
2026-07-26 21:22:12 +08:00
committed by chengyongru
parent ee93725e83
commit d576804f23
8 changed files with 27 additions and 16 deletions
+4 -1
View File
@@ -269,9 +269,12 @@ def test_channels_config_has_no_per_channel_fields():
cfg = ChannelsConfig()
assert not hasattr(cfg, "telegram")
assert cfg.send_progress is True
assert cfg.send_tool_hints is False
assert cfg.send_tool_hints is True
assert cfg.extract_document_text is True
opted_out = ChannelsConfig.model_validate({"sendToolHints": False})
assert opted_out.send_tool_hints is False
def test_channels_config_extract_document_text_accepts_camel_alias():
cfg = ChannelsConfig.model_validate({"extractDocumentText": False})