shiftaiagenticinfra-sdk-python 0.0.5__tar.gz → 0.0.7__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.
Files changed (27) hide show
  1. {shiftaiagenticinfra_sdk_python-0.0.5/shiftaiagenticinfra_sdk_python.egg-info → shiftaiagenticinfra_sdk_python-0.0.7}/PKG-INFO +52 -9
  2. shiftaiagenticinfra_sdk_python-0.0.5/PKG-INFO → shiftaiagenticinfra_sdk_python-0.0.7/README.md +469 -455
  3. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/pyproject.toml +1 -1
  4. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/setup.py +1 -1
  5. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/__init__.py +1 -1
  6. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/__init__.py +2 -0
  7. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/analytics_api.py +56 -22
  8. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/messages_api.py +3 -0
  9. shiftaiagenticinfra_sdk_python-0.0.7/shiftai/api/platform_session_api.py +66 -0
  10. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/client.py +2 -0
  11. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/http/http_client.py +15 -3
  12. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/models/__init__.py +45 -7
  13. shiftaiagenticinfra_sdk_python-0.0.5/README.md → shiftaiagenticinfra_sdk_python-0.0.7/shiftaiagenticinfra_sdk_python.egg-info/PKG-INFO +498 -426
  14. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftaiagenticinfra_sdk_python.egg-info/SOURCES.txt +1 -0
  15. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/tests/test_integration.py +4 -2
  16. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/setup.cfg +0 -0
  17. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/agents_api.py +0 -0
  18. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/conversations_api.py +0 -0
  19. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/internal/__init__.py +0 -0
  20. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/internal/trulens_api.py +0 -0
  21. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/platform_api.py +0 -0
  22. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/api/users_api.py +0 -0
  23. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/http/__init__.py +0 -0
  24. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftai/http/exceptions.py +0 -0
  25. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftaiagenticinfra_sdk_python.egg-info/dependency_links.txt +0 -0
  26. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftaiagenticinfra_sdk_python.egg-info/requires.txt +0 -0
  27. {shiftaiagenticinfra_sdk_python-0.0.5 → shiftaiagenticinfra_sdk_python-0.0.7}/shiftaiagenticinfra_sdk_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shiftaiagenticinfra-sdk-python
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Summary: Shiftai Agentic Infra Python SDK
5
5
  Author: ShiftAI
6
6
  Author-email: ShiftAI <s.tadakamalla@theshiftai.in>
@@ -46,6 +46,12 @@ This SDK is the official gateway to the Shift AI Agentic Infra services, enablin
46
46
  <a href="https://x.com/shift_ai_first">
47
47
  <img src="https://img.shields.io/badge/X(Twitter)-@shift__ai__first-black?style=for-the-badge&logo=x">
48
48
  </a>
49
+ <a href="https://www.reddit.com/user/TheShiftAI/">
50
+ <img src="https://img.shields.io/badge/Reddit-TheShiftAI-FF4500?style=for-the-badge&logo=reddit">
51
+ </a>
52
+ <a href="https://substack.com/@shiftaifirst">
53
+ <img src="https://img.shields.io/badge/Substack-ShiftAI-orange?style=for-the-badge&logo=substack">
54
+ </a>
49
55
  </p>
50
56
 
51
57
  **ShiftAI** is an AI infrastructure and consulting company focused on building
@@ -63,6 +69,9 @@ AI-driven systems that move beyond experimentation into real-world production.
63
69
  - 🐙 GitHub Organization: https://github.com/shiftaitop
64
70
  - 💼 LinkedIn (Company): https://www.linkedin.com/company/theshiftai-in/
65
71
  - 🐦 Twitter (X): https://x.com/shift_ai_first
72
+ - 🔗 Reddit: https://www.reddit.com/user/TheShiftAI/
73
+ - ✍️ Substack: https://substack.com/@shiftaifirst
74
+
66
75
 
67
76
  ### Founder
68
77
  - **Suresh Gokarakonda**
@@ -154,6 +163,7 @@ async def main():
154
163
  message="Hello, how can I help you?",
155
164
  agent_name="SupportBot",
156
165
  agent_platform="OpenAI",
166
+ user_email="john@example.com",
157
167
  agent_version="1.0.0" # Required: Agent version
158
168
  )
159
169
 
@@ -167,7 +177,8 @@ async def main():
167
177
  agent_platform="OpenAI",
