mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
feat(cmd_service): initialize service context on command service startup
This commit is contained in:
parent
3680571c94
commit
0163cb25ce
2 changed files with 2 additions and 1 deletions
|
|
@ -951,7 +951,7 @@ if __name__ == "__main__":
|
|||
"--algo_version",
|
||||
type=str,
|
||||
default="halumem",
|
||||
help="Algorithm version for summary and retrieval (default: v1)"
|
||||
help="Algorithm version for summary and retrieval (default: halumem)"
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ class CmdService(BaseService):
|
|||
"""Initialize the command service instance."""
|
||||
super().__init__(**kwargs)
|
||||
self._cmd_flow: CmdFlow | None = None
|
||||
run_coro_safely(self.service_context.start())
|
||||
|
||||
def integrate_flow(self, flow: BaseFlow) -> str | None:
|
||||
"""Integrate the workflow configuration into the command service."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue