Problem/Motivation

I am in the process of creating an Azure OpenAI Augmentor and have been noticing differences between the output of ECA Augmentor Minimal Content Item vs the Augmentor Default Widget when it comes to the result output. In my situation, when trying to use the ECA Action I receive an "Array" as the output of a field where I would expect a sentence of text.

It looks like by default, if you use the Augmentor Default Widget, it will automatically reset the array to index 0 (so it works as expected).
javascript code array index set to 0

But this is not the case for the result from the ECA action, as shown below. You can see the value is actually an array, which results in the set field being displayed as "Array".
output from augmentor

Steps to reproduce

  1. Install Augmentor / Azure OpenAI Augmentor / BPMN.io
  2. Create a new augmentor with a standard prompt to generate a site description and follow the below ECA diagram. This essentially uses the title and body field to generate a new value in the summary field.
    eca diagram

Proposed resolution

If we reset the array like we do with the javascript it seems to solve the issue. I want to make sure I am not missing something silly here.
reset value

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork augmentor-3453751

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

j-barnes created an issue. See original summary.

j-barnes’s picture

Status: Active » Needs review

eleonel made their first commit to this issue’s fork.

  • eleonel committed 78734326 on 1.1.x authored by j-barnes
    Issue #3453751 by j-barnes: ECA Augmentor result outputs array
    
eleonel’s picture

Status: Needs review » Fixed

Tested and merged, thanks for your contribution.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.