get_first

Returns the first element of an array.

Arguments

Name
Type
Description
Required

array

array, prompt array

The array from which to get the first element.

Returns

Type
Description

prompt

Returns the first element of the array.

Example

- name: get_first
  arguments:
    array: [1, 2, 3]
  returns: <the first element of the array>

Last updated