Run Python agent
Run main(inputs, ooa) of a Python module: it gets the inputs, calls toolkit commands through ooa.call(), and returns the outputs.
Command in the Coded agents toolkit · id ooa.coded/run_python_agent · 6 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| File | File | No | The Python module, in the agent's files. | |
| Code | String | No | The module's code, typed here. | |
| Inputs | Dictionary | No | What main gets as inputs (and as ooa.inputs). | |
| Uses | List | No | The toolkits the code may call; any other is refused. | |
| Entry | String | No | main | The function to run. |
| Interpreter | String | No | Python program to use (a virtual environment's python); found on the PATH when empty. |
Outputs
| Output | Type | What it is |
|---|---|---|
| outputs | Dictionary | What main returned (a dictionary; anything else comes back as result). |
| calls | Number | How many toolkit commands the code called. |