LanguageRunner
autogen.beta.tools.sandbox.adapter.code.LanguageRunner dataclass #
How a language maps to an argv invocation.
Exactly one of two modes:
- Inline —
inline_argvis provided. The adapter callssandbox.exec([*inline_argv, code]). Best for languages whose interpreter accepts-c(python, bash). - File —
file_extensionandfile_runner_argvare provided. The adapter writescodeto a temp file viasandbox.put_fileand thensandbox.exec([*file_runner_argv, <path>]). Best for languages without a robust-c(node, ts-node).