smallestai 2.2.0__py3-none-any.whl → 3.0.1__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.

Potentially problematic release.


This version of smallestai might be problematic. Click here for more details.

Files changed (90) hide show
  1. smallestai/__init__.py +95 -0
  2. smallestai/atoms/__init__.py +182 -0
  3. smallestai/atoms/api/__init__.py +12 -0
  4. smallestai/atoms/api/agent_templates_api.py +573 -0
  5. smallestai/atoms/api/agents_api.py +1465 -0
  6. smallestai/atoms/api/calls_api.py +320 -0
  7. smallestai/atoms/api/campaigns_api.py +1689 -0
  8. smallestai/atoms/api/knowledge_base_api.py +2271 -0
  9. smallestai/atoms/api/logs_api.py +305 -0
  10. smallestai/atoms/api/organization_api.py +285 -0
  11. smallestai/atoms/api/user_api.py +285 -0
  12. smallestai/atoms/api_client.py +797 -0
  13. smallestai/atoms/api_response.py +21 -0
  14. smallestai/atoms/atoms_client.py +560 -0
  15. smallestai/atoms/configuration.py +582 -0
  16. smallestai/atoms/exceptions.py +216 -0
  17. smallestai/atoms/models/__init__.py +72 -0
  18. smallestai/atoms/models/agent_dto.py +130 -0
  19. smallestai/atoms/models/agent_dto_language.py +91 -0
  20. smallestai/atoms/models/agent_dto_synthesizer.py +99 -0
  21. smallestai/atoms/models/agent_dto_synthesizer_voice_config.py +111 -0
  22. smallestai/atoms/models/api_response.py +89 -0
  23. smallestai/atoms/models/bad_request_error_response.py +89 -0
  24. smallestai/atoms/models/create_agent_from_template200_response.py +89 -0
  25. smallestai/atoms/models/create_agent_from_template_request.py +91 -0
  26. smallestai/atoms/models/create_agent_request.py +113 -0
  27. smallestai/atoms/models/create_agent_request_language.py +124 -0
  28. smallestai/atoms/models/create_agent_request_language_synthesizer.py +110 -0
  29. smallestai/atoms/models/create_agent_request_language_synthesizer_voice_config.py +137 -0
  30. smallestai/atoms/models/create_campaign201_response.py +93 -0
  31. smallestai/atoms/models/create_campaign201_response_data.py +104 -0
  32. smallestai/atoms/models/create_campaign_request.py +93 -0
  33. smallestai/atoms/models/create_knowledge_base201_response.py +89 -0
  34. smallestai/atoms/models/create_knowledge_base_request.py +89 -0
  35. smallestai/atoms/models/delete_agent200_response.py +87 -0
  36. smallestai/atoms/models/get_agent_by_id200_response.py +93 -0
  37. smallestai/atoms/models/get_agent_templates200_response.py +97 -0
  38. smallestai/atoms/models/get_agent_templates200_response_data_inner.py +97 -0
  39. smallestai/atoms/models/get_agents200_response.py +93 -0
  40. smallestai/atoms/models/get_agents200_response_data.py +101 -0
  41. smallestai/atoms/models/get_campaign_by_id200_response.py +93 -0
  42. smallestai/atoms/models/get_campaign_by_id200_response_data.py +110 -0
  43. smallestai/atoms/models/get_campaigns200_response.py +97 -0
  44. smallestai/atoms/models/get_campaigns200_response_data_inner.py +118 -0
  45. smallestai/atoms/models/get_campaigns200_response_data_inner_agent.py +89 -0
  46. smallestai/atoms/models/get_campaigns200_response_data_inner_audience.py +89 -0
  47. smallestai/atoms/models/get_campaigns_request.py +89 -0
  48. smallestai/atoms/models/get_conversation_logs200_response.py +93 -0
  49. smallestai/atoms/models/get_conversation_logs200_response_data.py +125 -0
  50. smallestai/atoms/models/get_current_user200_response.py +93 -0
  51. smallestai/atoms/models/get_current_user200_response_data.py +99 -0
  52. smallestai/atoms/models/get_knowledge_base_by_id200_response.py +93 -0
  53. smallestai/atoms/models/get_knowledge_base_items200_response.py +97 -0
  54. smallestai/atoms/models/get_knowledge_bases200_response.py +97 -0
  55. smallestai/atoms/models/get_organization200_response.py +93 -0
  56. smallestai/atoms/models/get_organization200_response_data.py +105 -0
  57. smallestai/atoms/models/get_organization200_response_data_members_inner.py +89 -0
  58. smallestai/atoms/models/get_organization200_response_data_subscription.py +87 -0
  59. smallestai/atoms/models/internal_server_error_response.py +89 -0
  60. smallestai/atoms/models/knowledge_base_dto.py +93 -0
  61. smallestai/atoms/models/knowledge_base_item_dto.py +124 -0
  62. smallestai/atoms/models/start_outbound_call200_response.py +93 -0
  63. smallestai/atoms/models/start_outbound_call200_response_data.py +87 -0
  64. smallestai/atoms/models/start_outbound_call_request.py +89 -0
  65. smallestai/atoms/models/unauthorized_error_reponse.py +89 -0
  66. smallestai/atoms/models/update_agent200_response.py +89 -0
  67. smallestai/atoms/models/update_agent_request.py +119 -0
  68. smallestai/atoms/models/update_agent_request_language.py +99 -0
  69. smallestai/atoms/models/update_agent_request_synthesizer.py +110 -0
  70. smallestai/atoms/models/update_agent_request_synthesizer_voice_config.py +137 -0
  71. smallestai/atoms/models/update_agent_request_synthesizer_voice_config_one_of.py +111 -0
  72. smallestai/atoms/models/update_agent_request_synthesizer_voice_config_one_of1.py +99 -0
  73. smallestai/atoms/models/upload_text_to_knowledge_base_request.py +89 -0
  74. smallestai/atoms/py.typed +0 -0
  75. smallestai/atoms/rest.py +258 -0
  76. smallestai/waves/__init__.py +5 -0
  77. smallest/async_tts.py → smallestai/waves/async_waves_client.py +3 -3
  78. {smallest → smallestai/waves}/stream_tts.py +6 -6
  79. {smallest → smallestai/waves}/utils.py +2 -2
  80. smallest/tts.py → smallestai/waves/waves_client.py +3 -3
  81. {smallestai-2.2.0.dist-info → smallestai-3.0.1.dist-info}/METADATA +182 -43
  82. smallestai-3.0.1.dist-info/RECORD +87 -0
  83. {smallestai-2.2.0.dist-info → smallestai-3.0.1.dist-info}/WHEEL +1 -1
  84. smallestai-3.0.1.dist-info/top_level.txt +1 -0
  85. smallest/__init__.py +0 -5
  86. smallestai-2.2.0.dist-info/RECORD +0 -12
  87. smallestai-2.2.0.dist-info/top_level.txt +0 -1
  88. {smallest → smallestai/waves}/exceptions.py +0 -0
  89. {smallest → smallestai/waves}/models.py +0 -0
  90. {smallestai-2.2.0.dist-info → smallestai-3.0.1.dist-info/licenses}/LICENSE +0 -0
