mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-08 05:18:49 +03:00
fix(agent): read document attachments on demand (#5122)
This commit is contained in:
@@ -272,14 +272,12 @@ def test_channels_config_has_no_per_channel_fields():
|
||||
assert cfg.send_tool_hints is True
|
||||
assert cfg.extract_document_text is True
|
||||
|
||||
opted_out = ChannelsConfig.model_validate({"sendToolHints": False})
|
||||
opted_out = ChannelsConfig.model_validate({
|
||||
"sendToolHints": False,
|
||||
"extractDocumentText": 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})
|
||||
|
||||
assert cfg.extract_document_text is False
|
||||
assert opted_out.extract_document_text is False
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user