---
sidebar:
  hidden: true
title: roboto.action_runtime
---
Tools for an action's code to use while an invocation of the action runs.

Use [`InvocationContext`](/docs/reference/python-sdk/roboto/action_runtime#roboto.action_runtime.InvocationContext), which replaces the deprecated [`ActionRuntime`](/docs/reference/python-sdk/roboto/action_runtime#roboto.action_runtime.ActionRuntime), to read the invocation's parameters, secrets, and input data, and to set tags and metadata on the files the action writes to its output directory.

## Submodules

- [roboto.action_runtime.action_input](/docs/reference/python-sdk/roboto/action_runtime/action_input)
- [roboto.action_runtime.exceptions](/docs/reference/python-sdk/roboto/action_runtime/exceptions)
- [roboto.action_runtime.exit_codes](/docs/reference/python-sdk/roboto/action_runtime/exit_codes)
- [roboto.action_runtime.file_changeset](/docs/reference/python-sdk/roboto/action_runtime/file_changeset)
- [roboto.action_runtime.invocation_context](/docs/reference/python-sdk/roboto/action_runtime/invocation_context)
- [roboto.action_runtime.prepare](/docs/reference/python-sdk/roboto/action_runtime/prepare)

## Package Contents

- [ActionInput](/docs/reference/python-sdk/roboto/action_runtime/action_input/action_input#roboto.action_runtime.action_input.action_input.ActionInput) (class): Input data of an action invocation: the files, sessions, and topics its input selectors matched.

- [ActionInputResolver](/docs/reference/python-sdk/roboto/action_runtime/action_input/input_resolver#roboto.action_runtime.action_input.input_resolver.ActionInputResolver) (class): Service that resolves an invocation's input selectors to the files, sessions, and topics they match.

- [ActionRuntime](/docs/reference/python-sdk/roboto/action_runtime/invocation_context#roboto.action_runtime.invocation_context.ActionRuntime) (class): Deprecated. Context of a running invocation, under its former name.

- [ActionRuntimeException](/docs/reference/python-sdk/roboto/action_runtime/exceptions#roboto.action_runtime.exceptions.ActionRuntimeException) (exception): Base class of the exceptions the SDK raises when an action's environment lacks what the action asks for.

- [ExitCode](/docs/reference/python-sdk/roboto/action_runtime/exit_codes#roboto.action_runtime.exit_codes.ExitCode) (class): Exit code an action's process ends with: whether it succeeded and, if not, why.

- [FilesChangesetFileManager](/docs/reference/python-sdk/roboto/action_runtime/file_changeset#roboto.action_runtime.file_changeset.FilesChangesetFileManager) (class): Service that records tag, metadata, and description changes for an action's output files.

- [InvocationContext](/docs/reference/python-sdk/roboto/action_runtime/invocation_context#roboto.action_runtime.invocation_context.InvocationContext) (class): Context of a running invocation, which an action's code uses to read its inputs, parameters, and secrets.

- [PrepareEnvException](/docs/reference/python-sdk/roboto/action_runtime/exceptions#roboto.action_runtime.exceptions.PrepareEnvException) (exception): Roboto could not prepare an invocation's parameters or input data while setting up the invocation.

- [prepare_invocation_input_data()](/docs/reference/python-sdk/roboto/action_runtime/prepare#roboto.action_runtime.prepare.prepare_invocation_input_data) (function): Resolve an invocation's input to the files, sessions, and topics it selects, and write them to a manifest.

- [prepare_invocation_parameters()](/docs/reference/python-sdk/roboto/action_runtime/prepare#roboto.action_runtime.prepare.prepare_invocation_parameters) (function): Write an invocation's parameter values, and the values of the secrets they name, to files the action reads.

- [prepare_metadata_changeset_manifest()](/docs/reference/python-sdk/roboto/action_runtime/prepare#roboto.action_runtime.prepare.prepare_metadata_changeset_manifest) (function): Create the empty file in which an action records changes to its dataset's tags and metadata.