smallestai/__init__.py ADDED
@@ -0,0 +1,95 @@
1
+ """
2
+ SmallestAI Python SDK
3
+
4
+ This package provides access to both the Atoms API (agent management)
5
+ and Waves API components.
6
+ """
7
+
8
+ from smallestai.atoms import (
9
+ AgentTemplatesApi,
10
+ AgentsApi,
11
+ CallsApi,
12
+ CampaignsApi,
13
+ KnowledgeBaseApi,
14
+ LogsApi,
15
+ OrganizationApi,
16
+ UserApi,
17
+ ApiResponse,
18
+ ApiClient,
19
+ Configuration,
20
+ OpenApiException,
21
+ ApiTypeError,
22
+ ApiValueError,
23
+ ApiKeyError,
24
+ ApiAttributeError,
25
+ ApiException,
26
+ AgentDTO,
27
+ AgentDTOLanguage,
28
+ AgentDTOSynthesizer,
29
+ AgentDTOSynthesizerVoiceConfig,
30
+ BadRequestErrorResponse,
31
+ CreateAgentFromTemplate200Response,
32
+ CreateAgentFromTemplateRequest,
33
+ CreateAgentRequest,
34
+ CreateAgentRequestLanguage,
35
+ CreateAgentRequestLanguageSynthesizer,
36
+ CreateAgentRequestLanguageSynthesizerVoiceConfig,
37
+ CreateCampaign201Response,
38
+ CreateCampaign201ResponseData,
39
+ CreateCampaignRequest,
40
+ CreateKnowledgeBase201Response,
41
+ CreateKnowledgeBaseRequest,
42
+ DeleteAgent200Response,
43
+ GetAgentById200Response,
44
+ GetAgentTemplates200Response,
45
+ GetAgentTemplates200ResponseDataInner,
46
+ GetAgents200Response,
47
+ GetAgents200ResponseData,
48
+ GetCampaignById200Response,
49
+ GetCampaignById200ResponseData,
50
+ GetCampaigns200Response,
51
+ GetCampaigns200ResponseDataInner,
52
+ GetCampaigns200ResponseDataInnerAgent,
53
+ GetCampaigns200ResponseDataInnerAudience,
54
+ GetCampaignsRequest,
55
+ GetConversationLogs200Response,
56
+ GetConversationLogs200ResponseData,
57
+ GetCurrentUser200Response,
58
+ GetCurrentUser200ResponseData,
59
+ GetKnowledgeBaseById200Response,
60
+ GetKnowledgeBaseItems200Response,
61
+ GetKnowledgeBases200Response,
62
+ GetOrganization200Response,
63
+ GetOrganization200ResponseData,
64
+ GetOrganization200ResponseDataMembersInner,
65
+ GetOrganization200ResponseDataSubscription,
66
+ InternalServerErrorResponse,
67
+ KnowledgeBaseDTO,
68
+ KnowledgeBaseItemDTO,
69
+ StartOutboundCall200Response,
70
+ StartOutboundCall200ResponseData,
71
+ StartOutboundCallRequest,
72
+ UnauthorizedErrorReponse,
73
+ UpdateAgent200Response,
74
+ UpdateAgentRequest,
75
+ UpdateAgentRequestLanguage,
76
+ UpdateAgentRequestSynthesizer,
77
+ UpdateAgentRequestSynthesizerVoiceConfig,
78
+ UpdateAgentRequestSynthesizerVoiceConfigOneOf,
79
+ UpdateAgentRequestSynthesizerVoiceConfigOneOf1,
80
+ UploadTextToKnowledgeBaseRequest,
81
+ AtomsClient
82
+ )
83
+
84
+ from smallestai.waves import (
85
+ WavesClient,
86
+ AsyncWavesClient,
87
+ TextToAudioStream
88
+ )
89
+
90
+ from smallestai.atoms import __all__ as atoms_all
91
+ from smallestai.waves import __all__ as waves_all
92
+
93
+ __all__ = atoms_all + waves_all
94
+
95
+ __version__ = "3.0.0"
@@ -0,0 +1,182 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Agent Management API
7
+
8
+ API for managing agents, their templates, and call logs
9
+
10
+ The version of the OpenAPI document: 1.0.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ # import apis into sdk package
18
+ from smallestai.atoms.api.agent_templates_api import AgentTemplatesApi
19
+ from smallestai.atoms.api.agents_api import AgentsApi
20
+ from smallestai.atoms.api.calls_api import CallsApi
21
+ from smallestai.atoms.api.campaigns_api import CampaignsApi
22
+ from smallestai.atoms.api.knowledge_base_api import KnowledgeBaseApi
23
+ from smallestai.atoms.api.logs_api import LogsApi
24
+ from smallestai.atoms.api.organization_api import OrganizationApi
25
+ from smallestai.atoms.api.user_api import UserApi
26
+
27
+ # import ApiClient
28
+ from smallestai.atoms.api_response import ApiResponse
29
+ from smallestai.atoms.api_client import ApiClient
30
+ from smallestai.atoms.configuration import Configuration
31
+ from smallestai.atoms.exceptions import OpenApiException
32
+ from smallestai.atoms.exceptions import ApiTypeError
33
+ from smallestai.atoms.exceptions import ApiValueError
34
+ from smallestai.atoms.exceptions import ApiKeyError
35
+ from smallestai.atoms.exceptions import ApiAttributeError
36
+ from smallestai.atoms.exceptions import ApiException
37
+
38
+ # import models into sdk package
39
+ from smallestai.atoms.models.agent_dto import AgentDTO
40
+ from smallestai.atoms.models.agent_dto_language import AgentDTOLanguage
41
+ from smallestai.atoms.models.agent_dto_synthesizer import AgentDTOSynthesizer
42
+ from smallestai.atoms.models.agent_dto_synthesizer_voice_config import AgentDTOSynthesizerVoiceConfig
43
+ from smallestai.atoms.models.api_response import ApiResponse
44
+ from smallestai.atoms.models.bad_request_error_response import BadRequestErrorResponse
45
+ from smallestai.atoms.models.create_agent_from_template200_response import CreateAgentFromTemplate200Response
46
+ from smallestai.atoms.models.create_agent_from_template_request import CreateAgentFromTemplateRequest
47
+ from smallestai.atoms.models.create_agent_request import CreateAgentRequest
48
+ from smallestai.atoms.models.create_agent_request_language import CreateAgentRequestLanguage
49
+ from smallestai.atoms.models.create_agent_request_language_synthesizer import CreateAgentRequestLanguageSynthesizer
50
+ from smallestai.atoms.models.create_agent_request_language_synthesizer_voice_config import CreateAgentRequestLanguageSynthesizerVoiceConfig
51
+ from smallestai.atoms.models.create_campaign201_response import CreateCampaign201Response
52
+ from smallestai.atoms.models.create_campaign201_response_data import CreateCampaign201ResponseData
53
+ from smallestai.atoms.models.create_campaign_request import CreateCampaignRequest
54
+ from smallestai.atoms.models.create_knowledge_base201_response import CreateKnowledgeBase201Response
55
+ from smallestai.atoms.models.create_knowledge_base_request import CreateKnowledgeBaseRequest
56
+ from smallestai.atoms.models.delete_agent200_response import DeleteAgent200Response
57
+ from smallestai.atoms.models.get_agent_by_id200_response import GetAgentById200Response
58
+ from smallestai.atoms.models.get_agent_templates200_response import GetAgentTemplates200Response
59
+ from smallestai.atoms.models.get_agent_templates200_response_data_inner import GetAgentTemplates200ResponseDataInner
60
+ from smallestai.atoms.models.get_agents200_response import GetAgents200Response
61
+ from smallestai.atoms.models.get_agents200_response_data import GetAgents200ResponseData
62
+ from smallestai.atoms.models.get_campaign_by_id200_response import GetCampaignById200Response
63
+ from smallestai.atoms.models.get_campaign_by_id200_response_data import GetCampaignById200ResponseData
64
+ from smallestai.atoms.models.get_campaigns200_response import GetCampaigns200Response
65
+ from smallestai.atoms.models.get_campaigns200_response_data_inner import GetCampaigns200ResponseDataInner
66
+ from smallestai.atoms.models.get_campaigns200_response_data_inner_agent import GetCampaigns200ResponseDataInnerAgent
67
+ from smallestai.atoms.models.get_campaigns200_response_data_inner_audience import GetCampaigns200ResponseDataInnerAudience
68
+ from smallestai.atoms.models.get_campaigns_request import GetCampaignsRequest
69
+ from smallestai.atoms.models.get_conversation_logs200_response import GetConversationLogs200Response
70
+ from smallestai.atoms.models.get_conversation_logs200_response_data import GetConversationLogs200ResponseData
71
+ from smallestai.atoms.models.get_current_user200_response import GetCurrentUser200Response
72
+ from smallestai.atoms.models.get_current_user200_response_data import GetCurrentUser200ResponseData
73
+ from smallestai.atoms.models.get_knowledge_base_by_id200_response import GetKnowledgeBaseById200Response
74
+ from smallestai.atoms.models.get_knowledge_base_items200_response import GetKnowledgeBaseItems200Response
75
+ from smallestai.atoms.models.get_knowledge_bases200_response import GetKnowledgeBases200Response
76
+ from smallestai.atoms.models.get_organization200_response import GetOrganization200Response
77
+ from smallestai.atoms.models.get_organization200_response_data import GetOrganization200ResponseData
78
+ from smallestai.atoms.models.get_organization200_response_data_members_inner import GetOrganization200ResponseDataMembersInner
79
+ from smallestai.atoms.models.get_organization200_response_data_subscription import GetOrganization200ResponseDataSubscription
80
+ from smallestai.atoms.models.internal_server_error_response import InternalServerErrorResponse
81
+ from smallestai.atoms.models.knowledge_base_dto import KnowledgeBaseDTO
82
+ from smallestai.atoms.models.knowledge_base_item_dto import KnowledgeBaseItemDTO
83
+ from smallestai.atoms.models.start_outbound_call200_response import StartOutboundCall200Response
84
+ from smallestai.atoms.models.start_outbound_call200_response_data import StartOutboundCall200ResponseData
85
+ from smallestai.atoms.models.start_outbound_call_request import StartOutboundCallRequest
86
+ from smallestai.atoms.models.unauthorized_error_reponse import UnauthorizedErrorReponse
87
+ from smallestai.atoms.models.update_agent200_response import UpdateAgent200Response
88
+ from smallestai.atoms.models.update_agent_request import UpdateAgentRequest
89
+ from smallestai.atoms.models.update_agent_request_language import UpdateAgentRequestLanguage
90
+ from smallestai.atoms.models.update_agent_request_synthesizer import UpdateAgentRequestSynthesizer
91
+ from smallestai.atoms.models.update_agent_request_synthesizer_voice_config import UpdateAgentRequestSynthesizerVoiceConfig
92
+ from smallestai.atoms.models.update_agent_request_synthesizer_voice_config_one_of import UpdateAgentRequestSynthesizerVoiceConfigOneOf
93
+ from smallestai.atoms.models.update_agent_request_synthesizer_voice_config_one_of1 import UpdateAgentRequestSynthesizerVoiceConfigOneOf1
94
+ from smallestai.atoms.models.upload_text_to_knowledge_base_request import UploadTextToKnowledgeBaseRequest
95
+
96
+ from smallestai.atoms.atoms_client import AtomsClient
97
+
98
+ __all__ = [
99
+ # APIs
100
+ 'AgentTemplatesApi',
101
+ 'AgentsApi',
102
+ 'CallsApi',
103
+ 'CampaignsApi',
104
+ 'KnowledgeBaseApi',
105
+ 'LogsApi',
106
+ 'OrganizationApi',
107
+ 'UserApi',
108
+
109
+ # Core classes
110
+ 'ApiResponse',
111
+ 'ApiClient',
112
+ 'Configuration',
113
+
114
+ # Exceptions
115
+ 'OpenApiException',
116
+ 'ApiTypeError',
117
+ 'ApiValueError',
118
+ 'ApiKeyError',
119
+ 'ApiAttributeError',
120
+ 'ApiException',
121
+
122
+ # Models
123
+ 'AgentDTO',
124
+ 'AgentDTOLanguage',
125
+ 'AgentDTOSynthesizer',
126
+ 'AgentDTOSynthesizerVoiceConfig',
127
+ 'ApiResponse',
128
+ 'BadRequestErrorResponse',
129
+ 'CreateAgentFromTemplate200Response',
130
+ 'CreateAgentFromTemplateRequest',
131
+ 'CreateAgentRequest',
132
+ 'CreateAgentRequestLanguage',
133
+ 'CreateAgentRequestLanguageSynthesizer',
134
+ 'CreateAgentRequestLanguageSynthesizerVoiceConfig',
135
+ 'CreateCampaign201Response',
136
+ 'CreateCampaign201ResponseData',
137
+ 'CreateCampaignRequest',
138
+ 'CreateKnowledgeBase201Response',
139
+ 'CreateKnowledgeBaseRequest',
140
+ 'DeleteAgent200Response',
141
+ 'GetAgentById200Response',
142
+ 'GetAgentTemplates200Response',
143
+ 'GetAgentTemplates200ResponseDataInner',
144
+ 'GetAgents200Response',
145
+ 'GetAgents200ResponseData',
146
+ 'GetCampaignById200Response',
147
+ 'GetCampaignById200ResponseData',
148
+ 'GetCampaigns200Response',
149
+ 'GetCampaigns200ResponseDataInner',
150
+ 'GetCampaigns200ResponseDataInnerAgent',
151
+ 'GetCampaigns200ResponseDataInnerAudience',
152
+ 'GetCampaignsRequest',
153
+ 'GetConversationLogs200Response',
154
+ 'GetConversationLogs200ResponseData',
155
+ 'GetCurrentUser200Response',
156
+ 'GetCurrentUser200ResponseData',
157
+ 'GetKnowledgeBaseById200Response',
158
+ 'GetKnowledgeBaseItems200Response',
159
+ 'GetKnowledgeBases200Response',
160
+ 'GetOrganization200Response',
161
+ 'GetOrganization200ResponseData',
162
+ 'GetOrganization200ResponseDataMembersInner',
163
+ 'GetOrganization200ResponseDataSubscription',
164
+ 'InternalServerErrorResponse',
165
+ 'KnowledgeBaseDTO',
166
+ 'KnowledgeBaseItemDTO',
167
+ 'StartOutboundCall200Response',
168
+ 'StartOutboundCall200ResponseData',
169
+ 'StartOutboundCallRequest',
170
+ 'UnauthorizedErrorReponse',
171
+ 'UpdateAgent200Response',
172
+ 'UpdateAgentRequest',
173
+ 'UpdateAgentRequestLanguage',
174
+ 'UpdateAgentRequestSynthesizer',
175
+ 'UpdateAgentRequestSynthesizerVoiceConfig',
176
+ 'UpdateAgentRequestSynthesizerVoiceConfigOneOf',
177
+ 'UpdateAgentRequestSynthesizerVoiceConfigOneOf1',
178
+ 'UploadTextToKnowledgeBaseRequest',
179
+
180
+ # Main Client
181
+ 'AtomsClient'
182
+ ]
@@ -0,0 +1,12 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from smallestai.atoms.api.agent_templates_api import AgentTemplatesApi
5
+ from smallestai.atoms.api.agents_api import AgentsApi
6
+ from smallestai.atoms.api.calls_api import CallsApi
7
+ from smallestai.atoms.api.campaigns_api import CampaignsApi
8
+ from smallestai.atoms.api.knowledge_base_api import KnowledgeBaseApi
9
+ from smallestai.atoms.api.logs_api import LogsApi
10
+ from smallestai.atoms.api.organization_api import OrganizationApi
11
+ from smallestai.atoms.api.user_api import UserApi
12
+