state["variable_name"]
.result
, payload
, session
.pandas
, requests
, or numpy
.main.py
file from Python code blocks.vault["SECRET_NAME"]
.set_output()
functionset_output(value)
to pass data to the next block:
@{result}
in subsequent blocks.
main.py
filemain.py
: your main Python code file.requirements.txt
: shows the version of the writer
package that your agent is using.README.md
: documentation for your agent.static/
: folder for static assets like images.<folder_name>/<file_name>.<file_extension>
. If the folder doesn’t exist yet, it will be created automatically.
For example, given the following file structure:
email_validator.py
to a new folder called utils
, rename the file to utils/email_validator.py
and click Save file. The new file structure will look like this:
pricing_calculator.py
to the utils
folder, rename the file to utils/pricing_calculator.py
and click Save file. The new file structure will look like this:
logger
object is globally available in Python blocks.