get_first

Returns the first element of an array.

Arguments

NameTypeDescriptionRequired

array

array, prompt array

The array from which to get the first element.

Returns

TypeDescription

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