mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-22 00:32:49 +00:00
Add support for `paths=None` in `get_nodes` method to return all real nodes as the graph's "scan everything" entry point. When `paths` is explicitly passed as an empty list, returns empty list. Virtual placeholders are filtered out in both cases. BREAKING CHANGE: The `get_nodes` method signature changed from requiring a list of paths to accepting an optional list or None. refactor(memory): move runtime_response imports to steps package Move runtime_response imports from memory package to steps package to improve code organization and reduce circular dependencies. refactor(config): update obsidian configuration table structure Update the obsidian configuration markdown table to improve clarity and fix incorrect section headings. Change 'stat/list' to 'file' and 'return specific tag info' to 'tags' section with proper commands. chore(memory): remove deprecated toolkit modules Remove deprecated agent_toolkit.py, file_toolkit.py, and graph_toolkit.py modules as functionality has been moved to steps package. feat(steps): add new CRUD file operations Add new steps for file operations including file_download and file_list operations with proper path resolution and filtering capabilities.
15 lines
523 B
Python
15 lines
523 B
Python
"""Graph steps — wikilink relationship exploration.
|
|
|
|
Single Step:
|
|
|
|
graph:traverse — BFS from a seed file over wikilink edges.
|
|
|
|
Direction vocabulary matches the obsidian convention
|
|
(``forward`` / ``backward`` / ``both``); the engine vocab
|
|
(``out`` / ``in`` / ``both``) is accepted as alias. Inbound
|
|
traversal walks the vault to reconstruct source paths since the
|
|
file_graph contract's ``get_inlinks`` only returns target-shaped
|
|
FileLinks.
|
|
"""
|
|
|
|
from . import traverse # noqa: F401 -- @R.register("graph:traverse")
|