apemind-sdk 0.1.0__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.
apemind/__init__.py ADDED
@@ -0,0 +1,49 @@
1
+ """Official Python SDK for ApeMind."""
2
+
3
+ from apemind._generated import models
4
+ from apemind._generated.api import (
5
+ GENERATED_OPERATION_IDS,
6
+ OPENAPI_VERSION,
7
+ SECURITY_SCHEMES,
8
+ GeneratedAsyncAPI,
9
+ GeneratedSyncAPI,
10
+ )
11
+ from apemind._version import __version__
12
+ from apemind.client import (
13
+ ApeMindClient,
14
+ AsyncApeMindClient,
15
+ extract_turn_text,
16
+ )
17
+ from apemind.exceptions import (
18
+ ApeMindError,
19
+ ApeMindTimeoutError,
20
+ APIError,
21
+ AuthenticationError,
22
+ ConflictError,
23
+ NotFoundError,
24
+ PermissionDeniedError,
25
+ RateLimitError,
26
+ ValidationError,
27
+ )
28
+
29
+ __all__ = [
30
+ "APIError",
31
+ "ApeMindClient",
32
+ "ApeMindError",
33
+ "ApeMindTimeoutError",
34
+ "AsyncApeMindClient",
35
+ "AuthenticationError",
36
+ "ConflictError",
37
+ "GENERATED_OPERATION_IDS",
38
+ "GeneratedAsyncAPI",
39
+ "GeneratedSyncAPI",
40
+ "NotFoundError",
41
+ "OPENAPI_VERSION",
42
+ "PermissionDeniedError",
43
+ "RateLimitError",
44
+ "SECURITY_SCHEMES",
45
+ "ValidationError",
46
+ "__version__",
47
+ "extract_turn_text",
48
+ "models",
49
+ ]
@@ -0,0 +1,481 @@
1
+ """Auto-generated ApeMind OpenAPI bindings.
2
+
3
+ DO NOT EDIT MANUALLY. Regenerate via:
4
+ python3 sdk/python/scripts/generate_sdk.py
5
+ """
6
+
7
+ from apemind._generated.api import (
8
+ GENERATED_OPERATION_IDS,
9
+ OPENAPI_VERSION,
10
+ SECURITY_SCHEMES,
11
+ GeneratedAsyncAPI,
12
+ GeneratedSyncAPI,
13
+ )
14
+ from apemind._generated.models import (
15
+ ActivityData,
16
+ Agent,
17
+ AgentAgentsCapability,
18
+ AgentCapabilities,
19
+ AgentCapabilitiesConfig,
20
+ AgentCapabilityEnabled,
21
+ AgentCompletionConfig,
22
+ AgentCondition,
23
+ AgentConnectorEntry,
24
+ AgentConnectorsCapability,
25
+ AgentCreatedFrom,
26
+ AgentDecisionConfig,
27
+ AgentGrantChanges,
28
+ AgentIdentity,
29
+ AgentKnowledgeBaseEntry,
30
+ AgentKnowledgeCapability,
31
+ AgentMCPCapability,
32
+ AgentMCPServerEntry,
33
+ AgentMetadata,
34
+ AgentPolicy,
35
+ AgentResource,
36
+ AgentResourceList,
37
+ AgentRuntimeConfig,
38
+ AgentSpec,
39
+ AgentSpecPermissions,
40
+ AgentSpecRuntime,
41
+ AgentSpecUI,
42
+ AgentStatus,
43
+ AgentTurnEnvelope,
44
+ AgentTurnListResponse,
45
+ AgentTurnSnapshot,
46
+ AgentUIConfig,
47
+ AgentWorkspaceCapability,
48
+ AgentWrite,
49
+ AgentWriteResult,
50
+ AnswerEvidence,
51
+ AnswerImagePart,
52
+ APIBaseModel,
53
+ ArtifactData,
54
+ Body_collections_v2_create_documents_v2_view,
55
+ Body_collections_v2_upload_document_v2_view,
56
+ Bot,
57
+ BotAccess,
58
+ BotAgentAccess,
59
+ BotCapabilities,
60
+ BotCollectionAccess,
61
+ BotCollectionSelection,
62
+ BotConfig,
63
+ BotList,
64
+ BotWriteWarning,
65
+ BuiltinToolsConfig,
66
+ CancelTurnResponse,
67
+ CharLocation,
68
+ Chat,
69
+ ChatDetails,
70
+ ChatList,
71
+ ChatUpdate,
72
+ CitationData,
73
+ CitationMatch,
74
+ CitationMetadata,
75
+ Collection,
76
+ CollectionConfig,
77
+ CollectionConfigInputInput,
78
+ CollectionConfigInputOutput,
79
+ CollectionCreate,
80
+ CollectionIndexingSummary,
81
+ CollectionParserPolicy,
82
+ CollectionSelection,
83
+ CollectionUpdate,
84
+ CollectionView,
85
+ CollectionViewList,
86
+ CollectionWriteWarning,
87
+ ConfirmDocumentsRequest,
88
+ ConfirmDocumentsResponse,
89
+ ConsentDecisionBody,
90
+ ConsentDecisionResponse,
91
+ ContentBlockLocation,
92
+ ContextConfig,
93
+ CreateTurnRequest,
94
+ CreateTurnResponse,
95
+ DataActivityPart,
96
+ DataAnswerEvidencePart,
97
+ DataArtifactPart,
98
+ DatabaseCollectionConfig,
99
+ DatabaseCollectionConfigInput,
100
+ DataCitationPart,
101
+ DataElicitationPart,
102
+ DataHtmlArtifactPart,
103
+ DataSourceExcerptPart,
104
+ DataToolConsentPart,
105
+ DeclarationChange,
106
+ DeleteDocumentsRequest,
107
+ DeleteDocumentsResponse,
108
+ DingTalkMetadata,
109
+ Document,
110
+ DocumentContent,
111
+ DocumentContentUpdate,
112
+ DocumentFolder,
113
+ DocumentIndexFailure,
114
+ DocumentList,
115
+ DocumentListFilterGroup,
116
+ DocumentListFilterOption,
117
+ DocumentListFilters,
118
+ DocumentLocation,
119
+ DocumentPage,
120
+ DocumentSearchItem,
121
+ DocumentSearchResponse,
122
+ DocumentWriteResult,
123
+ ElicitationData,
124
+ ElicitationSubmitBody,
125
+ ElicitationSubmitResponse,
126
+ EmailAddress,
127
+ EmailAttachmentMetadata,
128
+ EmailMetadata,
129
+ EvidenceCitationProjection,
130
+ EvidenceDocumentLocation,
131
+ EvidencePageLocation,
132
+ EvidenceSentenceProjection,
133
+ FailedDocument,
134
+ FeishuMetadata,
135
+ FetchUrlRequest,
136
+ FetchUrlResponse,
137
+ FetchUrlResultItem,
138
+ FulltextSearchParams,
139
+ GraphSearchParams,
140
+ HtmlArtifactData,
141
+ HTTPValidationError,
142
+ ImageModelSelectionBinding,
143
+ IndexFailureCode,
144
+ IndexingGraphUpgradeProgress,
145
+ IndexPrompts,
146
+ KnowledgeAccessError,
147
+ KnowledgeAccessGrepGroup,
148
+ KnowledgeAccessGrepMatch,
149
+ KnowledgeAccessGrepRequest,
150
+ KnowledgeAccessGrepResponse,
151
+ KnowledgeAccessGrepScan,
152
+ KnowledgeAccessReadItem,
153
+ KnowledgeAccessReadRequest,
154
+ KnowledgeAccessReadResponse,
155
+ KnowledgeAccessSearchGroup,
156
+ KnowledgeAccessSearchItem,
157
+ KnowledgeAccessSearchRequest,
158
+ KnowledgeAccessSearchResponse,
159
+ KnowledgeBase,
160
+ KnowledgeBaseMetadata,
161
+ KnowledgeBaseResource,
162
+ KnowledgeBaseStatus,
163
+ KnowledgeBaseWrite,
164
+ KnowledgeBaseWriteResult,
165
+ KnowledgeGraphConfig,
166
+ KnowledgeImageRef,
167
+ KnowledgePage,
168
+ KnowledgeSearch,
169
+ KnowledgeSearchGroup,
170
+ KnowledgeSearchModeSkip,
171
+ KnowledgeSearchPage,
172
+ LicenseAccessDeniedDetails,
173
+ LicenseAccessDeniedResponse,
174
+ LicenseLimitExceededDetails,
175
+ LicenseLimitExceededResponse,
176
+ LicenseLimitStateUnavailableDetails,
177
+ LicenseLimitStateUnavailableResponse,
178
+ LlmCapacityView,
179
+ ModelSpecInput,
180
+ ModelSpecOutput,
181
+ NativeDocument,
182
+ OpenAIChatCompletionChoice,
183
+ OpenAIChatCompletionMessage,
184
+ OpenAIChatCompletionResponse,
185
+ OpenAIChatCompletionUsage,
186
+ OpenAIErrorDetail,
187
+ OpenAIErrorResponse,
188
+ PageLocation,
189
+ PageResult,
190
+ ParserIsolationConfig,
191
+ PlanningCapabilityConfig,
192
+ QuestionAnswerBody,
193
+ QuestionAnswerResponse,
194
+ ReasoningPart,
195
+ RebuildIndexesRequest,
196
+ RebuildIndexesResponse,
197
+ S3Metadata,
198
+ SearchRequest,
199
+ SearchResult,
200
+ SearchResultItem,
201
+ SearchResultList,
202
+ SearchResultMetadata,
203
+ SidebarChatPage,
204
+ SkillsConfig,
205
+ SourceDocumentPart,
206
+ SourceExcerptData,
207
+ SourceUrlPart,
208
+ SummarySearchParams,
209
+ TagCapabilities,
210
+ TagRef,
211
+ TextPart,
212
+ ToolConsentData,
213
+ ToolPart,
214
+ ToolsConfig,
215
+ TurnAttachmentRef,
216
+ TurnContextRequest,
217
+ TurnContextRound,
218
+ TurnContextRoundGrowth,
219
+ TurnContextRoundSources,
220
+ TurnContextToolReturn,
221
+ TurnContextUsage,
222
+ TurnEvidenceProjection,
223
+ TurnModelFallback,
224
+ TurnResponseStatistics,
225
+ TurnRuntimeMetadata,
226
+ TurnTiming,
227
+ UnavailableContextRef,
228
+ UploadDocumentResponse,
229
+ UrlCitationLocation,
230
+ User,
231
+ UserActivityContext,
232
+ UserActivityEnvelope,
233
+ UserActivityIntent,
234
+ ValidationError,
235
+ VectorBackendCapabilities,
236
+ VectorBackendInfo,
237
+ VectorSearchParams,
238
+ VisionSearchParams,
239
+ WebsiteMetadata,
240
+ WorkspaceCapabilityConfig,
241
+ WorkspaceList,
242
+ WorkspaceView,
243
+ aperag__domains__retrieval__schemas__RecommendedRead,
244
+ )
245
+
246
+ __all__ = [
247
+ 'APIBaseModel',
248
+ 'ActivityData',
249
+ 'Agent',
250
+ 'AgentAgentsCapability',
251
+ 'AgentCapabilities',
252
+ 'AgentCapabilitiesConfig',
253
+ 'AgentCapabilityEnabled',
254
+ 'AgentCompletionConfig',
255
+ 'AgentCondition',
256
+ 'AgentConnectorEntry',
257
+ 'AgentConnectorsCapability',
258
+ 'AgentCreatedFrom',
259
+ 'AgentDecisionConfig',
260
+ 'AgentGrantChanges',
261
+ 'AgentIdentity',
262
+ 'AgentKnowledgeBaseEntry',
263
+ 'AgentKnowledgeCapability',
264
+ 'AgentMCPCapability',
265
+ 'AgentMCPServerEntry',
266
+ 'AgentMetadata',
267
+ 'AgentPolicy',
268
+ 'AgentResource',
269
+ 'AgentResourceList',
270
+ 'AgentRuntimeConfig',
271
+ 'AgentSpec',
272
+ 'AgentSpecPermissions',
273
+ 'AgentSpecRuntime',
274
+ 'AgentSpecUI',
275
+ 'AgentStatus',
276
+ 'AgentTurnEnvelope',
277
+ 'AgentTurnListResponse',
278
+ 'AgentTurnSnapshot',
279
+ 'AgentUIConfig',
280
+ 'AgentWorkspaceCapability',
281
+ 'AgentWrite',
282
+ 'AgentWriteResult',
283
+ 'AnswerEvidence',
284
+ 'AnswerImagePart',
285
+ 'ArtifactData',
286
+ 'Body_collections_v2_create_documents_v2_view',
287
+ 'Body_collections_v2_upload_document_v2_view',
288
+ 'Bot',
289
+ 'BotAccess',
290
+ 'BotAgentAccess',
291
+ 'BotCapabilities',
292
+ 'BotCollectionAccess',
293
+ 'BotCollectionSelection',
294
+ 'BotConfig',
295
+ 'BotList',
296
+ 'BotWriteWarning',
297
+ 'BuiltinToolsConfig',
298
+ 'CancelTurnResponse',
299
+ 'CharLocation',
300
+ 'Chat',
301
+ 'ChatDetails',
302
+ 'ChatList',
303
+ 'ChatUpdate',
304
+ 'CitationData',
305
+ 'CitationMatch',
306
+ 'CitationMetadata',
307
+ 'Collection',
308
+ 'CollectionConfig',
309
+ 'CollectionConfigInputInput',
310
+ 'CollectionConfigInputOutput',
311
+ 'CollectionCreate',
312
+ 'CollectionIndexingSummary',
313
+ 'CollectionParserPolicy',
314
+ 'CollectionSelection',
315
+ 'CollectionUpdate',
316
+ 'CollectionView',
317
+ 'CollectionViewList',
318
+ 'CollectionWriteWarning',
319
+ 'ConfirmDocumentsRequest',
320
+ 'ConfirmDocumentsResponse',
321
+ 'ConsentDecisionBody',
322
+ 'ConsentDecisionResponse',
323
+ 'ContentBlockLocation',
324
+ 'ContextConfig',
325
+ 'CreateTurnRequest',
326
+ 'CreateTurnResponse',
327
+ 'DataActivityPart',
328
+ 'DataAnswerEvidencePart',
329
+ 'DataArtifactPart',
330
+ 'DataCitationPart',
331
+ 'DataElicitationPart',
332
+ 'DataHtmlArtifactPart',
333
+ 'DataSourceExcerptPart',
334
+ 'DataToolConsentPart',
335
+ 'DatabaseCollectionConfig',
336
+ 'DatabaseCollectionConfigInput',
337
+ 'DeclarationChange',
338
+ 'DeleteDocumentsRequest',
339
+ 'DeleteDocumentsResponse',
340
+ 'DingTalkMetadata',
341
+ 'Document',
342
+ 'DocumentContent',
343
+ 'DocumentContentUpdate',
344
+ 'DocumentFolder',
345
+ 'DocumentIndexFailure',
346
+ 'DocumentList',
347
+ 'DocumentListFilterGroup',
348
+ 'DocumentListFilterOption',
349
+ 'DocumentListFilters',
350
+ 'DocumentLocation',
351
+ 'DocumentPage',
352
+ 'DocumentSearchItem',
353
+ 'DocumentSearchResponse',
354
+ 'DocumentWriteResult',
355
+ 'ElicitationData',
356
+ 'ElicitationSubmitBody',
357
+ 'ElicitationSubmitResponse',
358
+ 'EmailAddress',
359
+ 'EmailAttachmentMetadata',
360
+ 'EmailMetadata',
361
+ 'EvidenceCitationProjection',
362
+ 'EvidenceDocumentLocation',
363
+ 'EvidencePageLocation',
364
+ 'EvidenceSentenceProjection',
365
+ 'FailedDocument',
366
+ 'FeishuMetadata',
367
+ 'FetchUrlRequest',
368
+ 'FetchUrlResponse',
369
+ 'FetchUrlResultItem',
370
+ 'FulltextSearchParams',
371
+ 'GENERATED_OPERATION_IDS',
372
+ 'GeneratedAsyncAPI',
373
+ 'GeneratedSyncAPI',
374
+ 'GraphSearchParams',
375
+ 'HTTPValidationError',
376
+ 'HtmlArtifactData',
377
+ 'ImageModelSelectionBinding',
378
+ 'IndexFailureCode',
379
+ 'IndexPrompts',
380
+ 'IndexingGraphUpgradeProgress',
381
+ 'KnowledgeAccessError',
382
+ 'KnowledgeAccessGrepGroup',
383
+ 'KnowledgeAccessGrepMatch',
384
+ 'KnowledgeAccessGrepRequest',
385
+ 'KnowledgeAccessGrepResponse',
386
+ 'KnowledgeAccessGrepScan',
387
+ 'KnowledgeAccessReadItem',
388
+ 'KnowledgeAccessReadRequest',
389
+ 'KnowledgeAccessReadResponse',
390
+ 'KnowledgeAccessSearchGroup',
391
+ 'KnowledgeAccessSearchItem',
392
+ 'KnowledgeAccessSearchRequest',
393
+ 'KnowledgeAccessSearchResponse',
394
+ 'KnowledgeBase',
395
+ 'KnowledgeBaseMetadata',
396
+ 'KnowledgeBaseResource',
397
+ 'KnowledgeBaseStatus',
398
+ 'KnowledgeBaseWrite',
399
+ 'KnowledgeBaseWriteResult',
400
+ 'KnowledgeGraphConfig',
401
+ 'KnowledgeImageRef',
402
+ 'KnowledgePage',
403
+ 'KnowledgeSearch',
404
+ 'KnowledgeSearchGroup',
405
+ 'KnowledgeSearchModeSkip',
406
+ 'KnowledgeSearchPage',
407
+ 'LicenseAccessDeniedDetails',
408
+ 'LicenseAccessDeniedResponse',
409
+ 'LicenseLimitExceededDetails',
410
+ 'LicenseLimitExceededResponse',
411
+ 'LicenseLimitStateUnavailableDetails',
412
+ 'LicenseLimitStateUnavailableResponse',
413
+ 'LlmCapacityView',
414
+ 'ModelSpecInput',
415
+ 'ModelSpecOutput',
416
+ 'NativeDocument',
417
+ 'OPENAPI_VERSION',
418
+ 'OpenAIChatCompletionChoice',
419
+ 'OpenAIChatCompletionMessage',
420
+ 'OpenAIChatCompletionResponse',
421
+ 'OpenAIChatCompletionUsage',
422
+ 'OpenAIErrorDetail',
423
+ 'OpenAIErrorResponse',
424
+ 'PageLocation',
425
+ 'PageResult',
426
+ 'ParserIsolationConfig',
427
+ 'PlanningCapabilityConfig',
428
+ 'QuestionAnswerBody',
429
+ 'QuestionAnswerResponse',
430
+ 'ReasoningPart',
431
+ 'RebuildIndexesRequest',
432
+ 'RebuildIndexesResponse',
433
+ 'S3Metadata',
434
+ 'SECURITY_SCHEMES',
435
+ 'SearchRequest',
436
+ 'SearchResult',
437
+ 'SearchResultItem',
438
+ 'SearchResultList',
439
+ 'SearchResultMetadata',
440
+ 'SidebarChatPage',
441
+ 'SkillsConfig',
442
+ 'SourceDocumentPart',
443
+ 'SourceExcerptData',
444
+ 'SourceUrlPart',
445
+ 'SummarySearchParams',
446
+ 'TagCapabilities',
447
+ 'TagRef',
448
+ 'TextPart',
449
+ 'ToolConsentData',
450
+ 'ToolPart',
451
+ 'ToolsConfig',
452
+ 'TurnAttachmentRef',
453
+ 'TurnContextRequest',
454
+ 'TurnContextRound',
455
+ 'TurnContextRoundGrowth',
456
+ 'TurnContextRoundSources',
457
+ 'TurnContextToolReturn',
458
+ 'TurnContextUsage',
459
+ 'TurnEvidenceProjection',
460
+ 'TurnModelFallback',
461
+ 'TurnResponseStatistics',
462
+ 'TurnRuntimeMetadata',
463
+ 'TurnTiming',
464
+ 'UnavailableContextRef',
465
+ 'UploadDocumentResponse',
466
+ 'UrlCitationLocation',
467
+ 'User',
468
+ 'UserActivityContext',
469
+ 'UserActivityEnvelope',
470
+ 'UserActivityIntent',
471
+ 'ValidationError',
472
+ 'VectorBackendCapabilities',
473
+ 'VectorBackendInfo',
474
+ 'VectorSearchParams',
475
+ 'VisionSearchParams',
476
+ 'WebsiteMetadata',
477
+ 'WorkspaceCapabilityConfig',
478
+ 'WorkspaceList',
479
+ 'WorkspaceView',
480
+ 'aperag__domains__retrieval__schemas__RecommendedRead',
481
+ ]