Skip to content

feat: add arrayBuilder static arg support#871

Open
andreiancuta-uipath wants to merge 2 commits into
mainfrom
feat/arraybuilder-static-args
Open

feat: add arrayBuilder static arg support#871
andreiancuta-uipath wants to merge 2 commits into
mainfrom
feat/arraybuilder-static-args

Conversation

@andreiancuta-uipath
Copy link
Copy Markdown
Contributor

@andreiancuta-uipath andreiancuta-uipath commented May 21, 2026

Summary

Adds support for the arrayBuilder static-argument variant. ArrayBuilder declares an array-typed parameter whose elements are addressed by indexed sibling entries ($['items'][0], $['items'][1], ...). At resolution time those indexed children are collected and assembled into a list in index order; gaps and out-of-scope nested paths become None. Child variants supported: static, argument (from agent input), and textBuilder.

Example

Input properties:

"$['items']":    arrayBuilder
"$['items'][0]": static("alpha")
"$['items'][1]": argument(userId)        # agent_input = {"userId": "u-42"}
"$['items'][2]": textBuilder("Hi, {name}")  # agent_input = {"name": "world"}

Resolved value:

$['items'] -> ["alpha", "u-42", "Hi, world"]

display_value

ToolStaticArgument now carries a separate display_value alongside value. The runtime call still receives the real value, but the schema modification step uses display_value, so sensitive arrayBuilder items render as "<hidden>" in the schema enum (e.g. ["<hidden>", "public"]) while the tool itself is invoked with the real secret.

@andreiancuta-uipath andreiancuta-uipath force-pushed the feat/arraybuilder-static-args branch from 76a3964 to fce10c1 Compare May 21, 2026 13:58
@sonarqubecloud
Copy link
Copy Markdown

@andreiancuta-uipath
Copy link
Copy Markdown
Contributor Author

@claude review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant