Skip to content

Commit 2c2628b

Browse files
committed
feat: Integrate ActionRest to send command messages in Office agent
1 parent 0049e99 commit 2c2628b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adf_core_python/core/agent/office/office.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from threading import Event
22
from typing import Optional
33

4+
from adf_core_python.core.agent.action.common.action_rest import ActionRest
45
from adf_core_python.core.agent.agent import Agent
56
from adf_core_python.core.agent.config.module_config import ModuleConfig
67
from adf_core_python.core.agent.develop.develop_data import DevelopData
@@ -125,3 +126,8 @@ def think(self) -> None:
125126
self._message_manager,
126127
self._develop_data,
127128
)
129+
self.send_msg(
130+
ActionRest()
131+
.get_command(self.agent_id, self._agent_info.get_time())
132+
.prepare_cmd()
133+
)

0 commit comments

Comments
 (0)