shiftaiagenticinfra-sdk-python 0.0.11__tar.gz → 0.0.12__tar.gz
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.
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/PKG-INFO +10 -1
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/README.md +9 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/pyproject.toml +1 -1
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/messages_api.py +8 -3
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/models/__init__.py +6 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftaiagenticinfra_sdk_python.egg-info/PKG-INFO +10 -1
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/setup.cfg +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/setup.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/__init__.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/__init__.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/agents_api.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/analytics_api.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/conversations_api.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/internal/__init__.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/internal/trulens_api.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/platform_api.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/platform_session_api.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/api/users_api.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/client.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/http/__init__.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/http/exceptions.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/http/http_client.py +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftaiagenticinfra_sdk_python.egg-info/SOURCES.txt +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftaiagenticinfra_sdk_python.egg-info/dependency_links.txt +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftaiagenticinfra_sdk_python.egg-info/requires.txt +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftaiagenticinfra_sdk_python.egg-info/top_level.txt +0 -0
- {shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/tests/test_integration.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shiftaiagenticinfra-sdk-python
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.12
|
|
4
4
|
Summary: Shiftai Agentic Infra Python SDK
|
|
5
5
|
Author: ShiftAI
|
|
6
6
|
Author-email: ShiftAI <s.tadakamalla@theshiftai.in>
|
|
@@ -168,6 +168,7 @@ async def main():
|
|
|
168
168
|
)
|
|
169
169
|
|
|
170
170
|
print(f"Message sent! ID: {human_response.messageId}")
|
|
171
|
+
print(f"Org context: {human_response.orgContext}") # Optional; may be null if org knowledge is unavailable/not configured
|
|
171
172
|
|
|
172
173
|
# 3. Send a bot response
|
|
173
174
|
bot_response = await client.messages.send_bot_message(
|
|
@@ -262,6 +263,7 @@ Send a bot response to a human message.
|
|
|
262
263
|
|
|
263
264
|
**Response Notes (Cache):**
|
|
264
265
|
- `cacheHit` / `cacheResponse` may be present when the backend cache API was checked (typically for HUMAN messages).
|
|
266
|
+
- `orgContext` may be present in submission response (typically HUMAN flow). May be null if org knowledge is unavailable, or not configured.
|
|
265
267
|
|
|
266
268
|
### Platform Session API
|
|
267
269
|
|
|
@@ -290,6 +292,13 @@ Low-level message submission with full control.
|
|
|
290
292
|
|
|
291
293
|
**Return Type:** `PlatformMessageSubmissionResponse`
|
|
292
294
|
|
|
295
|
+
**Response fields to expect in `PlatformMessageSubmissionResponse`:**
|
|
296
|
+
- `success`, `messageId`, `conversationId`, `message`
|
|
297
|
+
- `contextualPrompt`, `humanQuery`, `previousKConversations`, `similarConversations`
|
|
298
|
+
- `operationStatus`, `conversationTitle`
|
|
299
|
+
- `cacheResponse`, `cacheHit`
|
|
300
|
+
- `orgContext` (optional; typically HUMAN flow. May be null if org knowledge is unavailable, or not configured.)
|
|
301
|
+
|
|
293
302
|
#### `await messages.get_all()`
|
|
294
303
|
Get all messages for the authenticated project.
|
|
295
304
|
|
|
@@ -139,6 +139,7 @@ async def main():
|
|
|
139
139
|
)
|
|
140
140
|
|
|
141
141
|
print(f"Message sent! ID: {human_response.messageId}")
|
|
142
|
+
print(f"Org context: {human_response.orgContext}") # Optional; may be null if org knowledge is unavailable/not configured
|
|
142
143
|
|
|
143
144
|
# 3. Send a bot response
|
|
144
145
|
bot_response = await client.messages.send_bot_message(
|
|
@@ -233,6 +234,7 @@ Send a bot response to a human message.
|
|
|
233
234
|
|
|
234
235
|
**Response Notes (Cache):**
|
|
235
236
|
- `cacheHit` / `cacheResponse` may be present when the backend cache API was checked (typically for HUMAN messages).
|
|
237
|
+
- `orgContext` may be present in submission response (typically HUMAN flow). May be null if org knowledge is unavailable, or not configured.
|
|
236
238
|
|
|
237
239
|
### Platform Session API
|
|
238
240
|
|
|
@@ -261,6 +263,13 @@ Low-level message submission with full control.
|
|
|
261
263
|
|
|
262
264
|
**Return Type:** `PlatformMessageSubmissionResponse`
|
|
263
265
|
|
|
266
|
+
**Response fields to expect in `PlatformMessageSubmissionResponse`:**
|
|
267
|
+
- `success`, `messageId`, `conversationId`, `message`
|
|
268
|
+
- `contextualPrompt`, `humanQuery`, `previousKConversations`, `similarConversations`
|
|
269
|
+
- `operationStatus`, `conversationTitle`
|
|
270
|
+
- `cacheResponse`, `cacheHit`
|
|
271
|
+
- `orgContext` (optional; typically HUMAN flow. May be null if org knowledge is unavailable, or not configured.)
|
|
272
|
+
|
|
264
273
|
#### `await messages.get_all()`
|
|
265
274
|
Get all messages for the authenticated project.
|
|
266
275
|
|
|
@@ -61,7 +61,9 @@ class MessagesApi:
|
|
|
61
61
|
conversation_id: Optional conversation ID for HUMAN messages. If not provided, backend creates a new conversation.
|
|
62
62
|
|
|
63
63
|
Returns:
|
|
64
|
-
PlatformMessageSubmissionResponse with message ID and contextual prompt
|
|
64
|
+
PlatformMessageSubmissionResponse with message ID and contextual prompt.
|
|
65
|
+
Response may include orgContext (organization context from Org Knowledge API);
|
|
66
|
+
it may be null if org knowledge is unavailable, or not configured.
|
|
65
67
|
|
|
66
68
|
Raises:
|
|
67
69
|
ValueError: If required fields are missing or API key is not configured
|
|
@@ -153,7 +155,9 @@ class MessagesApi:
|
|
|
153
155
|
mode: Optional mode identifier for the message
|
|
154
156
|
|
|
155
157
|
Returns:
|
|
156
|
-
PlatformMessageSubmissionResponse with message ID
|
|
158
|
+
PlatformMessageSubmissionResponse with message ID.
|
|
159
|
+
orgContext is primarily relevant to HUMAN flow and may be null if
|
|
160
|
+
org knowledge is unavailable, or not configured.
|
|
157
161
|
|
|
158
162
|
Raises:
|
|
159
163
|
ValueError: If required fields are missing or API key is not configured
|
|
@@ -220,7 +224,8 @@ class MessagesApi:
|
|
|
220
224
|
request: Message submission request object (email is required for message submission)
|
|
221
225
|
|
|
222
226
|
Returns:
|
|
223
|
-
PlatformMessageSubmissionResponse with message ID and contextual prompt
|
|
227
|
+
PlatformMessageSubmissionResponse with message ID and contextual prompt.
|
|
228
|
+
Response may include orgContext (optional).
|
|
224
229
|
|
|
225
230
|
Raises:
|
|
226
231
|
ValueError: If request.email is missing or blank
|
|
@@ -94,6 +94,9 @@ class PlatformMessageSubmissionResponse:
|
|
|
94
94
|
# Cache metadata (only present when cache was checked)
|
|
95
95
|
cacheResponse: Optional[str] = None
|
|
96
96
|
cacheHit: Optional[bool] = None
|
|
97
|
+
# Organization context from Org Knowledge API (typically HUMAN flow).
|
|
98
|
+
# May be null if org knowledge is unavailable, or not configured.
|
|
99
|
+
orgContext: Optional[str] = None
|
|
97
100
|
|
|
98
101
|
|
|
99
102
|
@dataclass
|
|
@@ -244,6 +247,9 @@ class PlatformMessage:
|
|
|
244
247
|
sourceEvent: Optional[Dict[str, Any]] = None
|
|
245
248
|
messageEmbedding: Optional[str] = None
|
|
246
249
|
generatedContext: Optional[str] = None
|
|
250
|
+
# Persisted organization context from backend `platform_messages.org_context`.
|
|
251
|
+
# May be null if org knowledge is unavailable, or not configured.
|
|
252
|
+
orgContext: Optional[str] = None
|
|
247
253
|
ragContext: Optional[str] = None
|
|
248
254
|
cacheHit: Optional[bool] = None
|
|
249
255
|
cacheResponse: Optional[str] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shiftaiagenticinfra-sdk-python
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.12
|
|
4
4
|
Summary: Shiftai Agentic Infra Python SDK
|
|
5
5
|
Author: ShiftAI
|
|
6
6
|
Author-email: ShiftAI <s.tadakamalla@theshiftai.in>
|
|
@@ -168,6 +168,7 @@ async def main():
|
|
|
168
168
|
)
|
|
169
169
|
|
|
170
170
|
print(f"Message sent! ID: {human_response.messageId}")
|
|
171
|
+
print(f"Org context: {human_response.orgContext}") # Optional; may be null if org knowledge is unavailable/not configured
|
|
171
172
|
|
|
172
173
|
# 3. Send a bot response
|
|
173
174
|
bot_response = await client.messages.send_bot_message(
|
|
@@ -262,6 +263,7 @@ Send a bot response to a human message.
|
|
|
262
263
|
|
|
263
264
|
**Response Notes (Cache):**
|
|
264
265
|
- `cacheHit` / `cacheResponse` may be present when the backend cache API was checked (typically for HUMAN messages).
|
|
266
|
+
- `orgContext` may be present in submission response (typically HUMAN flow). May be null if org knowledge is unavailable, or not configured.
|
|
265
267
|
|
|
266
268
|
### Platform Session API
|
|
267
269
|
|
|
@@ -290,6 +292,13 @@ Low-level message submission with full control.
|
|
|
290
292
|
|
|
291
293
|
**Return Type:** `PlatformMessageSubmissionResponse`
|
|
292
294
|
|
|
295
|
+
**Response fields to expect in `PlatformMessageSubmissionResponse`:**
|
|
296
|
+
- `success`, `messageId`, `conversationId`, `message`
|
|
297
|
+
- `contextualPrompt`, `humanQuery`, `previousKConversations`, `similarConversations`
|
|
298
|
+
- `operationStatus`, `conversationTitle`
|
|
299
|
+
- `cacheResponse`, `cacheHit`
|
|
300
|
+
- `orgContext` (optional; typically HUMAN flow. May be null if org knowledge is unavailable, or not configured.)
|
|
301
|
+
|
|
293
302
|
#### `await messages.get_all()`
|
|
294
303
|
Get all messages for the authenticated project.
|
|
295
304
|
|
|
File without changes
|
|
File without changes
|
{shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shiftaiagenticinfra_sdk_python-0.0.11 → shiftaiagenticinfra_sdk_python-0.0.12}/shiftai/client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|