MicroFish/backend/app/services
MiroFish Contributor f3eb616656 refactor: extract OasisAgentProfile to standalone oasis_models module
Extract OasisAgentProfile dataclass and helper functions to a new
oasis_models.py module that has no Flask dependencies. This allows
proper unit testing without mocking the entire app package.

Changes:
- Create backend/app/services/oasis_models.py with OasisAgentProfile
  and helper functions (_generate_username, _normalize_gender,
  _is_individual_entity, _is_group_entity)
- Update oasis_profile_generator.py to import from oasis_models
- Create backend/tests/test_oasis_profile.py that imports the real
  OasisAgentProfile instead of using an inline copy
- Add pytest.ini and conftest.py for test configuration

This fixes the bug where tests were testing a copy of the class
rather than the actual production code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 20:25:22 +08:00
..
__init__.py Implement Interview feature for agent interactions in simulations 2025-12-08 15:55:39 +08:00
graph_builder.py fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
oasis_models.py refactor: extract OasisAgentProfile to standalone oasis_models module 2026-04-10 20:25:22 +08:00
oasis_profile_generator.py refactor: extract OasisAgentProfile to standalone oasis_models module 2026-04-10 20:25:22 +08:00
ontology_generator.py Merge pull request #428 from Ghostubborn/feat/i18n 2026-04-02 14:27:04 +08:00
report_agent.py feat(i18n): replace all user-visible Chinese in report_agent.py 2026-04-01 17:44:52 +08:00
simulation_config_generator.py feat(i18n): replace remaining Chinese in config generator and profile generator 2026-04-01 17:19:12 +08:00
simulation_ipc.py Implement Interview feature for agent interactions in simulations 2025-12-08 15:55:39 +08:00
simulation_manager.py feat(i18n): replace remaining hardcoded Chinese in progress callbacks 2026-04-01 16:53:29 +08:00
simulation_runner.py fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
text_processor.py Introduce Project ID for context management, finalizing the stateful API pipeline from file submission to graph construction. 2025-11-28 17:21:08 +08:00
zep_entity_reader.py feat(graph): implement pagination for fetching nodes and edges; add utility functions for streamlined data retrieval 2026-02-27 15:53:29 +08:00
zep_graph_memory_updater.py fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
zep_tools.py feat(i18n): replace all user-visible Chinese logger messages in zep_tools.py 2026-04-01 17:46:39 +08:00