bpmlinks-smartspend-test 0.1.0__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 (578) hide show
  1. bpmlinks_smartspend_test-0.1.0/.gitignore +40 -0
  2. bpmlinks_smartspend_test-0.1.0/LICENSE +21 -0
  3. bpmlinks_smartspend_test-0.1.0/NOTICE +32 -0
  4. bpmlinks_smartspend_test-0.1.0/PKG-INFO +103 -0
  5. bpmlinks_smartspend_test-0.1.0/README.md +84 -0
  6. bpmlinks_smartspend_test-0.1.0/pyproject.toml +140 -0
  7. bpmlinks_smartspend_test-0.1.0/smartspend/__init__.py +144 -0
  8. bpmlinks_smartspend_test-0.1.0/smartspend/_client/attributes.py +215 -0
  9. bpmlinks_smartspend_test-0.1.0/smartspend/_client/client.py +4251 -0
  10. bpmlinks_smartspend_test-0.1.0/smartspend/_client/constants.py +65 -0
  11. bpmlinks_smartspend_test-0.1.0/smartspend/_client/datasets.py +302 -0
  12. bpmlinks_smartspend_test-0.1.0/smartspend/_client/environment_variables.py +184 -0
  13. bpmlinks_smartspend_test-0.1.0/smartspend/_client/get_client.py +152 -0
  14. bpmlinks_smartspend_test-0.1.0/smartspend/_client/observe.py +798 -0
  15. bpmlinks_smartspend_test-0.1.0/smartspend/_client/privacy.py +136 -0
  16. bpmlinks_smartspend_test-0.1.0/smartspend/_client/propagation.py +786 -0
  17. bpmlinks_smartspend_test-0.1.0/smartspend/_client/resource_manager.py +669 -0
  18. bpmlinks_smartspend_test-0.1.0/smartspend/_client/span.py +1539 -0
  19. bpmlinks_smartspend_test-0.1.0/smartspend/_client/span_exporter.py +663 -0
  20. bpmlinks_smartspend_test-0.1.0/smartspend/_client/span_filter.py +119 -0
  21. bpmlinks_smartspend_test-0.1.0/smartspend/_client/span_processor.py +332 -0
  22. bpmlinks_smartspend_test-0.1.0/smartspend/_client/utils.py +158 -0
  23. bpmlinks_smartspend_test-0.1.0/smartspend/_task_manager/media_manager.py +454 -0
  24. bpmlinks_smartspend_test-0.1.0/smartspend/_task_manager/media_upload_consumer.py +44 -0
  25. bpmlinks_smartspend_test-0.1.0/smartspend/_task_manager/media_upload_queue.py +14 -0
  26. bpmlinks_smartspend_test-0.1.0/smartspend/_task_manager/score_ingestion_consumer.py +185 -0
  27. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/__init__.py +19 -0
  28. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/environment.py +34 -0
  29. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/error_logging.py +47 -0
  30. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/json_path.py +74 -0
  31. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/parse_error.py +99 -0
  32. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/prompt_cache.py +231 -0
  33. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/request.py +136 -0
  34. bpmlinks_smartspend_test-0.1.0/smartspend/_utils/serializer.py +230 -0
  35. bpmlinks_smartspend_test-0.1.0/smartspend/_version.py +19 -0
  36. bpmlinks_smartspend_test-0.1.0/smartspend/anthropic.py +308 -0
  37. bpmlinks_smartspend_test-0.1.0/smartspend/api/.fern/metadata.json +14 -0
  38. bpmlinks_smartspend_test-0.1.0/smartspend/api/__init__.py +1013 -0
  39. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/__init__.py +82 -0
  40. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/client.py +1111 -0
  41. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/raw_client.py +2288 -0
  42. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/__init__.py +84 -0
  43. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/annotation_queue.py +28 -0
  44. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/annotation_queue_assignment_request.py +16 -0
  45. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/annotation_queue_item.py +34 -0
  46. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/annotation_queue_object_type.py +26 -0
  47. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/annotation_queue_status.py +22 -0
  48. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/create_annotation_queue_assignment_response.py +18 -0
  49. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/create_annotation_queue_item_request.py +25 -0
  50. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/create_annotation_queue_request.py +20 -0
  51. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/delete_annotation_queue_assignment_response.py +14 -0
  52. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/delete_annotation_queue_item_response.py +15 -0
  53. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/paginated_annotation_queue_items.py +17 -0
  54. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/paginated_annotation_queues.py +17 -0
  55. bpmlinks_smartspend_test-0.1.0/smartspend/api/annotation_queues/types/update_annotation_queue_item_request.py +15 -0
  56. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/__init__.py +82 -0
  57. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/client.py +598 -0
  58. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/raw_client.py +1024 -0
  59. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/__init__.py +88 -0
  60. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_export_field_group.py +62 -0
  61. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_export_frequency.py +30 -0
  62. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_export_mode.py +26 -0
  63. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_export_source.py +35 -0
  64. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_integration_deletion_response.py +14 -0
  65. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_integration_file_type.py +34 -0
  66. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_integration_file_type_response.py +34 -0
  67. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_integration_response.py +80 -0
  68. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_integration_status_response.py +50 -0
  69. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_integration_type.py +26 -0
  70. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_integrations_response.py +15 -0
  71. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/blob_storage_sync_status.py +52 -0
  72. bpmlinks_smartspend_test-0.1.0/smartspend/api/blob_storage_integrations/types/create_blob_storage_integration_request.py +119 -0
  73. bpmlinks_smartspend_test-0.1.0/smartspend/api/client.py +757 -0
  74. bpmlinks_smartspend_test-0.1.0/smartspend/api/comments/__init__.py +44 -0
  75. bpmlinks_smartspend_test-0.1.0/smartspend/api/comments/client.py +407 -0
  76. bpmlinks_smartspend_test-0.1.0/smartspend/api/comments/raw_client.py +750 -0
  77. bpmlinks_smartspend_test-0.1.0/smartspend/api/comments/types/__init__.py +46 -0
  78. bpmlinks_smartspend_test-0.1.0/smartspend/api/comments/types/create_comment_request.py +47 -0
  79. bpmlinks_smartspend_test-0.1.0/smartspend/api/comments/types/create_comment_response.py +17 -0
  80. bpmlinks_smartspend_test-0.1.0/smartspend/api/comments/types/get_comments_response.py +17 -0
  81. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/__init__.py +246 -0
  82. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/errors/__init__.py +56 -0
  83. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/errors/access_denied_error.py +12 -0
  84. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/errors/error.py +12 -0
  85. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/errors/method_not_allowed_error.py +12 -0
  86. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/errors/not_found_error.py +12 -0
  87. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/errors/unauthorized_error.py +12 -0
  88. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/__init__.py +231 -0
  89. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/base_score.py +90 -0
  90. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/base_score_v1.py +70 -0
  91. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/boolean_score.py +26 -0
  92. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/boolean_score_v1.py +26 -0
  93. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/categorical_score.py +26 -0
  94. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/categorical_score_v1.py +26 -0
  95. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/comment.py +36 -0
  96. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/comment_object_type.py +30 -0
  97. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/config_category.py +15 -0
  98. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/correction_score.py +26 -0
  99. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/create_score_value.py +5 -0
  100. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset.py +49 -0
  101. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_item.py +65 -0
  102. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_item_media_reference.py +40 -0
  103. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_item_media_reference_field.py +26 -0
  104. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_item_media_reference_media.py +47 -0
  105. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_run.py +63 -0
  106. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_run_item.py +40 -0
  107. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_run_with_items.py +23 -0
  108. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/dataset_status.py +22 -0
  109. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/deprecation.py +42 -0
  110. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/map_value.py +11 -0
  111. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/model.py +125 -0
  112. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/model_price.py +14 -0
  113. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/model_usage_unit.py +42 -0
  114. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/numeric_score.py +17 -0
  115. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/numeric_score_v1.py +17 -0
  116. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/observation.py +142 -0
  117. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/observation_level.py +30 -0
  118. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/observation_v2.py +289 -0
  119. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/observations_view.py +89 -0
  120. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/observations_view_single.py +19 -0
  121. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/pricing_tier.py +91 -0
  122. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/pricing_tier_attribute_condition.py +37 -0
  123. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/pricing_tier_attribute_source.py +22 -0
  124. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/pricing_tier_condition.py +10 -0
  125. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/pricing_tier_input.py +76 -0
  126. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/pricing_tier_operator.py +42 -0
  127. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/pricing_tier_usage_condition.py +39 -0
  128. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/score.py +259 -0
  129. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/score_config.py +66 -0
  130. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/score_config_data_type.py +30 -0
  131. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/score_data_type.py +34 -0
  132. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/score_source.py +26 -0
  133. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/score_v1.py +168 -0
  134. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/session.py +25 -0
  135. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/session_with_traces.py +21 -0
  136. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/text_score.py +21 -0
  137. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/text_score_v1.py +21 -0
  138. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/trace.py +84 -0
  139. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/trace_with_details.py +43 -0
  140. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/trace_with_full_details.py +50 -0
  141. bpmlinks_smartspend_test-0.1.0/smartspend/api/commons/types/usage.py +59 -0
  142. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/__init__.py +111 -0
  143. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/api_error.py +23 -0
  144. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/client_wrapper.py +141 -0
  145. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/datetime_utils.py +30 -0
  146. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/enum.py +20 -0
  147. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/file.py +70 -0
  148. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/force_multipart.py +18 -0
  149. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/http_client.py +711 -0
  150. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/http_response.py +55 -0
  151. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/http_sse/__init__.py +48 -0
  152. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/http_sse/_api.py +114 -0
  153. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/http_sse/_decoders.py +66 -0
  154. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/http_sse/_exceptions.py +7 -0
  155. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/http_sse/_models.py +17 -0
  156. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/jsonable_encoder.py +102 -0
  157. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/pydantic_utilities.py +310 -0
  158. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/query_encoder.py +60 -0
  159. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/remove_none_from_dict.py +11 -0
  160. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/request_options.py +35 -0
  161. bpmlinks_smartspend_test-0.1.0/smartspend/api/core/serialization.py +282 -0
  162. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_items/__init__.py +52 -0
  163. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_items/client.py +499 -0
  164. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_items/raw_client.py +973 -0
  165. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_items/types/__init__.py +50 -0
  166. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_items/types/create_dataset_item_request.py +37 -0
  167. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_items/types/delete_dataset_item_response.py +17 -0
  168. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_items/types/paginated_dataset_items.py +17 -0
  169. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_run_items/__init__.py +43 -0
  170. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_run_items/client.py +333 -0
  171. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_run_items/raw_client.py +557 -0
  172. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_run_items/types/__init__.py +44 -0
  173. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_run_items/types/create_dataset_run_item_request.py +58 -0
  174. bpmlinks_smartspend_test-0.1.0/smartspend/api/dataset_run_items/types/paginated_dataset_run_items.py +23 -0
  175. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/__init__.py +55 -0
  176. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/client.py +661 -0
  177. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/raw_client.py +1368 -0
  178. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/types/__init__.py +53 -0
  179. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/types/create_dataset_request.py +31 -0
  180. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/types/delete_dataset_run_response.py +14 -0
  181. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/types/paginated_dataset_runs.py +23 -0
  182. bpmlinks_smartspend_test-0.1.0/smartspend/api/datasets/types/paginated_datasets.py +17 -0
  183. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/__init__.py +58 -0
  184. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/client.py +456 -0
  185. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/raw_client.py +677 -0
  186. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/types/__init__.py +56 -0
  187. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/types/experiment.py +62 -0
  188. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/types/experiment_item.py +100 -0
  189. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/types/experiment_items_response.py +17 -0
  190. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/types/experiments_response.py +17 -0
  191. bpmlinks_smartspend_test-0.1.0/smartspend/api/experiments/types/experiments_response_meta.py +17 -0
  192. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/__init__.py +51 -0
  193. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/client.py +184 -0
  194. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/errors/__init__.py +42 -0
  195. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/errors/feedback_not_configured_error.py +13 -0
  196. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/raw_client.py +291 -0
  197. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/types/__init__.py +46 -0
  198. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/types/feedback_target_type.py +38 -0
  199. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/types/submit_feedback_request.py +44 -0
  200. bpmlinks_smartspend_test-0.1.0/smartspend/api/feedback/types/submit_feedback_response.py +17 -0
  201. bpmlinks_smartspend_test-0.1.0/smartspend/api/health/__init__.py +44 -0
  202. bpmlinks_smartspend_test-0.1.0/smartspend/api/health/client.py +112 -0
  203. bpmlinks_smartspend_test-0.1.0/smartspend/api/health/errors/__init__.py +42 -0
  204. bpmlinks_smartspend_test-0.1.0/smartspend/api/health/errors/service_unavailable_error.py +13 -0
  205. bpmlinks_smartspend_test-0.1.0/smartspend/api/health/raw_client.py +227 -0
  206. bpmlinks_smartspend_test-0.1.0/smartspend/api/health/types/__init__.py +40 -0
  207. bpmlinks_smartspend_test-0.1.0/smartspend/api/health/types/health_response.py +30 -0
  208. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/__init__.py +169 -0
  209. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/client.py +221 -0
  210. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/raw_client.py +293 -0
  211. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/__init__.py +169 -0
  212. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/base_event.py +27 -0
  213. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/create_event_body.py +14 -0
  214. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/create_event_event.py +15 -0
  215. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/create_generation_body.py +40 -0
  216. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/create_generation_event.py +15 -0
  217. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/create_observation_event.py +15 -0
  218. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/create_span_body.py +19 -0
  219. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/create_span_event.py +15 -0
  220. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/ingestion_error.py +17 -0
  221. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/ingestion_event.py +155 -0
  222. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/ingestion_response.py +17 -0
  223. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/ingestion_success.py +15 -0
  224. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/ingestion_usage.py +8 -0
  225. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/observation_body.py +53 -0
  226. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/observation_type.py +54 -0
  227. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/open_ai_completion_usage_schema.py +26 -0
  228. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/open_ai_response_usage_schema.py +24 -0
  229. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/open_ai_usage.py +28 -0
  230. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/optional_observation_body.py +36 -0
  231. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/score_body.py +75 -0
  232. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/score_event.py +15 -0
  233. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/sdk_log_body.py +14 -0
  234. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/sdk_log_event.py +15 -0
  235. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/trace_body.py +36 -0
  236. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/trace_event.py +15 -0
  237. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/update_event_body.py +14 -0
  238. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/update_generation_body.py +40 -0
  239. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/update_generation_event.py +15 -0
  240. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/update_observation_event.py +15 -0
  241. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/update_span_body.py +19 -0
  242. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/update_span_event.py +15 -0
  243. bpmlinks_smartspend_test-0.1.0/smartspend/api/ingestion/types/usage_details.py +10 -0
  244. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/__init__.py +63 -0
  245. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/client.py +105 -0
  246. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/metrics_v1/__init__.py +40 -0
  247. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/metrics_v1/client.py +214 -0
  248. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/metrics_v1/raw_client.py +322 -0
  249. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/metrics_v1/types/__init__.py +40 -0
  250. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/metrics_v1/types/metrics_response.py +26 -0
  251. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/observations_v1/__init__.py +43 -0
  252. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/observations_v1/client.py +523 -0
  253. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/observations_v1/raw_client.py +759 -0
  254. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/observations_v1/types/__init__.py +44 -0
  255. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/observations_v1/types/observations.py +17 -0
  256. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/observations_v1/types/observations_views.py +23 -0
  257. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/raw_client.py +13 -0
  258. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/score_v1/__init__.py +10 -0
  259. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/score_v1/client.py +212 -0
  260. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/score_v1/raw_client.py +214 -0
  261. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/score_v1/types/__init__.py +10 -0
  262. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/score_v1/types/create_score_request.py +5 -0
  263. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/score_v1/types/create_score_response.py +5 -0
  264. bpmlinks_smartspend_test-0.1.0/smartspend/api/legacy/score_v1/types/create_score_source.py +5 -0
  265. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/__init__.py +58 -0
  266. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/client.py +392 -0
  267. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/raw_client.py +743 -0
  268. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/types/__init__.py +56 -0
  269. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/types/delete_llm_connection_response.py +14 -0
  270. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/types/llm_adapter.py +38 -0
  271. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/types/llm_connection.py +77 -0
  272. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/types/paginated_llm_connections.py +17 -0
  273. bpmlinks_smartspend_test-0.1.0/smartspend/api/llm_connections/types/upsert_llm_connection_request.py +69 -0
  274. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/__init__.py +58 -0
  275. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/client.py +445 -0
  276. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/raw_client.py +759 -0
  277. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/types/__init__.py +56 -0
  278. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/types/get_media_response.py +55 -0
  279. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/types/get_media_upload_url_request.py +69 -0
  280. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/types/get_media_upload_url_response.py +28 -0
  281. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/types/media_content_type.py +232 -0
  282. bpmlinks_smartspend_test-0.1.0/smartspend/api/media/types/patch_media_body.py +43 -0
  283. bpmlinks_smartspend_test-0.1.0/smartspend/api/metrics/__init__.py +40 -0
  284. bpmlinks_smartspend_test-0.1.0/smartspend/api/metrics/client.py +468 -0
  285. bpmlinks_smartspend_test-0.1.0/smartspend/api/metrics/raw_client.py +576 -0
  286. bpmlinks_smartspend_test-0.1.0/smartspend/api/metrics/types/__init__.py +40 -0
  287. bpmlinks_smartspend_test-0.1.0/smartspend/api/metrics/types/metrics_v2response.py +19 -0
  288. bpmlinks_smartspend_test-0.1.0/smartspend/api/models/__init__.py +43 -0
  289. bpmlinks_smartspend_test-0.1.0/smartspend/api/models/client.py +523 -0
  290. bpmlinks_smartspend_test-0.1.0/smartspend/api/models/raw_client.py +993 -0
  291. bpmlinks_smartspend_test-0.1.0/smartspend/api/models/types/__init__.py +44 -0
  292. bpmlinks_smartspend_test-0.1.0/smartspend/api/models/types/create_model_request.py +103 -0
  293. bpmlinks_smartspend_test-0.1.0/smartspend/api/models/types/paginated_models.py +17 -0
  294. bpmlinks_smartspend_test-0.1.0/smartspend/api/observations/__init__.py +43 -0
  295. bpmlinks_smartspend_test-0.1.0/smartspend/api/observations/client.py +586 -0
  296. bpmlinks_smartspend_test-0.1.0/smartspend/api/observations/raw_client.py +705 -0
  297. bpmlinks_smartspend_test-0.1.0/smartspend/api/observations/types/__init__.py +44 -0
  298. bpmlinks_smartspend_test-0.1.0/smartspend/api/observations/types/observations_v2meta.py +21 -0
  299. bpmlinks_smartspend_test-0.1.0/smartspend/api/observations/types/observations_v2response.py +28 -0
  300. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/__init__.py +67 -0
  301. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/client.py +276 -0
  302. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/raw_client.py +291 -0
  303. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/__init__.py +65 -0
  304. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_attribute.py +27 -0
  305. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_attribute_value.py +46 -0
  306. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_resource.py +24 -0
  307. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_resource_span.py +32 -0
  308. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_scope.py +34 -0
  309. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_scope_span.py +28 -0
  310. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_span.py +76 -0
  311. bpmlinks_smartspend_test-0.1.0/smartspend/api/opentelemetry/types/otel_trace_response.py +16 -0
  312. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/__init__.py +73 -0
  313. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/client.py +756 -0
  314. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/raw_client.py +1707 -0
  315. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/__init__.py +71 -0
  316. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/delete_membership_request.py +16 -0
  317. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/membership_deletion_response.py +17 -0
  318. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/membership_request.py +18 -0
  319. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/membership_response.py +20 -0
  320. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/membership_role.py +30 -0
  321. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/memberships_response.py +15 -0
  322. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/organization_api_key.py +31 -0
  323. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/organization_api_keys_response.py +19 -0
  324. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/organization_project.py +25 -0
  325. bpmlinks_smartspend_test-0.1.0/smartspend/api/organizations/types/organization_projects_response.py +15 -0
  326. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/__init__.py +67 -0
  327. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/client.py +760 -0
  328. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/raw_client.py +1577 -0
  329. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/__init__.py +65 -0
  330. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/api_key_deletion_response.py +18 -0
  331. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/api_key_list.py +23 -0
  332. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/api_key_response.py +30 -0
  333. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/api_key_summary.py +35 -0
  334. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/organization.py +22 -0
  335. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/project.py +34 -0
  336. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/project_deletion_response.py +15 -0
  337. bpmlinks_smartspend_test-0.1.0/smartspend/api/projects/types/projects.py +15 -0
  338. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompt_version/__init__.py +4 -0
  339. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompt_version/client.py +157 -0
  340. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompt_version/raw_client.py +264 -0
  341. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/__init__.py +100 -0
  342. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/client.py +550 -0
  343. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/raw_client.py +987 -0
  344. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/__init__.py +96 -0
  345. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/base_prompt.py +42 -0
  346. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/chat_message.py +17 -0
  347. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/chat_message_type.py +15 -0
  348. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/chat_message_with_placeholders.py +8 -0
  349. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/chat_prompt.py +15 -0
  350. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/create_chat_prompt_request.py +37 -0
  351. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/create_chat_prompt_type.py +15 -0
  352. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/create_prompt_request.py +8 -0
  353. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/create_text_prompt_request.py +36 -0
  354. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/create_text_prompt_type.py +15 -0
  355. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/placeholder_message.py +16 -0
  356. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/placeholder_message_type.py +15 -0
  357. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/prompt.py +58 -0
  358. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/prompt_meta.py +35 -0
  359. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/prompt_meta_list_response.py +17 -0
  360. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/prompt_type.py +20 -0
  361. bpmlinks_smartspend_test-0.1.0/smartspend/api/prompts/types/text_prompt.py +14 -0
  362. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/__init__.py +94 -0
  363. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/client.py +686 -0
  364. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/raw_client.py +1528 -0
  365. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/__init__.py +92 -0
  366. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/authentication_scheme.py +20 -0
  367. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/bulk_config.py +22 -0
  368. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/empty_response.py +16 -0
  369. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/filter_config.py +17 -0
  370. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/resource_meta.py +17 -0
  371. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/resource_type.py +27 -0
  372. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/resource_types_response.py +21 -0
  373. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/schema_extension.py +17 -0
  374. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/schema_resource.py +19 -0
  375. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/schemas_response.py +21 -0
  376. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/scim_email.py +16 -0
  377. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/scim_feature_support.py +14 -0
  378. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/scim_name.py +14 -0
  379. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/scim_user.py +24 -0
  380. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/scim_users_list_response.py +25 -0
  381. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/service_provider_config.py +36 -0
  382. bpmlinks_smartspend_test-0.1.0/smartspend/api/scim/types/user_meta.py +20 -0
  383. bpmlinks_smartspend_test-0.1.0/smartspend/api/score_configs/__init__.py +44 -0
  384. bpmlinks_smartspend_test-0.1.0/smartspend/api/score_configs/client.py +528 -0
  385. bpmlinks_smartspend_test-0.1.0/smartspend/api/score_configs/raw_client.py +1014 -0
  386. bpmlinks_smartspend_test-0.1.0/smartspend/api/score_configs/types/__init__.py +46 -0
  387. bpmlinks_smartspend_test-0.1.0/smartspend/api/score_configs/types/create_score_config_request.py +50 -0
  388. bpmlinks_smartspend_test-0.1.0/smartspend/api/score_configs/types/score_configs.py +17 -0
  389. bpmlinks_smartspend_test-0.1.0/smartspend/api/score_configs/types/update_score_config_request.py +53 -0
  390. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/__init__.py +91 -0
  391. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/client.py +636 -0
  392. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/raw_client.py +997 -0
  393. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/__init__.py +91 -0
  394. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/create_score_request.py +81 -0
  395. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/create_score_response.py +17 -0
  396. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/create_score_source.py +28 -0
  397. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response.py +23 -0
  398. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response_data.py +258 -0
  399. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response_data_boolean.py +15 -0
  400. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response_data_categorical.py +15 -0
  401. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response_data_correction.py +15 -0
  402. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response_data_numeric.py +15 -0
  403. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response_data_text.py +15 -0
  404. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores/types/get_scores_response_trace_data.py +38 -0
  405. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/__init__.py +112 -0
  406. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/client.py +355 -0
  407. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/raw_client.py +474 -0
  408. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/__init__.py +114 -0
  409. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/base_score_v3.py +71 -0
  410. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/boolean_score_v3.py +17 -0
  411. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/categorical_score_v3.py +17 -0
  412. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/correction_score_v3.py +17 -0
  413. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/get_scores_v3meta.py +18 -0
  414. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/get_scores_v3response.py +17 -0
  415. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/numeric_score_v3.py +17 -0
  416. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/score_subject_experiment_v3.py +17 -0
  417. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/score_subject_observation_v3.py +26 -0
  418. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/score_subject_session_v3.py +17 -0
  419. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/score_subject_trace_v3.py +17 -0
  420. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/score_subject_v3.py +76 -0
  421. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/score_v3.py +200 -0
  422. bpmlinks_smartspend_test-0.1.0/smartspend/api/scores_v3/types/text_score_v3.py +17 -0
  423. bpmlinks_smartspend_test-0.1.0/smartspend/api/sessions/__init__.py +40 -0
  424. bpmlinks_smartspend_test-0.1.0/smartspend/api/sessions/client.py +282 -0
  425. bpmlinks_smartspend_test-0.1.0/smartspend/api/sessions/raw_client.py +520 -0
  426. bpmlinks_smartspend_test-0.1.0/smartspend/api/sessions/types/__init__.py +40 -0
  427. bpmlinks_smartspend_test-0.1.0/smartspend/api/sessions/types/paginated_sessions.py +23 -0
  428. bpmlinks_smartspend_test-0.1.0/smartspend/api/trace/__init__.py +44 -0
  429. bpmlinks_smartspend_test-0.1.0/smartspend/api/trace/client.py +748 -0
  430. bpmlinks_smartspend_test-0.1.0/smartspend/api/trace/raw_client.py +1232 -0
  431. bpmlinks_smartspend_test-0.1.0/smartspend/api/trace/types/__init__.py +46 -0
  432. bpmlinks_smartspend_test-0.1.0/smartspend/api/trace/types/delete_trace_response.py +14 -0
  433. bpmlinks_smartspend_test-0.1.0/smartspend/api/trace/types/sort.py +14 -0
  434. bpmlinks_smartspend_test-0.1.0/smartspend/api/trace/types/traces.py +23 -0
  435. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/__init__.py +457 -0
  436. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/client.py +138 -0
  437. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/__init__.py +190 -0
  438. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/__init__.py +214 -0
  439. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/array_options_evaluation_rule_filter.py +26 -0
  440. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/boolean_evaluation_rule_filter.py +21 -0
  441. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/category_options_evaluation_rule_filter.py +26 -0
  442. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/code_evaluator_source_code_language.py +26 -0
  443. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/date_time_evaluation_rule_filter.py +29 -0
  444. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_array_options_filter_operator.py +26 -0
  445. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_boolean_filter_operator.py +22 -0
  446. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_filter.py +760 -0
  447. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_mapping.py +76 -0
  448. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_mapping_source.py +56 -0
  449. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_null_filter_operator.py +22 -0
  450. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_number_filter_operator.py +34 -0
  451. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_options_filter_operator.py +22 -0
  452. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_status.py +34 -0
  453. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_string_filter_operator.py +34 -0
  454. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluation_rule_target.py +33 -0
  455. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluator_model_config.py +46 -0
  456. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluator_output_data_type.py +35 -0
  457. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluator_output_definition.py +161 -0
  458. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluator_output_field_definition.py +17 -0
  459. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluator_scope.py +29 -0
  460. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/evaluator_type.py +28 -0
  461. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/null_evaluation_rule_filter.py +24 -0
  462. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/number_evaluation_rule_filter.py +21 -0
  463. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/number_object_evaluation_rule_filter.py +26 -0
  464. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/public_boolean_evaluator_output_definition.py +26 -0
  465. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/public_categorical_evaluator_output_definition.py +29 -0
  466. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/public_categorical_evaluator_output_score_definition.py +20 -0
  467. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/public_evaluator_output_definition.py +167 -0
  468. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/public_numeric_evaluator_output_definition.py +26 -0
  469. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/string_evaluation_rule_filter.py +21 -0
  470. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/string_object_evaluation_rule_filter.py +26 -0
  471. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/commons/types/string_options_evaluation_rule_filter.py +24 -0
  472. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/__init__.py +91 -0
  473. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/client.py +735 -0
  474. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/raw_client.py +2114 -0
  475. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/__init__.py +89 -0
  476. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/create_dashboard_widget_request.py +41 -0
  477. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget.py +41 -0
  478. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_chart_config.py +33 -0
  479. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_chart_config_input.py +29 -0
  480. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_chart_type.py +50 -0
  481. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_default_sort.py +16 -0
  482. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_dimension.py +14 -0
  483. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_filter.py +37 -0
  484. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_list.py +17 -0
  485. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_metric.py +16 -0
  486. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_metric_aggregation.py +62 -0
  487. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_sort_order.py +20 -0
  488. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_view.py +30 -0
  489. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/dashboard_widget_view_with_legacy.py +39 -0
  490. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/delete_dashboard_widget_response.py +14 -0
  491. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboard_widgets/types/update_dashboard_widget_request.py +34 -0
  492. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/__init__.py +97 -0
  493. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/client.py +934 -0
  494. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/raw_client.py +3165 -0
  495. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/__init__.py +99 -0
  496. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/create_dashboard_placement_request.py +46 -0
  497. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/create_dashboard_request.py +19 -0
  498. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/create_preset_placement.py +40 -0
  499. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/create_widget_placement.py +40 -0
  500. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/dashboard.py +32 -0
  501. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/dashboard_definition.py +15 -0
  502. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/dashboard_list.py +17 -0
  503. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/dashboard_placement.py +60 -0
  504. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/delete_dashboard_placement_response.py +14 -0
  505. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/delete_dashboard_response.py +14 -0
  506. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/preset_placement.py +21 -0
  507. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/update_dashboard_placement_request.py +32 -0
  508. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/update_dashboard_request.py +19 -0
  509. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/dashboards/types/widget_placement.py +21 -0
  510. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/__init__.py +84 -0
  511. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/__init__.py +68 -0
  512. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/access_denied_error.py +15 -0
  513. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/bad_request_error.py +15 -0
  514. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/conflict_error.py +15 -0
  515. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/internal_server_error.py +15 -0
  516. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/method_not_allowed_error.py +15 -0
  517. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/not_found_error.py +15 -0
  518. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/too_many_requests_error.py +15 -0
  519. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/unauthorized_error.py +15 -0
  520. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/errors/unprocessable_content_error.py +15 -0
  521. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/types/__init__.py +53 -0
  522. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/types/public_api_error.py +58 -0
  523. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/types/public_api_error_code.py +93 -0
  524. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/types/public_api_error_details.py +114 -0
  525. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/errors/types/public_api_validation_issue.py +34 -0
  526. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/__init__.py +100 -0
  527. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/client.py +801 -0
  528. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/raw_client.py +2181 -0
  529. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/__init__.py +104 -0
  530. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/code_evaluation_rule_evaluator_reference.py +32 -0
  531. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/create_code_evaluation_rule_request.py +56 -0
  532. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/create_evaluation_rule_request.py +12 -0
  533. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/create_llm_as_judge_evaluation_rule_request.py +65 -0
  534. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/delete_evaluation_rule_response.py +21 -0
  535. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/evaluation_rule.py +89 -0
  536. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/evaluation_rule_base.py +99 -0
  537. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/evaluation_rule_evaluator.py +41 -0
  538. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/evaluation_rule_evaluator_reference.py +30 -0
  539. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/evaluation_rule_time_scope.py +22 -0
  540. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/evaluation_rules.py +28 -0
  541. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/legacy_evaluation_object.py +62 -0
  542. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/legacy_evaluation_rule.py +47 -0
  543. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/legacy_evaluation_rule_mapping.py +50 -0
  544. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/legacy_evaluation_rule_target.py +22 -0
  545. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/llm_as_judge_evaluation_rule_evaluator_reference.py +33 -0
  546. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/llm_as_judge_evaluator_type.py +15 -0
  547. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/readable_evaluation_rule.py +8 -0
  548. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluation_rules/types/update_evaluation_rule_request.py +78 -0
  549. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/__init__.py +82 -0
  550. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/client.py +542 -0
  551. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/raw_client.py +1634 -0
  552. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/__init__.py +80 -0
  553. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/code_evaluator.py +31 -0
  554. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/create_code_evaluator_request.py +36 -0
  555. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/create_evaluator_request.py +66 -0
  556. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/create_llm_as_judge_evaluator_request.py +43 -0
  557. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/delete_evaluator_response.py +21 -0
  558. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/evaluator.py +114 -0
  559. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/evaluator_base.py +64 -0
  560. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/evaluators.py +17 -0
  561. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/evaluators/types/llm_as_judge_evaluator.py +40 -0
  562. bpmlinks_smartspend_test-0.1.0/smartspend/api/unstable/raw_client.py +13 -0
  563. bpmlinks_smartspend_test-0.1.0/smartspend/api/utils/__init__.py +44 -0
  564. bpmlinks_smartspend_test-0.1.0/smartspend/api/utils/pagination/__init__.py +40 -0
  565. bpmlinks_smartspend_test-0.1.0/smartspend/api/utils/pagination/types/__init__.py +40 -0
  566. bpmlinks_smartspend_test-0.1.0/smartspend/api/utils/pagination/types/meta_response.py +38 -0
  567. bpmlinks_smartspend_test-0.1.0/smartspend/batch_evaluation.py +1643 -0
  568. bpmlinks_smartspend_test-0.1.0/smartspend/experiment.py +1216 -0
  569. bpmlinks_smartspend_test-0.1.0/smartspend/langchain/CallbackHandler.py +1815 -0
  570. bpmlinks_smartspend_test-0.1.0/smartspend/langchain/__init__.py +5 -0
  571. bpmlinks_smartspend_test-0.1.0/smartspend/langchain/utils.py +245 -0
  572. bpmlinks_smartspend_test-0.1.0/smartspend/logger.py +28 -0
  573. bpmlinks_smartspend_test-0.1.0/smartspend/media.py +432 -0
  574. bpmlinks_smartspend_test-0.1.0/smartspend/model.py +477 -0
  575. bpmlinks_smartspend_test-0.1.0/smartspend/openai.py +1651 -0
  576. bpmlinks_smartspend_test-0.1.0/smartspend/py.typed +0 -0
  577. bpmlinks_smartspend_test-0.1.0/smartspend/span_filter.py +17 -0
  578. bpmlinks_smartspend_test-0.1.0/smartspend/types.py +311 -0
