File size: 509 Bytes
3a3f97e
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding: utf-8
# Copyright (c) 2025 inclusionAI.
from examples.tools.tool_action import ShellAction
from aworld.core.tool.action_factory import ActionFactory
from aworld.core.tool.action import ExecutableAction


@ActionFactory.register(name=ShellAction.EXECUTE_SCRIPT.value.name,
                        desc=ShellAction.EXECUTE_SCRIPT.value.desc,
                        tool_name="shell")
class ShellAction(ExecutableAction):
    """Only one action, define it, implemented can be omitted. Act in tool."""