Skip to content

refactor(agent): replace metadata.is_case_manager with metadata.variant#1606

Merged
dianagrecu-uipath merged 1 commit intomainfrom
feat/update-cm-agent-variant
Apr 30, 2026
Merged

refactor(agent): replace metadata.is_case_manager with metadata.variant#1606
dianagrecu-uipath merged 1 commit intomainfrom
feat/update-cm-agent-variant

Conversation

@dianagrecu-uipath
Copy link
Copy Markdown
Contributor

@dianagrecu-uipath dianagrecu-uipath commented Apr 30, 2026

What changed

  • Added AgentVariant enum (CaseInsensitiveEnum) with CASE_MANAGER = "caseManager"
  • Replaced is_case_manager: bool field in AgentMetadata with variant: Optional[AgentVariant] = None
  • Updated the AgentDefinition.is_case_manager property to derive from metadata.variant — public API unchanged, still returns bool
  • Updated test fixtures from isCaseManager: true/false to variant: "caseManager" / absent

Notes

  • variant is Optional[AgentVariant] because regular agents have no variant set. There is no "no variant" enum value - that state is None. The boolean is_case_manager property hides this from SDK consumers.

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Apr 30, 2026
@dianagrecu-uipath dianagrecu-uipath changed the title feat: update cm agent with variant field refactor(agent): replace metadata.is_case_manager with metadata.variant Apr 30, 2026
@dianagrecu-uipath dianagrecu-uipath merged commit 867a31e into main Apr 30, 2026
85 checks passed
@dianagrecu-uipath dianagrecu-uipath deleted the feat/update-cm-agent-variant branch April 30, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants