When the LLM returns ontology attributes as plain strings instead of
dicts, set_ontology() crashes with "TypeError: string indices must be
integers, not 'str'" at attr_def["name"].
Two-layer fix:
1. ontology_generator.py: normalize string attrs to {"name", "type",
"description"} dicts during validation, so downstream code always
receives well-formed structures.
2. graph_builder.py: add isinstance guard as a safety net in
set_ontology() for both entity and edge attribute loops.
Co-Authored-By: Octopus <liyuan851277048@icloud.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| graph_builder.py | ||
| oasis_profile_generator.py | ||
| ontology_generator.py | ||
| report_agent.py | ||
| simulation_config_generator.py | ||
| simulation_ipc.py | ||
| simulation_manager.py | ||
| simulation_runner.py | ||
| text_processor.py | ||
| zep_entity_reader.py | ||
| zep_graph_memory_updater.py | ||
| zep_tools.py | ||