Skip to content

feat(agenticai): resolve external parameters#7142

Draft
tmetzke wants to merge 1 commit into
mainfrom
tmb/ai-tool-structured-input
Draft

feat(agenticai): resolve external parameters#7142
tmetzke wants to merge 1 commit into
mainfrom
tmb/ai-tool-structured-input

Conversation

@tmetzke
Copy link
Copy Markdown
Member

@tmetzke tmetzke commented May 6, 2026

NOTE: this is just an experiment

Description

Resolves externalParameters in tool elements to create tool input schemas. This supersedes fromAi resolution if provided.

Related issues

related to camunda/camunda#52186

Resolves `externalParameters` in tool elements to create tool input schemas. This supersedes `fromAi` resolution if provided.
Comment on lines +84 to +85
toolElementsResolver
.resolveToolElements(jobContext.getProcessDefinitionKey(), jobContext.getElementId())
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nicely integrated into the existing logic!

As a side note: if we pursue this approach, we should probably try to find a way to push the element information directly from the job activation, similar to the existing adHocSubProcessElements. The client/XML way can be problematic when exporting is slow (see #4847) (or secondary storage is not available at all). We addressed the linked issue by adding retries to the XML fetching part in #5390, but in theory the problem persists.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree, I will leave this comment open so we can consider it when we pick this up for real.

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.

2 participants