A tool that allows the LLM to execute commands on a shell. For more details, see: https://platform.openai.com/docs/guides/tools-local-shell
| 1018 | |
| 1019 | @dataclass |
| 1020 | class LocalShellTool: |
| 1021 | """A tool that allows the LLM to execute commands on a shell. |
| 1022 | |
| 1023 | For more details, see: |
| 1024 | https://platform.openai.com/docs/guides/tools-local-shell |
| 1025 | """ |
| 1026 | |
| 1027 | executor: LocalShellExecutor |
| 1028 | """A function that executes a command on a shell.""" |
| 1029 | |
| 1030 | @property |
| 1031 | def name(self): |
| 1032 | return "local_shell" |
| 1033 | |
| 1034 | |
| 1035 | class ShellToolLocalSkill(TypedDict): |
no outgoing calls