agentOS API Reference - v0.0.1
Docs
Preparing search index...
python
PythonRuntime
Class PythonRuntime
Index
Properties
vm
Methods
dispose
evaluate
execute
execute
File
execute
Module
install
spawn
create
Properties
Readonly
vm
vm
:
AgentOs
Methods
dispose
dispose
()
:
Promise
<
void
>
Returns
Promise
<
void
>
evaluate
evaluate
<
T
=
unknown
>
(
expression
:
string
,
options
?:
CodeExecutionOptions
,
)
:
Promise
<
CodeEvaluationResult
<
T
>
>
Type Parameters
T
=
unknown
Parameters
expression
:
string
options
:
CodeExecutionOptions
= {}
Returns
Promise
<
CodeEvaluationResult
<
T
>
>
execute
execute
(
source
:
string
,
options
?:
CodeExecutionOptions
,
)
:
Promise
<
CodeExecutionResult
>
Parameters
source
:
string
options
:
CodeExecutionOptions
= {}
Returns
Promise
<
CodeExecutionResult
>
execute
File
executeFile
(
filePath
:
string
,
options
?:
CodeExecutionOptions
,
)
:
Promise
<
CodeExecutionResult
>
Parameters
filePath
:
string
options
:
CodeExecutionOptions
= {}
Returns
Promise
<
CodeExecutionResult
>
execute
Module
executeModule
(
moduleName
:
string
,
args
?:
string
[]
,
options
?:
CodeExecutionOptions
,
)
:
Promise
<
CodeExecutionResult
>
Parameters
moduleName
:
string
args
:
string
[]
= []
options
:
CodeExecutionOptions
= {}
Returns
Promise
<
CodeExecutionResult
>
install
install
(
packages
:
string
|
string
[]
,
options
?:
PythonInstallOptions
,
)
:
Promise
<
CodeExecutionResult
>
Parameters
packages
:
string
|
string
[]
options
:
PythonInstallOptions
= {}
Returns
Promise
<
CodeExecutionResult
>
spawn
spawn
(
source
:
string
,
options
?:
CodeExecutionOptions
)
:
Promise
<
CodeProcess
>
Parameters
source
:
string
options
:
CodeExecutionOptions
= {}
Returns
Promise
<
CodeProcess
>
Static
create
create
(
options
?:
PythonRuntimeOptions
)
:
Promise
<
PythonRuntime
>
Parameters
options
:
PythonRuntimeOptions
= {}
Returns
Promise
<
PythonRuntime
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
vm
Methods
dispose
evaluate
execute
execute
File
execute
Module
install
spawn
create
Docs
agentOS API Reference - v0.0.1
Loading...