Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FileFileNoThe Python module, in the agent's files.
CodeStringNoThe module's code, typed here.
InputsDictionaryNoWhat main gets as inputs (and as ooa.inputs).
UsesListNoThe toolkits the code may call; any other is refused.
EntryStringNomainThe function to run.
InterpreterStringNoPython program to use (a virtual environment's python); found on the PATH when empty.

Outputs​

OutputTypeWhat it is
outputsDictionaryWhat main returned (a dictionary; anything else comes back as result).
callsNumberHow many toolkit commands the code called.