Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 923 Bytes

File metadata and controls

18 lines (12 loc) · 923 Bytes
id actor-input
title Actor input

import CodeBlock from '@theme/CodeBlock';

import InputExample from '!!raw-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}