Skip to content

Commit

Permalink
fix: fixed manifest for tools
Browse files Browse the repository at this point in the history
  • Loading branch information
plutoless committed Dec 23, 2024
1 parent 3546b83 commit 3944cf1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ async def on_start(self, async_ten_env: AsyncTenEnv) -> None:
for tool in tools:
async_ten_env.log_info(f"tool: {tool}")
c: Cmd = Cmd.create(CMD_TOOL_REGISTER)
c.set_property_from_json(
CMD_PROPERTY_TOOL, json.dumps(tool.model_dump_json())
)
c.set_property_from_json(CMD_PROPERTY_TOOL, json.dumps(tool.model_dump()))
async_ten_env.log_info(f"begin tool register, {tool}")
await async_ten_env.send_cmd(c)
async_ten_env.log_info(f"tool registered, {tool}")
Expand Down

0 comments on commit 3944cf1

Please sign in to comment.