mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
Each provider now declares its config surface in config_schema.py inside its own plugin dir (plugins/memory/<name>/), loaded by file path like the plugins themselves so plugin __init__ imports never reach the web server. hermes_cli/memory_providers.py is gone; the shared field primitives and loader live in plugins/memory/config_schema.py, and the schema tests move to tests/plugins/memory/ alongside the other per-plugin suites.
16 lines
536 B
Python
16 lines
536 B
Python
"""Tests for config-schema loading from memory provider plugin dirs."""
|
|
|
|
from plugins.memory.config_schema import get_provider_config_schema
|
|
|
|
|
|
def test_unknown_provider_is_none():
|
|
assert get_provider_config_schema("builtin") is None
|
|
|
|
|
|
def test_plugin_without_schema_is_none():
|
|
# mem0 is a real plugin dir that declares no config_schema.py.
|
|
assert get_provider_config_schema("mem0") is None
|
|
|
|
|
|
def test_schemas_are_cached_per_provider():
|
|
assert get_provider_config_schema("honcho") is get_provider_config_schema("honcho")
|