168
178
  agent_version="1.0.0", # Required: Agent version
169
179
  reply_message_id=human_response.messageId,
170
- rag_context="Retrieved context from knowledge base..."
180
+ rag_context="Retrieved context from knowledge base...",
181
+ user_email="john@example.com"
171
182
  )
172
183
 
173
184
  # 4. Get analytics
@@ -223,6 +234,7 @@ Send a human message with automatic user/agent creation.
223
234
  - `agent_version` (str, **optional**): Agent version/model (e.g., "gpt-4", "claude-2") - **Required in database**
224
235
  - `agent_metadata` (dict, **optional**): Agent configuration data (e.g., `{"temperature": 0.7, "max_tokens": 1000}`)
225
236
  - `mode` (str, **optional**): Mode identifier for the message. Allowed values: `"SIMPLE"` or `"EXPAND"`
237
+ - `conversation_id` (UUID, **optional**): Conversation ID to store the HUMAN message in. If omitted, backend creates a new conversation automatically.
226
238
 
227
239
  **Return Type:** `PlatformMessageSubmissionResponse`
228
240
 
@@ -248,6 +260,28 @@ Send a bot response to a human message.
248
260
 
249
261
  **Return Type:** `PlatformMessageSubmissionResponse`
250
262
 
263
+ **Response Notes (Cache):**
264
+ - `cacheHit` / `cacheResponse` may be present when the backend cache API was checked (typically for HUMAN messages).
265
+
266
+ ### Platform Session API
267
+
268
+ #### `await platform_session.initiate_session(request=None)`
269
+ Initiate a new conversation session.
270
+
271
+ POST `/api/platformsession/initiate`
272
+
273
+ **Return Type:** `Dict[str, Any]` (raw response body as returned by the server)
274
+
275
+ #### `await platform_session.end_conversation(conversation_id)`
276
+ End an active conversation session explicitly.
277
+
278
+ POST `/api/platformsession/endconversation`
279
+
280
+ **Parameters:**
281
+ - `conversation_id` (UUID, **required**): Conversation identifier to end
282
+
283
+ **Return Type:** `EndConversationResponse`
284
+
251
285
  #### `await messages.submit(request)`
252
286
  Low-level message submission with full control.
253
287
 
@@ -325,17 +359,26 @@ print(f"Created agent: {agent.name}")
325
359
 
326
360
  ### Analytics API
327
361
 
328
- #### `await analytics.submit_feedback(message_id, like=None, dislike=None, feedback=None, regeneration=None)`
329
- Submit user feedback on a bot message.
362
+ #### `await analytics.submit_feedback(message_id, feedback_title, feedback, liked=None, disliked=None, regeneration=None)`
363
+ Submit user feedback on a BOT message (multiple feedback per message allowed).
330
364
 
331
365
  **Parameters:**
332
- - `message_id` (UUID, **required**): ID of the bot message receiving feedback
333
- - `like` (bool, **optional**): User liked the response (true/false)
334
- - `dislike` (bool, **optional**): User disliked the response (true/false)
335
- - `feedback` (str, **optional**): Text feedback or comments (e.g., "Too verbose", "Perfect answer")
366
+ - `message_id` (UUID, **required**): ID of the BOT message receiving feedback
367
+ - `feedback_title` (str, **required**): Title for the feedback (e.g., "Response Quality Feedback")
368
+ - `feedback` (str, **required**): Feedback content (e.g., "The response was very helpful")
369
+ - `liked` (bool, **optional**): User liked the response (true/false)
370
+ - `disliked` (bool, **optional**): User disliked the response (true/false)
336
371
  - `regeneration` (bool, **optional**): User requested regeneration (true/false)
337
372
 
338
- **Return Type:** `FeedbackSubmissionResponse`
373
+ **Return Type:** `FeedbackSubmissionResponse` (includes `feedbackId`, `submittedAt`)
374
+
375
+ #### `await analytics.get_message_feedback(message_id)`
376
+ Get all feedback submissions for a specific BOT message (most recent first).
377
+
378
+ **Parameters:**
379
+ - `message_id` (UUID, **required**): UUID of the BOT message
380
+
381
+ **Return Type:** `List[FeedbackDTO]`
339
382
 
340
383
  #### `await analytics.get_dashboard()`
341
384
  Get project dashboard metrics.