Skip to content

Commit 86e52db

Browse files
feat: make AgentGuardrailEscalateAction.app optional for dynamic schema mode
When an agent guardrail is configured for dynamic schema generation (no pre-deployed Action App), the JSON config has no `app` field. Making `app` Optional allows this config to deserialize without error — the factory then creates EscalateAction with model-injected schema generation.
1 parent 5252758 commit 86e52db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/uipath/src/uipath/agent/models

packages/uipath/src/uipath/agent/models/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ class AgentGuardrailEscalateAction(BaseModel):
12181218
action_type: Literal[AgentGuardrailActionType.ESCALATE] = Field(
12191219
alias="$actionType", default=AgentGuardrailActionType.ESCALATE, frozen=True
12201220
)
1221-
app: AgentGuardrailEscalateActionApp
1221+
app: Optional[AgentGuardrailEscalateActionApp] = None
12221222
recipient: "AgentEscalationRecipient" # forward ref ok
12231223
model_config = ConfigDict(populate_by_name=True, extra="allow")
12241224

0 commit comments

Comments
 (0)