@@ -0,0 +1,40 @@
1
+ __pycache__/
2
+ build/
3
+ dist/
4
+ *.egg-info/
5
+ .pytest_cache/
6
+
7
+ playground
8
+
9
+ # pyenv
10
+ .python-version
11
+
12
+ # Environments
13
+ .env
14
+ .venv
15
+
16
+ # mypy
17
+ .mypy_cache/
18
+ .dmypy.json
19
+ dmypy.json
20
+
21
+ # JetBrains
22
+ .idea/
23
+
24
+ /coverage.xml
25
+ /.coverage
26
+
27
+ .DS_Store
28
+
29
+ # Docs
30
+ docs
31
+
32
+ # Llamaindex
33
+ tests/mocks/llama-index-storage
34
+
35
+ *.local.*
36
+
37
+ # Codex local runtime state
38
+ .codex/log/
39
+ .codex/sessions/
40
+ .codex/tmp/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Finto Technologies
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,32 @@
1
+ SmartSpend Python SDK
2
+ Copyright (c) 2026 BPMLinks
3
+
4
+ This product includes software derived from the langfuse-python SDK
5
+ (https://github.com/langfuse/langfuse-python), distributed under the MIT
6
+ License:
7
+
8
+ Copyright (c) 2022 Finto Technologies
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ "Langfuse" is a trademark of its respective owner. SmartSpend is an
29
+ independent product of BPMLinks and is not affiliated with, endorsed by, or
30
+ sponsored by the Langfuse project, Langfuse GmbH, or ClickHouse, Inc. The
31
+ trademark owner's marks are not used in the SmartSpend product, and this
32
+ notice exists solely to satisfy the MIT License attribution requirement.
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.5
2
+ Name: bpmlinks_smartspend_test
3
+ Version: 0.1.0
4
+ Summary: SmartSpend Python SDK - LLM observability/tracing, datasets, experiments, LLM-as-a-judge evaluation, and prompt management
5
+ Author-email: BPMLinks <Naresh.Edagotti@bpmlinks.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ Requires-Python: <4.0,>=3.10
10
+ Requires-Dist: backoff>=1.10.0
11
+ Requires-Dist: httpx<1.0,>=0.15.4
12
+ Requires-Dist: opentelemetry-api<2,>=1.33.1
13
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.33.1
14
+ Requires-Dist: opentelemetry-sdk<2,>=1.33.1
15
+ Requires-Dist: packaging<27.0,>=23.2
16
+ Requires-Dist: pydantic<3,>=2
17
+ Requires-Dist: wrapt<3,>=1.14
18
+ Description-Content-Type: text/markdown
19
+
20
+ # SmartSpend Python SDK
21
+
22
+ **SmartSpend is an AI FinOps platform: observability and cost intelligence in one.**
23
+
24
+ One SDK captures everything your AI workloads do — models, tokens, latency, errors,
25
+ retries, business attribution — and the SmartSpend platform turns that into cost
26
+ analytics, optimization recommendations, and verified savings. No separate
27
+ observability tool, no separate FinOps tool.
28
+
29
+ ## Why SmartSpend
30
+
31
+ - **Cost needs metadata, not your prompts.** SmartSpend runs in `metadata_only`
32
+ privacy mode by default: token usage, model, latency, and attribution leave your
33
+ process — prompt and completion content does not. Content capture is opt-in
34
+ (`redacted` and `full` modes), not the default.
35
+ - **FinOps attribution is first-class.** Tag every trace with `workload`, `task`,
36
+ `team`, and `cost_center` — at the client, or per request — and slice spend by
37
+ those dimensions in the platform.
38
+ - **Provider-aware.** Automatic instrumentation for OpenAI (incl. Azure OpenAI) and
39
+ Anthropic, with cached-token and reasoning-token usage normalized so prompt
40
+ caching is priced correctly, plus OpenTelemetry `gen_ai.*` interop for
41
+ everything else (LangChain handler included).
42
+ - **Standard OpenTelemetry underneath.** Spans export via OTLP; bring your own
43
+ tracer provider, span filters, or export-stage masking if you need more control.
44
+
45
+ ## Installation
46
+
47
+ ```
48
+ pip install smartspend
49
+ ```
50
+
51
+ ## Quickstart
52
+
53
+ ```python
54
+ # env: SMARTSPEND_PUBLIC_KEY, SMARTSPEND_SECRET_KEY, SMARTSPEND_BASE_URL
55
+
56
+ from smartspend import SmartSpend, observe, propagate_attributes
57
+
58
+ ss = SmartSpend(
59
+ workload="support-bot", # FinOps defaults applied to every trace
60
+ team="platform",
61
+ cost_center="cc-1001",
62
+ # privacy_mode="metadata_only" is the default: content never leaves your process
63
+ )
64
+
65
+ # Automatic LLM instrumentation — drop-in imports
66
+ from smartspend.openai import openai # instead of `import openai`
67
+ from smartspend.anthropic import anthropic # instead of `import anthropic`
68
+
69
+ with propagate_attributes(user_id="user-123", task="summarize-ticket"):
70
+ completion = openai.OpenAI().chat.completions.create(
71
+ model="gpt-4o-mini",
72
+ messages=[{"role": "user", "content": "Summarize this ticket..."}],
73
+ )
74
+ # → captured with model, token usage (incl. cached tokens), latency, cost
75
+ # attribution by workload/task/team/cost_center — content stripped by default.
76
+ ```
77
+
78
+ Or instrument any function with the decorator:
79
+
80
+ ```python
81
+ @observe()
82
+ def handle_request(query: str) -> str:
83
+ ...
84
+ ```
85
+
86
+ ## Privacy modes
87
+
88
+ | Mode | What leaves your process |
89
+ |---|---|
90
+ | `metadata_only` (default) | Usage, model, latency, errors, attribution metadata — **no prompt/completion content** |
91
+ | `redacted` | Same, plus content attributes replaced with `"<redacted>"` |
92
+ | `full` | Everything (explicit opt-in) |
93
+
94
+ Set via `SmartSpend(privacy_mode=...)` or `SMARTSPEND_PRIVACY_MODE`.
95
+
96
+ ## License & acknowledgements
97
+
98
+ MIT — see [LICENSE](LICENSE) and [NOTICE](NOTICE).
99
+
100
+ The SmartSpend SDK is derived from open-source work distributed under the MIT
101
+ license; original copyright notices are preserved in [NOTICE](NOTICE). SmartSpend
102
+ is an independent product and is not affiliated with or endorsed by the authors
103
+ of that work.
@@ -0,0 +1,84 @@
1
+ # SmartSpend Python SDK
2
+
3
+ **SmartSpend is an AI FinOps platform: observability and cost intelligence in one.**
4
+
5
+ One SDK captures everything your AI workloads do — models, tokens, latency, errors,
6
+ retries, business attribution — and the SmartSpend platform turns that into cost
7
+ analytics, optimization recommendations, and verified savings. No separate
8
+ observability tool, no separate FinOps tool.
9
+
10
+ ## Why SmartSpend
11
+
12
+ - **Cost needs metadata, not your prompts.** SmartSpend runs in `metadata_only`
13
+ privacy mode by default: token usage, model, latency, and attribution leave your
14
+ process — prompt and completion content does not. Content capture is opt-in
15
+ (`redacted` and `full` modes), not the default.
16
+ - **FinOps attribution is first-class.** Tag every trace with `workload`, `task`,
17
+ `team`, and `cost_center` — at the client, or per request — and slice spend by
18
+ those dimensions in the platform.
19
+ - **Provider-aware.** Automatic instrumentation for OpenAI (incl. Azure OpenAI) and
20
+ Anthropic, with cached-token and reasoning-token usage normalized so prompt
21
+ caching is priced correctly, plus OpenTelemetry `gen_ai.*` interop for
22
+ everything else (LangChain handler included).
23
+ - **Standard OpenTelemetry underneath.** Spans export via OTLP; bring your own
24
+ tracer provider, span filters, or export-stage masking if you need more control.
25
+
26
+ ## Installation
27
+
28
+ ```
29
+ pip install smartspend
30
+ ```
31
+
32
+ ## Quickstart
33
+
34
+ ```python
35
+ # env: SMARTSPEND_PUBLIC_KEY, SMARTSPEND_SECRET_KEY, SMARTSPEND_BASE_URL
36
+
37
+ from smartspend import SmartSpend, observe, propagate_attributes
38
+
39
+ ss = SmartSpend(
40
+ workload="support-bot", # FinOps defaults applied to every trace
41
+ team="platform",
42
+ cost_center="cc-1001",
43
+ # privacy_mode="metadata_only" is the default: content never leaves your process
44
+ )
45
+
46
+ # Automatic LLM instrumentation — drop-in imports
47
+ from smartspend.openai import openai # instead of `import openai`
48
+ from smartspend.anthropic import anthropic # instead of `import anthropic`
49
+
50
+ with propagate_attributes(user_id="user-123", task="summarize-ticket"):
51
+ completion = openai.OpenAI().chat.completions.create(
52
+ model="gpt-4o-mini",
53
+ messages=[{"role": "user", "content": "Summarize this ticket..."}],
54
+ )
55
+ # → captured with model, token usage (incl. cached tokens), latency, cost
56
+ # attribution by workload/task/team/cost_center — content stripped by default.
57
+ ```
58
+
59
+ Or instrument any function with the decorator:
60
+
61
+ ```python
62
+ @observe()
63
+ def handle_request(query: str) -> str:
64
+ ...
65
+ ```
66
+
67
+ ## Privacy modes
68
+
69
+ | Mode | What leaves your process |
70
+ |---|---|
71
+ | `metadata_only` (default) | Usage, model, latency, errors, attribution metadata — **no prompt/completion content** |
72
+ | `redacted` | Same, plus content attributes replaced with `"<redacted>"` |
73
+ | `full` | Everything (explicit opt-in) |
74
+
75
+ Set via `SmartSpend(privacy_mode=...)` or `SMARTSPEND_PRIVACY_MODE`.
76
+
77
+ ## License & acknowledgements
78
+
79
+ MIT — see [LICENSE](LICENSE) and [NOTICE](NOTICE).
80
+
81
+ The SmartSpend SDK is derived from open-source work distributed under the MIT
82
+ license; original copyright notices are preserved in [NOTICE](NOTICE). SmartSpend
83
+ is an independent product and is not affiliated with or endorsed by the authors
84
+ of that work.
@@ -0,0 +1,140 @@
1
+ [project]
2
+ name = "bpmlinks_smartspend_test"
3
+ version = "0.1.0"
4
+ description = "SmartSpend Python SDK - LLM observability/tracing, datasets, experiments, LLM-as-a-judge evaluation, and prompt management"
5
+ readme = "README.md"
6
+ authors = [{ name = "BPMLinks", email = "Naresh.Edagotti@bpmlinks.com" }]
7
+ license = "MIT"
8
+ license-files = ["LICENSE", "NOTICE"]
9
+ requires-python = ">=3.10,<4.0"
10
+ dependencies = [
11
+ "httpx>=0.15.4,<1.0",
12
+ "pydantic>=2,<3",
13
+ "backoff>=1.10.0",
14
+ "wrapt>=1.14,<3",
15
+ "packaging>=23.2,<27.0",
16
+ "opentelemetry-api>=1.33.1,<2",
17
+ "opentelemetry-sdk>=1.33.1,<2",
18
+ "opentelemetry-exporter-otlp-proto-http>=1.33.1,<2",
19
+ ]
20
+
21
+ [dependency-groups]
22
+ dev = [
23
+ "pytest>=7.4,<9.0",
24
+ "pytest-timeout>=2.1.0,<3",
25
+ "pytest-xdist>=3.3.1,<4",
26
+ "pre-commit>=3.2.2,<4",
27
+ "pytest-asyncio>=0.21.1,<1.2.0",
28
+ "pytest-httpserver>=1.0.8,<2",
29
+ "ruff>=0.15.2,<0.16",
30
+ "mypy>=1.0.0,<2",
31
+ "openai>=0.27.8",
32
+ "langchain-openai>=0.0.5,<0.4",
33
+ "langchain>=1,<2",
34
+ "langgraph>=1,<2",
35
+ "autoevals>=0.0.130,<0.1",
36
+ "opentelemetry-instrumentation-threading>=0.59b0,<1",
37
+ "tenacity>=9.1.4",
38
+ ]
39
+ docs = [
40
+ "pdoc>=15.0.4,<16",
41
+ ]
42
+
43
+ [build-system]
44
+ requires = ["hatchling"]
45
+ build-backend = "hatchling.build"
46
+
47
+ [tool.uv]
48
+ # Basic protection against supply chain attacks
49
+ exclude-newer = "7 days"
50
+
51
+ [tool.uv.build-backend]
52
+ module-root = ""
53
+ # Import package is always `smartspend`, independent of the distribution name
54
+ # (allows test-named uploads like bpmlinks-smartspend-test).
55
+ module-name = "bpmlinks_smartspend_test"
56
+
57
+ [tool.pytest.ini_options]
58
+ log_cli = true
59
+ markers = [
60
+ "unit: deterministic tests that run without a SmartSpend server",
61
+ "e2e: tests that require a real SmartSpend server or persisted backend behaviour",
62
+ "serial_e2e: e2e tests that must not share server concurrency with the rest of the suite",
63
+ "live_provider: tests that call live model providers and run as a dedicated CI suite",
64
+ ]
65
+
66
+ [tool.mypy]
67
+ python_version = "3.12"
68
+ warn_return_any = true
69
+ warn_unused_configs = true
70
+ disallow_untyped_defs = true
71
+ disallow_incomplete_defs = true
72
+ check_untyped_defs = true
73
+ disallow_untyped_decorators = true
74
+ no_implicit_optional = true
75
+ warn_redundant_casts = true
76
+ warn_unused_ignores = false
77
+ warn_no_return = true
78
+ warn_unreachable = true
79
+ strict_equality = true
80
+ show_error_codes = true
81
+
82
+ # Performance optimizations for CI
83
+ cache_dir = ".mypy_cache"
84
+ sqlite_cache = true
85
+ incremental = true
86
+ show_column_numbers = true
87
+
88
+ [[tool.mypy.overrides]]
89
+ module = [
90
+ "langchain.*",
91
+ "openai.*",
92
+ "chromadb.*",
93
+ "tiktoken.*",
94
+ "google.*",
95
+ "anthropic.*",
96
+ "cohere.*",
97
+ "dashscope.*",
98
+ "pymongo.*",
99
+ "bson.*",
100
+ "boto3.*",
101
+ "llama_index.*",
102
+ "respx.*",
103
+ "bs4.*",
104
+ "lark.*",
105
+ "huggingface_hub.*",
106
+ "backoff.*",
107
+ "wrapt.*",
108
+ "packaging.*",
109
+ "requests.*",
110
+ "opentelemetry.*"
111
+ ]
112
+ ignore_missing_imports = true
113
+
114
+ [[tool.mypy.overrides]]
115
+ module = "smartspend.api.*"
116
+ disable_error_code = ["redundant-cast", "no-untyped-def"]
117
+
118
+ [tool.ruff]
119
+ target-version = "py310"
120
+
121
+ [tool.ruff.lint]
122
+ extend-select = [
123
+ "I", # Import formatting
124
+ # These used to be enabled in the "local ruff.toml",
125
+ # which was never enforced; hence, enabling these will
126
+ # cause a large number of linting errors.
127
+
128
+ # "D", # Docstring lints
129
+ # "D401", # Enforce imperative mood in docstrings
130
+ ]
131
+ exclude = ["smartspend/api/**/*.py"]
132
+
133
+ [tool.ruff.lint.pydocstyle]
134
+ convention = "google"
135
+
136
+ [tool.hatch.build.targets.wheel]
137
+ packages = ["smartspend"]
138
+
139
+ [tool.hatch.build.targets.sdist]
140
+ include = ["smartspend", "LICENSE", "NOTICE", "README.md"]
@@ -0,0 +1,144 @@
1
+ """SmartSpend Python SDK — observability, evaluation, and prompt management for LLM applications.
2
+
3
+ Capabilities:
4
+
5
+ - **Tracing / observability**: `@observe` decorator, `SmartSpend.start_observation` /
6
+ `start_as_current_observation` context managers, OpenTelemetry-based; integrations
7
+ for OpenAI (`smartspend.openai`) and LangChain (`smartspend.langchain.CallbackHandler`).
8
+ - **Trace attributes**: `propagate_attributes` (top-level function) sets user_id,
9
+ session_id, tags, and metadata on all spans in a context.
10
+ - **Datasets & experiments**: `SmartSpend.get_dataset`, `SmartSpend.run_experiment` for
11
+ offline evaluation and regression testing of prompt/model changes (CI support via
12
+ https://github.com/smartspend/experiment-action and `RegressionError`).
13
+ - **Evaluation / LLM-as-a-judge**: `Evaluation` results from custom or model-based
14
+ evaluators; scores via `SmartSpend.create_score` / `span.score`.
15
+ - **Prompt management**: `SmartSpend.get_prompt`, `SmartSpend.create_prompt` with
16
+ client-side caching and version/label control.
17
+ - **Full REST API**: `SmartSpend.api` (sync) / `SmartSpend.async_api` (async) clients.
18
+
19
+ Quickstart:
20
+
21
+ ```python
22
+ # env: SMARTSPEND_PUBLIC_KEY, SMARTSPEND_SECRET_KEY, SMARTSPEND_BASE_URL
23
+ from smartspend import get_client
24
+
25
+ smartspend = get_client()
26
+
27
+ # Create a span using a context manager
28
+ with smartspend.start_as_current_observation(as_type="span", name="process-request") as span:
29
+ # Your processing logic here
30
+ span.update(output="Processing complete")
31
+
32
+ # Create a nested generation for an LLM call
33
+ with smartspend.start_as_current_observation(as_type="generation", name="llm-response", model="gpt-3.5-turbo") as generation:
34
+ # Your LLM call logic here
35
+ generation.update(output="Generated response")
36
+
37
+ # All spans are automatically closed when exiting their context blocks
38
+
39
+ # Flush events in short-lived applications
40
+ smartspend.flush()
41
+ ```
42
+
43
+ Configuration is via constructor args or environment variables: `SMARTSPEND_PUBLIC_KEY`,
44
+ `SMARTSPEND_SECRET_KEY`, `SMARTSPEND_BASE_URL` (defaults to https://cloud.smartspend.com). See `smartspend._client.environment_variables`
45
+ for the full list.
46
+
47
+ Docs: https://smartspend.com/docs — machine-readable index: https://smartspend.com/llms.txt
48
+
49
+ .. include:: ../README.md
50
+ """
51
+
52
+ from smartspend.batch_evaluation import (
53
+ BatchEvaluationResult,
54
+ BatchEvaluationResumeToken,
55
+ CompositeEvaluatorFunction,
56
+ EvaluatorInputs,
57
+ EvaluatorStats,
58
+ MapperFunction,
59
+ )
60
+ from smartspend.experiment import Evaluation, RegressionError, RunnerContext
61
+
62
+ from ._client import client as _client_module
63
+ from ._client.attributes import SmartSpendOtelSpanAttributes
64
+ from ._client.constants import ObservationTypeLiteral
65
+ from ._client.get_client import get_client
66
+ from ._client.observe import observe
67
+ from ._client.privacy import PrivacyMode
68
+ from ._client.propagation import propagate_attributes
69
+ from ._client.span import (
70
+ SmartSpendAgent,
71
+ SmartSpendChain,
72
+ SmartSpendEmbedding,
73
+ SmartSpendEvaluator,
74
+ SmartSpendEvent,
75
+ SmartSpendGeneration,
76
+ SmartSpendGuardrail,
77
+ SmartSpendRetriever,
78
+ SmartSpendSpan,
79
+ SmartSpendTool,
80
+ )
81
+ from ._version import __version__
82
+ from .media import SmartSpendMedia, SmartSpendMediaReference
83
+ from .span_filter import (
84
+ KNOWN_LLM_INSTRUMENTATION_SCOPE_PREFIXES,
85
+ is_default_export_span,
86
+ is_genai_span,
87
+ is_known_llm_instrumentor,
88
+ is_smartspend_span,
89
+ )
90
+ from .types import (
91
+ MaskOtelSpansFunction,
92
+ MaskOtelSpansParams,
93
+ MaskOtelSpansResult,
94
+ OtelSpanData,
95
+ OtelSpanIdentifier,
96
+ OtelSpanPatch,
97
+ )
98
+
99
+ SmartSpend = _client_module.SmartSpend
100
+
101
+ __all__ = [
102
+ "SmartSpend",
103
+ "SmartSpendMedia",
104
+ "SmartSpendMediaReference",
105
+ "get_client",
106
+ "observe",
107
+ "propagate_attributes",
108
+ "PrivacyMode",
109
+ "ObservationTypeLiteral",
110
+ "SmartSpendSpan",
111
+ "SmartSpendGeneration",
112
+ "SmartSpendEvent",
113
+ "SmartSpendOtelSpanAttributes",
114
+ "SmartSpendAgent",
115
+ "SmartSpendTool",
116
+ "SmartSpendChain",
117
+ "SmartSpendEmbedding",
118
+ "SmartSpendEvaluator",
119
+ "SmartSpendRetriever",
120
+ "SmartSpendGuardrail",
121
+ "Evaluation",
122
+ "EvaluatorInputs",
123
+ "MapperFunction",
124
+ "CompositeEvaluatorFunction",
125
+ "EvaluatorStats",
126
+ "BatchEvaluationResumeToken",
127
+ "BatchEvaluationResult",
128
+ "RunnerContext",
129
+ "RegressionError",
130
+ "__version__",
131
+ "is_default_export_span",
132
+ "is_smartspend_span",
133
+ "is_genai_span",
134
+ "is_known_llm_instrumentor",
135
+ "KNOWN_LLM_INSTRUMENTATION_SCOPE_PREFIXES",
136
+ "MaskOtelSpansFunction",
137
+ "MaskOtelSpansParams",
138
+ "MaskOtelSpansResult",
139
+ "OtelSpanData",
140
+ "OtelSpanIdentifier",
141
+ "OtelSpanPatch",
142
+ "experiment",
143
+ "api",
144
+ ]