Skip to content

fix: case-insensitive deserialization of variant field in context resource settings - #1485

Merged
gcuip merged 1 commit into
mainfrom
fix/resource-argument-variant-case-insensitive
Mar 24, 2026
Merged

gcuip merged 1 commit into
mainfrom
fix/resource-argument-variant-case-insensitive

Conversation

@gcuip

@gcuip gcuip commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Different packagers produce resource setting JSON with different casing for the variant field — e.g., "argument" vs "Argument", "static" vs "Static". The AgentContextQuerySetting.variant field is currently typed as str | None, which stores the raw string as-is. Downstream code compares it against AgentToolArgumentPropertiesVariant enum values (lowercase), causing mismatches when the JSON uses capitalized variants.

The AgentToolArgumentPropertiesVariant enum already extends CaseInsensitiveEnum which handles case-insensitive matching via missing().

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Mar 24, 2026
@gcuip
gcuip force-pushed the fix/resource-argument-variant-case-insensitive branch from 4bc1cab to a9c3366 Compare March 24, 2026 14:45
@gcuip
gcuip merged commit 20d0b75 into main Mar 24, 2026
127 checks passed
@gcuip
gcuip deleted the fix/resource-argument-variant-case-insensitive branch March 24, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants