shiftaiagenticinfra-sdk-python 0.0.4__tar.gz → 0.0.6__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.4/shiftaiagenticinfra_sdk_python.egg-info → shiftaiagenticinfra_sdk_python-0.0.6}/PKG-INFO +105 -2
  2. shiftaiagenticinfra_sdk_python-0.0.4/PKG-INFO → shiftaiagenticinfra_sdk_python-0.0.6/README.md +451 -377
  3. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/pyproject.toml +1 -1
  4. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/setup.py +1 -1
  5. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/__init__.py +1 -1
  6. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/__init__.py +2 -0
  7. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/messages_api.py +3 -0
  8. shiftaiagenticinfra_sdk_python-0.0.6/shiftai/api/platform_session_api.py +66 -0
  9. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/client.py +2 -0
  10. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/http/http_client.py +15 -3
  11. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/models/__init__.py +24 -0
  12. shiftaiagenticinfra_sdk_python-0.0.4/README.md → shiftaiagenticinfra_sdk_python-0.0.6/shiftaiagenticinfra_sdk_python.egg-info/PKG-INFO +480 -348
  13. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftaiagenticinfra_sdk_python.egg-info/SOURCES.txt +1 -0
  14. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/setup.cfg +0 -0
  15. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/agents_api.py +0 -0
  16. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/analytics_api.py +0 -0
  17. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/conversations_api.py +0 -0
  18. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/internal/__init__.py +0 -0
  19. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/internal/trulens_api.py +0 -0
  20. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/platform_api.py +0 -0
  21. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/api/users_api.py +0 -0
  22. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/http/__init__.py +0 -0
  23. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftai/http/exceptions.py +0 -0
  24. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftaiagenticinfra_sdk_python.egg-info/dependency_links.txt +0 -0
  25. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftaiagenticinfra_sdk_python.egg-info/requires.txt +0 -0
  26. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/shiftaiagenticinfra_sdk_python.egg-info/top_level.txt +0 -0
  27. {shiftaiagenticinfra_sdk_python-0.0.4 → shiftaiagenticinfra_sdk_python-0.0.6}/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.4
3
+ Version: 0.0.6
4
4
  Summary: Shiftai Agentic Infra Python SDK
5
5
  Author: ShiftAI
6
6
  Author-email: ShiftAI <s.tadakamalla@theshiftai.in>
@@ -31,6 +31,84 @@ Dynamic: requires-python
31
31
 
32
32
  This SDK is the official gateway to the Shift AI Agentic Infra services, enabling developers to directly integrate and use agentic capabilities in their applications.
33
33
 
34
+ ## About ShiftAI
35
+
36
+ <p align="center">
37
+ <a href="https://theshiftai.in">
38
+ <img src="https://img.shields.io/badge/Website-theshiftai.in-blue?style=for-the-badge">
39
+ </a>
40
+ <a href="https://github.com/shiftaitop">
41
+ <img src="https://img.shields.io/badge/GitHub-shiftaitop-black?style=for-the-badge">
42
+ </a>
43
+ <a href="https://www.linkedin.com/company/theshiftai-in/">
44
+ <img src="https://img.shields.io/badge/LinkedIn-ShiftAI-blue?style=for-the-badge&logo=linkedin">
45
+ </a>
46
+ <a href="https://x.com/shift_ai_first">
47
+ <img src="https://img.shields.io/badge/X(Twitter)-@shift__ai__first-black?style=for-the-badge&logo=x">
48
+ </a>
49
+ </p>
50
+
51
+ **ShiftAI** is an AI infrastructure and consulting company focused on building
52
+ **production-ready AI systems** that help organizations transform business
53
+ operations using AI.
54
+
55
+ ShiftAI works with enterprises and product teams to design, integrate, and deploy
56
+ AI-driven systems that move beyond experimentation into real-world production.
57
+
58
+ ---
59
+
60
+ ## Official ShiftAI Links
61
+
62
+ - 🌐 Website: https://theshiftai.in
63
+ - 🐙 GitHub Organization: https://github.com/shiftaitop
64
+ - 💼 LinkedIn (Company): https://www.linkedin.com/company/theshiftai-in/
65
+ - 🐦 Twitter (X): https://x.com/shift_ai_first
66
+
67
+ ### Founder
68
+ - **Suresh Gokarakonda**
69
+ - LinkedIn: https://www.linkedin.com/in/gokarakonda/
70
+
71
+ ---
72
+
73
+ ## About ShiftAI Agentic Infrastructure
74
+
75
+ **ShiftAI Agentic Infrastructure** is a **multi-tenant platform** for managing
76
+ AI-powered conversations, agents, and workflows.
77
+
78
+ Organizations register as isolated tenants and receive secure API keys for access.
79
+ The platform automatically manages conversation sessions, threads messages between
80
+ humans and agents, and maintains complete conversation history.
81
+
82
+ It supports multiple LLM providers through a **pluggable architecture**, enabling
83
+ provider switching without application-level changes.
84
+
85
+ On every interaction, the platform generates AI-enhanced contextual prompts derived
86
+ from conversation history, summarizing conversation flow, key facts, and resolved
87
+ ambiguities. This context is returned to clients and stored for future interactions.
88
+
89
+ The platform also includes built-in **evaluation and analytics** capabilities that
90
+ assess response quality, relevance, and reasoning across user–agent interactions,
91
+ providing visibility into conversation performance over time.
92
+
93
+ ---
94
+
95
+ ## Platform Usage Overview
96
+
97
+ Using ShiftAI Agentic Infrastructure through this SDK, applications typically:
98
+
99
+ 1. Initialize the SDK client using project credentials
100
+ 2. Submit human messages to start or continue conversations
101
+ 3. Receive contextual intelligence generated from conversation history
102
+ 4. Generate agent responses using the provided context
103
+ 5. Submit agent responses linked to prior human messages
104
+ 6. Monitor conversations and performance using built-in analytics
105
+
106
+ All operations are automatically scoped to the authenticated project, ensuring
107
+ secure isolation between organizations using the platform.
108
+
109
+ ---
110
+
111
+
34
112
 
