- Added a new Interview module to facilitate interactions with agents post-simulation, allowing for single and batch interviews. - Introduced IPC communication mechanism for command and response handling between the Flask backend and simulation scripts. - Updated README.md to include detailed instructions on the new Interview functionality, including API endpoints and usage examples. - Enhanced simulation scripts to support waiting for commands after completion, improving user control over the simulation environment. - Implemented error handling and logging for interview processes, ensuring robust operation and traceability.
73 lines
1.7 KiB
Python
73 lines
1.7 KiB
Python
"""
|
|
业务服务模块
|
|
"""
|
|
|
|
from .ontology_generator import OntologyGenerator
|
|
from .graph_builder import GraphBuilderService
|
|
from .text_processor import TextProcessor
|
|
from .zep_entity_reader import ZepEntityReader, EntityNode, FilteredEntities
|
|
from .oasis_profile_generator import OasisProfileGenerator, OasisAgentProfile
|
|
from .simulation_manager import SimulationManager, SimulationState, SimulationStatus
|
|
from .simulation_config_generator import (
|
|
SimulationConfigGenerator,
|
|
SimulationParameters,
|
|
AgentActivityConfig,
|
|
TimeSimulationConfig,
|
|
EventConfig,
|
|
PlatformConfig
|
|
)
|
|
from .simulation_runner import (
|
|
SimulationRunner,
|
|
SimulationRunState,
|
|
RunnerStatus,
|
|
AgentAction,
|
|
RoundSummary
|
|
)
|
|
from .zep_graph_memory_updater import (
|
|
ZepGraphMemoryUpdater,
|
|
ZepGraphMemoryManager,
|
|
AgentActivity
|
|
)
|
|
from .simulation_ipc import (
|
|
SimulationIPCClient,
|
|
SimulationIPCServer,
|
|
IPCCommand,
|
|
IPCResponse,
|
|
CommandType,
|
|
CommandStatus
|
|
)
|
|
|
|
__all__ = [
|
|
'OntologyGenerator',
|
|
'GraphBuilderService',
|
|
'TextProcessor',
|
|
'ZepEntityReader',
|
|
'EntityNode',
|
|
'FilteredEntities',
|
|
'OasisProfileGenerator',
|
|
'OasisAgentProfile',
|
|
'SimulationManager',
|
|
'SimulationState',
|
|
'SimulationStatus',
|
|
'SimulationConfigGenerator',
|
|
'SimulationParameters',
|
|
'AgentActivityConfig',
|
|
'TimeSimulationConfig',
|
|
'EventConfig',
|
|
'PlatformConfig',
|
|
'SimulationRunner',
|
|
'SimulationRunState',
|
|
'RunnerStatus',
|
|
'AgentAction',
|
|
'RoundSummary',
|
|
'ZepGraphMemoryUpdater',
|
|
'ZepGraphMemoryManager',
|
|
'AgentActivity',
|
|
'SimulationIPCClient',
|
|
'SimulationIPCServer',
|
|
'IPCCommand',
|
|
'IPCResponse',
|
|
'CommandType',
|
|
'CommandStatus',
|
|
]
|
|
|