File size: 633 Bytes
1b7e88c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Import core modules and components
# Import workflow related modules
from pathlib import Path

from omagent_core.utils.container import container
from omagent_core.utils.registry import registry

# Set up path and import modules
CURRENT_PATH = root_path = Path(__file__).parents[0]
registry.import_module(project_path=CURRENT_PATH.joinpath("agent"))

# Register required components
container.register_callback(callback="DefaultCallback")
container.register_input(input="AppInput")
container.register_stm("SharedMemSTM")
container.register_ltm(ltm="VideoMilvusLTM")
# Compile container config
container.compile_config(CURRENT_PATH)