35
113
 
36
114
 
@@ -76,6 +154,7 @@ async def main():
76
154
  message="Hello, how can I help you?",
77
155
  agent_name="SupportBot",
78
156
  agent_platform="OpenAI",
157
+ user_email="john@example.com",
79
158
  agent_version="1.0.0" # Required: Agent version
80
159
  )
81
160
 
@@ -89,7 +168,8 @@ async def main():
89
168
  agent_platform="OpenAI",
90
169
  agent_version="1.0.0", # Required: Agent version
91
170
  reply_message_id=human_response.messageId,
92
- rag_context="Retrieved context from knowledge base..."
171
+ rag_context="Retrieved context from knowledge base...",
172
+ user_email="john@example.com"
93
173
  )
94
174
 
95
175
  # 4. Get analytics
@@ -145,6 +225,7 @@ Send a human message with automatic user/agent creation.
145
225
  - `agent_version` (str, **optional**): Agent version/model (e.g., "gpt-4", "claude-2") - **Required in database**
146
226
  - `agent_metadata` (dict, **optional**): Agent configuration data (e.g., `{"temperature": 0.7, "max_tokens": 1000}`)
147
227
  - `mode` (str, **optional**): Mode identifier for the message. Allowed values: `"SIMPLE"` or `"EXPAND"`
228
+ - `conversation_id` (UUID, **optional**): Conversation ID to store the HUMAN message in. If omitted, backend creates a new conversation automatically.
148
229
 
149
230
  **Return Type:** `PlatformMessageSubmissionResponse`
150
231
 
@@ -170,6 +251,28 @@ Send a bot response to a human message.
170
251
 
171
252
  **Return Type:** `PlatformMessageSubmissionResponse`
172
253
 
254
+ **Response Notes (Cache):**
255
+ - `cacheHit` / `cacheResponse` may be present when the backend cache API was checked (typically for HUMAN messages).
256
+
257
+ ### Platform Session API
258
+
259
+ #### `await platform_session.initiate_session(request=None)`
260
+ Initiate a new conversation session.
261
+
262
+ POST `/api/platformsession/initiate`
263
+
264
+ **Return Type:** `Dict[str, Any]` (raw response body as returned by the server)
265
+
266
+ #### `await platform_session.end_conversation(conversation_id)`
267
+ End an active conversation session explicitly.
268
+
269
+ POST `/api/platformsession/endconversation`
270
+
271
+ **Parameters:**
272
+ - `conversation_id` (UUID, **required**): Conversation identifier to end
273
+
274
+ **Return Type:** `EndConversationResponse`
275
+
173
276
  #### `await messages.submit(request)`
174
277
  Low-level message submission with full control.
175
278