xpander-sdk 2.0.215__py3-none-any.whl → 2.0.217__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xpander_sdk/models/notifications.py +17 -4
- xpander_sdk/models/orchestrations.py +15 -0
- {xpander_sdk-2.0.215.dist-info → xpander_sdk-2.0.217.dist-info}/METADATA +1 -1
- {xpander_sdk-2.0.215.dist-info → xpander_sdk-2.0.217.dist-info}/RECORD +7 -7
- {xpander_sdk-2.0.215.dist-info → xpander_sdk-2.0.217.dist-info}/WHEEL +1 -1
- {xpander_sdk-2.0.215.dist-info → xpander_sdk-2.0.217.dist-info}/licenses/LICENSE +0 -0
- {xpander_sdk-2.0.215.dist-info → xpander_sdk-2.0.217.dist-info}/top_level.txt +0 -0
|
@@ -31,16 +31,29 @@ class SlackCredentials(XPanderSharedModel):
|
|
|
31
31
|
app_configuration_token: Optional[str] = None
|
|
32
32
|
app_configuration_refresh_token: Optional[str] = None
|
|
33
33
|
|
|
34
|
+
# Default values for HITL notifications
|
|
35
|
+
DEFAULT_HITL_BODY = "Hello, workflow {title} is waiting for your approval and will not continue until approved. The workflow request is: {content}. By clicking approve, the workflow will auto-execute."
|
|
36
|
+
DEFAULT_LOGO_URL = "https://assets.xpanderai.io/xpander-logo-512.png"
|
|
37
|
+
DEFAULT_APPROVE_BUTTON_TEXT = "Approve"
|
|
38
|
+
DEFAULT_DENY_BUTTON_TEXT = "Deny"
|
|
39
|
+
|
|
40
|
+
|
|
34
41
|
class NotificationSettingsBase(XPanderSharedModel):
|
|
35
42
|
"""Base class for notification settings with common customization fields.
|
|
36
43
|
|
|
37
44
|
Attributes:
|
|
38
|
-
|
|
39
|
-
|
|
45
|
+
subject: Optional custom subject line for notifications.
|
|
46
|
+
body: Optional custom body content for notifications.
|
|
47
|
+
approve_button_text: Text for approval button (HITL only). Defaults to "Approve".
|
|
48
|
+
deny_button_text: Text for denial button (HITL only). Defaults to "Deny".
|
|
49
|
+
logo_url: URL for logo image. Defaults to xpander logo.
|
|
40
50
|
"""
|
|
41
51
|
|
|
42
|
-
|
|
43
|
-
|
|
52
|
+
subject: Optional[str] = None
|
|
53
|
+
body: Optional[str] = None
|
|
54
|
+
approve_button_text: Optional[str] = DEFAULT_APPROVE_BUTTON_TEXT
|
|
55
|
+
deny_button_text: Optional[str] = DEFAULT_DENY_BUTTON_TEXT
|
|
56
|
+
logo_url: Optional[str] = DEFAULT_LOGO_URL
|
|
44
57
|
|
|
45
58
|
class EmailNotificationSettings(NotificationSettingsBase):
|
|
46
59
|
"""Configuration for email notifications.
|
|
@@ -143,6 +143,19 @@ class OrchestrationClassifierNodeLLMSettings(XPanderSharedModel):
|
|
|
143
143
|
llm_api_base: Optional[str] = None
|
|
144
144
|
llm_extra_headers: Optional[Dict[str,str]] = {}
|
|
145
145
|
|
|
146
|
+
class SchemaOverride(XPanderSharedModel):
|
|
147
|
+
"""Schema override for workflow action nodes.
|
|
148
|
+
|
|
149
|
+
Allows setting permanent (fixed) values for tool input properties.
|
|
150
|
+
Fields with permanentValue will be removed from the schema sent to the LLM
|
|
151
|
+
and the permanent values will be applied to the payload before execution.
|
|
152
|
+
|
|
153
|
+
Attributes:
|
|
154
|
+
input: Input schema with permanentValue fields to override LLM-generated values.
|
|
155
|
+
"""
|
|
156
|
+
input: Optional[Dict] = None
|
|
157
|
+
|
|
158
|
+
|
|
146
159
|
class OrchestrationPointerNode(XPanderSharedModel):
|
|
147
160
|
"""Node that references an external asset (agent, function, or orchestration).
|
|
148
161
|
|
|
@@ -153,6 +166,7 @@ class OrchestrationPointerNode(XPanderSharedModel):
|
|
|
153
166
|
output_schema: JSON schema for structured output validation.
|
|
154
167
|
instructions: Optional instructions for the pointer node (Action only).
|
|
155
168
|
ignore_response: Should ignore the node result and proceed with previous result?.
|
|
169
|
+
schema_override: Optional schema override with permanentValue fields for fixed values.
|
|
156
170
|
"""
|
|
157
171
|
|
|
158
172
|
asset_id: str
|
|
@@ -167,6 +181,7 @@ class OrchestrationPointerNode(XPanderSharedModel):
|
|
|
167
181
|
output_schema: Optional[Dict] = None
|
|
168
182
|
instructions: Optional[str] = None
|
|
169
183
|
ignore_response: Optional[bool] = False
|
|
184
|
+
schema_override: Optional[SchemaOverride] = None
|
|
170
185
|
|
|
171
186
|
class ClassificationGroup(XPanderSharedModel):
|
|
172
187
|
"""A classification group with evaluation criteria and data extraction settings.
|
|
@@ -15,8 +15,8 @@ xpander_sdk/models/deep_planning.py,sha256=pCFV5iNSfT99ap1-09k7oO_DIwXx2vPJ3aVM4
|
|
|
15
15
|
xpander_sdk/models/events.py,sha256=HnootQSUIIRM4BIdaTbuPUEJ55hLVtA7KDCSsnHeBKw,2313
|
|
16
16
|
xpander_sdk/models/frameworks.py,sha256=-7W_m5cvgS1qLp0gGAFP4noNWT82IT1ZqtQv5WuOC2k,2939
|
|
17
17
|
xpander_sdk/models/generic.py,sha256=yw5rBRdZ-6ucTI4AwtskenddepOooiFRM--9xx5jrL8,681
|
|
18
|
-
xpander_sdk/models/notifications.py,sha256=
|
|
19
|
-
xpander_sdk/models/orchestrations.py,sha256=
|
|
18
|
+
xpander_sdk/models/notifications.py,sha256=ryc0VDXoiuZDEh791LYzW73GC0qH1y2hYl8Fj5Xv0FU,4141
|
|
19
|
+
xpander_sdk/models/orchestrations.py,sha256=uqKXATnBYCah6KJD20IV6_6-Etlke9RSrbRUfEm2M0U,13087
|
|
20
20
|
xpander_sdk/models/shared.py,sha256=gW88kA_UslNinUjtQKpLVF0sHDZnckwLWexRapxPivU,3125
|
|
21
21
|
xpander_sdk/models/user.py,sha256=_FTG0JO6iTrbcvJp-BBJ6nuj281zhyQB5ldQkBCyYDU,749
|
|
22
22
|
xpander_sdk/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -90,8 +90,8 @@ xpander_sdk/utils/generic.py,sha256=XrRj2-L8c0YWpfPdDyXE-pVL-6lKF9VpyZzKHQ4wuCc,
|
|
|
90
90
|
xpander_sdk/utils/tools.py,sha256=lyFkq2yP7DxBkyXYVlnFRwDhQCvf0fZZMDm5fBycze4,1244
|
|
91
91
|
xpander_sdk/utils/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
92
92
|
xpander_sdk/utils/agents/compactization_agent.py,sha256=S_U1dSmDC7I0JUsp_THUYjfutEI5QMBaMPJEXGp0_Sw,14389
|
|
93
|
-
xpander_sdk-2.0.
|
|
94
|
-
xpander_sdk-2.0.
|
|
95
|
-
xpander_sdk-2.0.
|
|
96
|
-
xpander_sdk-2.0.
|
|
97
|
-
xpander_sdk-2.0.
|
|
93
|
+
xpander_sdk-2.0.217.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
94
|
+
xpander_sdk-2.0.217.dist-info/METADATA,sha256=kseDOPzpZzUIgqe-KAc9rCHT72L8wrb0QdXC-K9DuD8,17952
|
|
95
|
+
xpander_sdk-2.0.217.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
96
|
+
xpander_sdk-2.0.217.dist-info/top_level.txt,sha256=UCjnxQpsMy5Zoe7lmRuVDO6DI2V_6PgRFfm4oizRbVs,12
|
|
97
|
+
xpander_sdk-2.0.217.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|