Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.05 KB

File metadata and controls

19 lines (13 loc) · 1.05 KB
id actor-input
title Actor input
description Read and validate input data passed to your Actor at runtime.

import RunnableCodeBlock from '@site/src/components/RunnableCodeBlock';

import InputExample from '!!raw-loader!roa-loader!./code/02_input.py';

The Actor gets its input from the input record in its default key-value store.

To access it, instead of reading the record manually, you can use the Actor.get_input convenience method. It will get the input record key from the Actor configuration, read the record from the default key-value store,and decrypt any secret input fields.

For example, if an Actor received a JSON input with two fields, { "firstNumber": 1, "secondNumber": 2 }, this is how you might process it:

{InputExample}