scale-gp-beta 0.1.0a27__tar.gz → 0.1.0a29__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 (191) hide show
  1. scale_gp_beta-0.1.0a29/.release-please-manifest.json +3 -0
  2. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/CHANGELOG.md +33 -0
  3. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/PKG-INFO +4 -3
  4. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/README.md +2 -1
  5. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/api.md +7 -1
  6. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/pyproject.toml +2 -2
  7. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_base_client.py +9 -2
  8. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_version.py +1 -1
  9. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/openai_span_type_map.py +3 -3
  10. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/span.py +8 -7
  11. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/trace.py +7 -5
  12. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/tracing.py +7 -5
  13. scale_gp_beta-0.1.0a29/src/scale_gp_beta/lib/tracing/types.py +5 -0
  14. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/spans.py +22 -118
  15. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/__init__.py +2 -0
  16. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span.py +5 -30
  17. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_batch_params.py +6 -29
  18. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_create_params.py +6 -29
  19. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_search_params.py +7 -29
  20. scale_gp_beta-0.1.0a29/src/scale_gp_beta/types/span_status.py +7 -0
  21. scale_gp_beta-0.1.0a29/src/scale_gp_beta/types/span_type.py +33 -0
  22. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_update_params.py +3 -2
  23. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_upsert_batch_params.py +6 -29
  24. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_spans.py +2 -0
  25. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_client.py +2 -2
  26. scale_gp_beta-0.1.0a27/.release-please-manifest.json +0 -3
  27. scale_gp_beta-0.1.0a27/src/scale_gp_beta/lib/tracing/types.py +0 -43
  28. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/.gitignore +0 -0
  29. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/CONTRIBUTING.md +0 -0
  30. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/LICENSE +0 -0
  31. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/SECURITY.md +0 -0
  32. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/bin/check-release-environment +0 -0
  33. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/bin/publish-pypi +0 -0
  34. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/examples/.keep +0 -0
  35. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/examples/tracing/0_primitives_fibonacci.py +0 -0
  36. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/examples/tracing/1_explicit_use_case.py +0 -0
  37. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/examples/tracing/2_direct_upload.py +0 -0
  38. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/examples/tracing/3_openai_agent_tracing.py +0 -0
  39. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/mypy.ini +0 -0
  40. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/noxfile.py +0 -0
  41. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/release-please-config.json +0 -0
  42. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/requirements-dev.lock +0 -0
  43. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/requirements.lock +0 -0
  44. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp/lib/.keep +0 -0
  45. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/__init__.py +0 -0
  46. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_client.py +0 -0
  47. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_compat.py +0 -0
  48. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_constants.py +0 -0
  49. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_exceptions.py +0 -0
  50. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_files.py +0 -0
  51. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_models.py +0 -0
  52. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_qs.py +0 -0
  53. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_resource.py +0 -0
  54. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_response.py +0 -0
  55. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_streaming.py +0 -0
  56. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_types.py +0 -0
  57. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/__init__.py +0 -0
  58. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_logs.py +0 -0
  59. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_proxy.py +0 -0
  60. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_reflection.py +0 -0
  61. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_resources_proxy.py +0 -0
  62. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_streams.py +0 -0
  63. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_sync.py +0 -0
  64. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_transform.py +0 -0
  65. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_typing.py +0 -0
  66. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_utils.py +0 -0
  67. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/.keep +0 -0
  68. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/__init__.py +0 -0
  69. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/exceptions.py +0 -0
  70. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/__init__.py +0 -0
  71. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/__init__.py +0 -0
  72. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/openai_tracing_sgp_processor.py +0 -0
  73. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/utils.py +0 -0
  74. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/scope.py +0 -0
  75. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/trace_exporter.py +0 -0
  76. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/trace_queue_manager.py +0 -0
  77. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/util.py +0 -0
  78. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/pagination.py +0 -0
  79. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/py.typed +0 -0
  80. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/__init__.py +0 -0
  81. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/chat/__init__.py +0 -0
  82. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/chat/chat.py +0 -0
  83. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/chat/completions.py +0 -0
  84. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/completions.py +0 -0
  85. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/dataset_items.py +0 -0
  86. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/datasets.py +0 -0
  87. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/evaluation_items.py +0 -0
  88. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/evaluations.py +0 -0
  89. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/files/__init__.py +0 -0
  90. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/files/content.py +0 -0
  91. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/files/files.py +0 -0
  92. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/inference.py +0 -0
  93. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/models.py +0 -0
  94. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/questions.py +0 -0
  95. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/__init__.py +0 -0
  96. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/chat_completion.py +0 -0
  97. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/chat_completion_chunk.py +0 -0
  98. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_create_params.py +0 -0
  99. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_create_response.py +0 -0
  100. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_models_params.py +0 -0
  101. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_models_response.py +0 -0
  102. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/model_definition.py +0 -0
  103. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/completion.py +0 -0
  104. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/completion_create_params.py +0 -0
  105. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/component.py +0 -0
  106. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/component_param.py +0 -0
  107. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/container.py +0 -0
  108. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/container_param.py +0 -0
  109. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset.py +0 -0
  110. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_create_params.py +0 -0
  111. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_delete_response.py +0 -0
  112. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item.py +0 -0
  113. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_batch_create_params.py +0 -0
  114. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_batch_create_response.py +0 -0
  115. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_delete_response.py +0 -0
  116. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_list_params.py +0 -0
  117. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_retrieve_params.py +0 -0
  118. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_update_params.py +0 -0
  119. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_list_params.py +0 -0
  120. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_retrieve_params.py +0 -0
  121. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_update_params.py +0 -0
  122. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation.py +0 -0
  123. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_create_params.py +0 -0
  124. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_delete_response.py +0 -0
  125. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_item.py +0 -0
  126. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_item_list_params.py +0 -0
  127. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_item_retrieve_params.py +0 -0
  128. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_list_params.py +0 -0
  129. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_retrieve_params.py +0 -0
  130. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_task.py +0 -0
  131. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_task_param.py +0 -0
  132. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_update_params.py +0 -0
  133. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file.py +0 -0
  134. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_create_params.py +0 -0
  135. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_delete_response.py +0 -0
  136. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_list.py +0 -0
  137. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_list_params.py +0 -0
  138. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_update_params.py +0 -0
  139. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/files/__init__.py +0 -0
  140. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_create_params.py +0 -0
  141. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_create_response.py +0 -0
  142. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_model.py +0 -0
  143. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_model_list.py +0 -0
  144. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_response.py +0 -0
  145. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_response_chunk.py +0 -0
  146. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/item_locator.py +0 -0
  147. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/item_locator_template.py +0 -0
  148. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_create_params.py +0 -0
  149. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_delete_response.py +0 -0
  150. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_list_params.py +0 -0
  151. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_update_params.py +0 -0
  152. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question.py +0 -0
  153. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question_create_params.py +0 -0
  154. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question_list.py +0 -0
  155. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question_list_params.py +0 -0
  156. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_batch_response.py +0 -0
  157. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_upsert_batch_response.py +0 -0
  158. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/src/sgp_dev/lib/.keep +0 -0
  159. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/__init__.py +0 -0
  160. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/__init__.py +0 -0
  161. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/chat/__init__.py +0 -0
  162. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/chat/test_completions.py +0 -0
  163. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/files/__init__.py +0 -0
  164. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/files/test_content.py +0 -0
  165. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_completions.py +0 -0
  166. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_dataset_items.py +0 -0
  167. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_datasets.py +0 -0
  168. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_evaluation_items.py +0 -0
  169. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_evaluations.py +0 -0
  170. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_files.py +0 -0
  171. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_inference.py +0 -0
  172. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_models.py +0 -0
  173. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_questions.py +0 -0
  174. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/conftest.py +0 -0
  175. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_span.py +0 -0
  176. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_trace.py +0 -0
  177. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_trace_exporter.py +0 -0
  178. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_tracing.py +0 -0
  179. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/sample_file.txt +0 -0
  180. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_deepcopy.py +0 -0
  181. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_extract_files.py +0 -0
  182. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_files.py +0 -0
  183. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_models.py +0 -0
  184. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_qs.py +0 -0
  185. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_required_args.py +0 -0
  186. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_response.py +0 -0
  187. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_streaming.py +0 -0
  188. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_transform.py +0 -0
  189. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_utils/test_proxy.py +0 -0
  190. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/test_utils/test_typing.py +0 -0
  191. {scale_gp_beta-0.1.0a27 → scale_gp_beta-0.1.0a29}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.29"
3
+ }
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.29 (2025-07-14)
4
+
5
+ Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/scaleapi/sgp-python-beta/compare/v0.1.0-alpha.28...v0.1.0-alpha.29)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add application_operation_type ([2455e20](https://github.com/scaleapi/sgp-python-beta/commit/2455e20838b22637ddce2a8e523f113d43acab0e))
10
+ * **api:** Add span status to span models ([c3fb91c](https://github.com/scaleapi/sgp-python-beta/commit/c3fb91c773d6ef11e1cc02e4546ff1923fc25c82))
11
+ * **api:** change name of app op type to span_type ([2285f10](https://github.com/scaleapi/sgp-python-beta/commit/2285f10ca3f1d51d3733996724d24daa09e83b88))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * Use stainless types auto generated types for Span status and span type. ([#125](https://github.com/scaleapi/sgp-python-beta/issues/125)) ([6a3b070](https://github.com/scaleapi/sgp-python-beta/commit/6a3b07040137cb283711399bad76bedf78affcaf))
17
+
18
+ ## 0.1.0-alpha.28 (2025-07-11)
19
+
20
+ Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/scaleapi/sgp-python-beta/compare/v0.1.0-alpha.27...v0.1.0-alpha.28)
21
+
22
+ ### Features
23
+
24
+ * **api:** api update ([63befc8](https://github.com/scaleapi/sgp-python-beta/commit/63befc8168d56b166e43bdcfb804033cce9b1052))
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * **client:** don't send Content-Type header on GET requests ([9ca896f](https://github.com/scaleapi/sgp-python-beta/commit/9ca896fb0adf0a643cc071ad97a956752d63e42a))
30
+
31
+
32
+ ### Chores
33
+
34
+ * **readme:** fix version rendering on pypi ([f4d2382](https://github.com/scaleapi/sgp-python-beta/commit/f4d23824e3d9238635cbefc406bd525a652ad8cc))
35
+
3
36
  ## 0.1.0-alpha.27 (2025-07-10)
4
37
 
5
38
  Full Changelog: [v0.1.0-alpha.26...v0.1.0-alpha.27](https://github.com/scaleapi/sgp-python-beta/compare/v0.1.0-alpha.26...v0.1.0-alpha.27)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: scale-gp-beta
3
- Version: 0.1.0a27
3
+ Version: 0.1.0a29
4
4
  Summary: The official Python library for the Scale GP API
5
5
  Project-URL: Homepage, https://github.com/scaleapi/sgp-python-beta
6
6
  Project-URL: Repository, https://github.com/scaleapi/sgp-python-beta
@@ -30,12 +30,13 @@ Requires-Dist: sniffio
30
30
  Requires-Dist: typing-extensions<5,>=4.10
31
31
  Provides-Extra: aiohttp
32
32
  Requires-Dist: aiohttp; extra == 'aiohttp'
33
- Requires-Dist: httpx-aiohttp>=0.1.6; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.8; extra == 'aiohttp'
34
34
  Description-Content-Type: text/markdown
35
35
 
36
36
  # Scale GP Python API library
37
37
 
38
- [![PyPI version](https://github.com/scaleapi/sgp-python-beta/tree/main/<https://img.shields.io/pypi/v/scale-gp-beta.svg?label=pypi%20(stable)>)](https://pypi.org/project/scale-gp-beta/)
38
+ <!-- prettier-ignore -->
39
+ [![PyPI version](https://img.shields.io/pypi/v/scale-gp-beta.svg?label=pypi%20(stable))](https://pypi.org/project/scale-gp-beta/)
39
40
 
40
41
  The Scale GP Python library provides convenient access to the Scale GP REST API from any Python 3.8+
41
42
  application. The library includes type definitions for all request params and response fields,
@@ -1,6 +1,7 @@
1
1
  # Scale GP Python API library
2
2
 
3
- [![PyPI version](<https://img.shields.io/pypi/v/scale-gp-beta.svg?label=pypi%20(stable)>)](https://pypi.org/project/scale-gp-beta/)
3
+ <!-- prettier-ignore -->
4
+ [![PyPI version](https://img.shields.io/pypi/v/scale-gp-beta.svg?label=pypi%20(stable))](https://pypi.org/project/scale-gp-beta/)
4
5
 
5
6
  The Scale GP Python library provides convenient access to the Scale GP REST API from any Python 3.8+
6
7
  application. The library includes type definitions for all request params and response fields,
@@ -171,7 +171,13 @@ Methods:
171
171
  Types:
172
172
 
173
173
  ```python
174
- from scale_gp_beta.types import Span, SpanBatchResponse, SpanUpsertBatchResponse
174
+ from scale_gp_beta.types import (
175
+ Span,
176
+ SpanStatus,
177
+ SpanType,
178
+ SpanBatchResponse,
179
+ SpanUpsertBatchResponse,
180
+ )
175
181
  ```
176
182
 
177
183
  Methods:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "scale-gp-beta"
3
- version = "0.1.0-alpha.27"
3
+ version = "0.1.0-alpha.29"
4
4
  description = "The official Python library for the Scale GP API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -39,7 +39,7 @@ Homepage = "https://github.com/scaleapi/sgp-python-beta"
39
39
  Repository = "https://github.com/scaleapi/sgp-python-beta"
40
40
 
41
41
  [project.optional-dependencies]
42
- aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.6"]
42
+ aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
43
43
 
44
44
  [tool.rye]
45
45
  managed = true
@@ -529,6 +529,15 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
529
529
  # work around https://github.com/encode/httpx/discussions/2880
530
530
  kwargs["extensions"] = {"sni_hostname": prepared_url.host.replace("_", "-")}
531
531
 
532
+ is_body_allowed = options.method.lower() != "get"
533
+
534
+ if is_body_allowed:
535
+ kwargs["json"] = json_data if is_given(json_data) else None
536
+ kwargs["files"] = files
537
+ else:
538
+ headers.pop("Content-Type", None)
539
+ kwargs.pop("data", None)
540
+
532
541
  # TODO: report this error to httpx
533
542
  return self._client.build_request( # pyright: ignore[reportUnknownMemberType]
534
543
  headers=headers,
@@ -540,8 +549,6 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
540
549
  # so that passing a `TypedDict` doesn't cause an error.
541
550
  # https://github.com/microsoft/pyright/issues/3526#event-6715453066
542
551
  params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
543
- json=json_data if is_given(json_data) else None,
544
- files=files,
545
552
  **kwargs,
546
553
  )
547
554
 
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "scale_gp_beta"
4
- __version__ = "0.1.0-alpha.27" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.29" # x-release-please-version
@@ -1,8 +1,8 @@
1
1
  from typing import Dict, Optional
2
2
 
3
- from scale_gp_beta.lib.tracing.types import SpanTypeLiterals
3
+ from scale_gp_beta.types import SpanType
4
4
 
5
- OPENAI_SPAN_TYPE_MAP: Dict[str, SpanTypeLiterals] = {
5
+ OPENAI_SPAN_TYPE_MAP: Dict[str, SpanType] = {
6
6
  "generation": "COMPLETION",
7
7
  "agent": "AGENT_WORKFLOW",
8
8
  "function": "CODE_EXECUTION",
@@ -17,7 +17,7 @@ OPENAI_SPAN_TYPE_MAP: Dict[str, SpanTypeLiterals] = {
17
17
  }
18
18
 
19
19
 
20
- def openai_span_type_map(span_type: Optional[str]) -> SpanTypeLiterals:
20
+ def openai_span_type_map(span_type: Optional[str]) -> SpanType:
21
21
  """
22
22
  Maps an OpenAI span type string to its corresponding SGP SpanTypeLiteral.
23
23
 
@@ -6,11 +6,12 @@ from typing import TYPE_CHECKING, Type, Optional
6
6
  from threading import RLock
7
7
  from typing_extensions import override
8
8
 
9
+ from scale_gp_beta.types import SpanType, SpanStatus
9
10
  from scale_gp_beta.types.span_upsert_batch_params import Item as SpanCreateRequest
10
11
 
11
12
  from .util import iso_timestamp, generate_span_id
12
13
  from .scope import Scope
13
- from .types import SpanInputParam, SpanOutputParam, SpanTypeLiterals, SpanMetadataParam, SpanStatusLiterals
14
+ from .types import SpanInputParam, SpanOutputParam, SpanMetadataParam
14
15
  from .exceptions import ParamsCreationError
15
16
 
16
17
  if TYPE_CHECKING:
@@ -59,7 +60,7 @@ class BaseSpan:
59
60
  input: Optional[SpanInputParam] = None,
60
61
  output: Optional[SpanOutputParam] = None,
61
62
  metadata: Optional[SpanMetadataParam] = None,
62
- span_type: SpanTypeLiterals = "STANDALONE"
63
+ span_type: SpanType = "STANDALONE"
63
64
  ):
64
65
  self._name = name
65
66
  self._trace_id: str = trace_id or "no_trace_id"
@@ -71,8 +72,8 @@ class BaseSpan:
71
72
  self._input: SpanInputParam = input or {}
72
73
  self._output: SpanOutputParam = output or {}
73
74
  self._metadata: SpanMetadataParam = metadata or {}
74
- self._span_type: SpanTypeLiterals = span_type
75
- self._status: SpanStatusLiterals = "SUCCESS"
75
+ self._span_type: SpanType = span_type
76
+ self._status: SpanStatus = "SUCCESS"
76
77
  self._queue_manager = queue_manager
77
78
 
78
79
  self._contextvar_token: Optional[contextvars.Token[Optional[BaseSpan]]] = None
@@ -108,11 +109,11 @@ class BaseSpan:
108
109
  return self._parent_span_id
109
110
 
110
111
  @property
111
- def status(self) -> SpanStatusLiterals:
112
+ def status(self) -> SpanStatus:
112
113
  return self._status
113
114
 
114
115
  @property
115
- def span_type(self) -> SpanTypeLiterals:
116
+ def span_type(self) -> SpanType:
116
117
  return self._span_type
117
118
 
118
119
  # with setters
@@ -291,7 +292,7 @@ class Span(BaseSpan):
291
292
  input: Optional[SpanInputParam] = None,
292
293
  output: Optional[SpanOutputParam] = None,
293
294
  metadata: Optional[SpanMetadataParam] = None,
294
- span_type: SpanTypeLiterals = "STANDALONE",
295
+ span_type: SpanType = "STANDALONE",
295
296
  ):
296
297
  super().__init__(name, trace_id, queue_manager, span_id, parent_span_id, group_id, input, output, metadata, span_type)
297
298
  self._queue_manager: TraceQueueManager = queue_manager
@@ -4,10 +4,12 @@ from types import TracebackType
4
4
  from typing import Type, Optional
5
5
  from typing_extensions import override
6
6
 
7
+ from scale_gp_beta.types import SpanType, SpanStatus
8
+
7
9
  from .span import Span, BaseSpan, NoOpSpan
8
10
  from .util import generate_trace_id
9
11
  from .scope import Scope
10
- from .types import SpanInputParam, SpanOutputParam, SpanTypeLiterals, SpanMetadataParam, SpanStatusLiterals
12
+ from .types import SpanInputParam, SpanOutputParam, SpanMetadataParam
11
13
  from .trace_queue_manager import TraceQueueManager
12
14
 
13
15
  log: logging.Logger = logging.getLogger(__name__)
@@ -79,11 +81,11 @@ class BaseTrace:
79
81
  return self.root_span.group_id
80
82
 
81
83
  @property
82
- def span_type(self) -> SpanTypeLiterals:
84
+ def span_type(self) -> SpanType:
83
85
  return self.root_span.span_type
84
86
 
85
87
  @property
86
- def status(self) -> SpanStatusLiterals:
88
+ def status(self) -> SpanStatus:
87
89
  return self.root_span.status
88
90
 
89
91
  def set_error(
@@ -128,7 +130,7 @@ class NoOpTrace(BaseTrace):
128
130
  trace_id: Optional[str] = None,
129
131
  span_id: Optional[str] = None,
130
132
  group_id: Optional[str] = None,
131
- span_type: SpanTypeLiterals = "TRACER",
133
+ span_type: SpanType = "TRACER",
132
134
  input: Optional[SpanInputParam] = None,
133
135
  output: Optional[SpanOutputParam] = None,
134
136
  metadata: Optional[SpanMetadataParam] = None,
@@ -164,7 +166,7 @@ class Trace(BaseTrace):
164
166
  trace_id: Optional[str] = None,
165
167
  span_id: Optional[str] = None,
166
168
  group_id: Optional[str] = None,
167
- span_type: SpanTypeLiterals = "TRACER",
169
+ span_type: SpanType = "TRACER",
168
170
  input: Optional[SpanInputParam] = None,
169
171
  output: Optional[SpanOutputParam] = None,
170
172
  metadata: Optional[SpanMetadataParam] = None,
@@ -1,11 +1,13 @@
1
1
  import logging
2
2
  from typing import Optional
3
3
 
4
+ from scale_gp_beta.types import SpanType
5
+
4
6
  from .span import Span, BaseSpan, NoOpSpan
5
7
  from .util import is_disabled
6
8
  from .scope import Scope
7
9
  from .trace import Trace, BaseTrace, NoOpTrace
8
- from .types import SpanInputParam, SpanOutputParam, SpanTypeLiterals, SpanMetadataParam
10
+ from .types import SpanInputParam, SpanOutputParam, SpanMetadataParam
9
11
  from .trace_queue_manager import TraceQueueManager, tracing_queue_manager
10
12
 
11
13
  log: logging.Logger = logging.getLogger(__name__)
@@ -51,7 +53,7 @@ def flush_queue() -> None:
51
53
 
52
54
  def create_trace(
53
55
  name: str,
54
- span_type: SpanTypeLiterals = "TRACER",
56
+ span_type: SpanType = "TRACER",
55
57
  input: Optional[SpanInputParam] = None,
56
58
  output: Optional[SpanOutputParam] = None,
57
59
  metadata: Optional[SpanMetadataParam] = None,
@@ -74,7 +76,7 @@ def create_trace(
74
76
 
75
77
  Args:
76
78
  name: The name of the trace.
77
- span_type (Optional[SpanTypeLiterals]): Type of root span.
79
+ span_type (Optional[SpanType]): Type of root span.
78
80
  input (Optional[SpanInputParam]): Input of root span.
79
81
  output (Optional[SpanOutputParam]): Output of root span.
80
82
  metadata (Optional[SpanMetadataParam]): An optional, user-defined metadata.
@@ -131,7 +133,7 @@ def create_trace(
131
133
 
132
134
  def create_span(
133
135
  name: str,
134
- span_type: SpanTypeLiterals = "STANDALONE",
136
+ span_type: SpanType = "STANDALONE",
135
137
  input: Optional[SpanInputParam] = None,
136
138
  output: Optional[SpanOutputParam] = None,
137
139
  metadata: Optional[SpanMetadataParam] = None,
@@ -160,7 +162,7 @@ def create_span(
160
162
  Args:
161
163
  name (str): A descriptive name for the span (e.g., "database_query",
162
164
  "http_request").
163
- span_type (SpanTypeLiterals): The type of the span.
165
+ span_type (SpanType): The type of the span.
164
166
  input (Optional[SpanInputParam], optional): A dictionary containing
165
167
  input data or parameters relevant to this span's operation. Defaults to None.
166
168
  output (Optional[SpanOutputParam], optional): A dictionary containing
@@ -0,0 +1,5 @@
1
+ from typing_extensions import Any, Dict
2
+
3
+ SpanInputParam = Dict[str, Any]
4
+ SpanOutputParam = Dict[str, Any]
5
+ SpanMetadataParam = Dict[str, Any]
@@ -9,6 +9,8 @@ from typing_extensions import Literal
9
9
  import httpx
10
10
 
11
11
  from ..types import (
12
+ SpanType,
13
+ SpanStatus,
12
14
  span_batch_params,
13
15
  span_create_params,
14
16
  span_search_params,
@@ -28,6 +30,8 @@ from .._response import (
28
30
  from ..pagination import SyncCursorPage, AsyncCursorPage
29
31
  from ..types.span import Span
30
32
  from .._base_client import AsyncPaginator, make_request_options
33
+ from ..types.span_type import SpanType
34
+ from ..types.span_status import SpanStatus
31
35
  from ..types.span_batch_response import SpanBatchResponse
32
36
  from ..types.span_upsert_batch_response import SpanUpsertBatchResponse
33
37
 
@@ -69,34 +73,8 @@ class SpansResource(SyncAPIResource):
69
73
  metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
70
74
  output: Dict[str, object] | NotGiven = NOT_GIVEN,
71
75
  parent_id: str | NotGiven = NOT_GIVEN,
72
- status: Literal["SUCCESS", "ERROR", "CANCELED"] | NotGiven = NOT_GIVEN,
73
- type: Literal[
74
- "TEXT_INPUT",
75
- "TEXT_OUTPUT",
76
- "COMPLETION_INPUT",
77
- "COMPLETION",
78
- "KB_RETRIEVAL",
79
- "KB_INPUT",
80
- "RERANKING",
81
- "EXTERNAL_ENDPOINT",
82
- "PROMPT_ENGINEERING",
83
- "DOCUMENT_INPUT",
84
- "MAP_REDUCE",
85
- "DOCUMENT_SEARCH",
86
- "DOCUMENT_PROMPT",
87
- "CUSTOM",
88
- "CODE_EXECUTION",
89
- "DATA_MANIPULATION",
90
- "EVALUATION",
91
- "FILE_RETRIEVAL",
92
- "KB_ADD_CHUNK",
93
- "KB_MANAGEMENT",
94
- "TRACER",
95
- "AGENT_TRACER",
96
- "AGENT_WORKFLOW",
97
- "STANDALONE",
98
- ]
99
- | NotGiven = NOT_GIVEN,
76
+ status: SpanStatus | NotGiven = NOT_GIVEN,
77
+ type: SpanType | NotGiven = NOT_GIVEN,
100
78
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
101
79
  # The extra values given here take precedence over values defined on the client or passed to this method.
102
80
  extra_headers: Headers | None = None,
@@ -196,7 +174,7 @@ class SpansResource(SyncAPIResource):
196
174
  metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
197
175
  name: str | NotGiven = NOT_GIVEN,
198
176
  output: Dict[str, object] | NotGiven = NOT_GIVEN,
199
- status: Literal["SUCCESS", "ERROR", "CANCELED"] | NotGiven = NOT_GIVEN,
177
+ status: SpanStatus | NotGiven = NOT_GIVEN,
200
178
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
201
179
  # The extra values given here take precedence over values defined on the client or passed to this method.
202
180
  extra_headers: Headers | None = None,
@@ -283,40 +261,13 @@ class SpansResource(SyncAPIResource):
283
261
  group_id: str | NotGiven = NOT_GIVEN,
284
262
  names: List[str] | NotGiven = NOT_GIVEN,
285
263
  parents_only: bool | NotGiven = NOT_GIVEN,
264
+ search_text: str | NotGiven = NOT_GIVEN,
286
265
  span_id: str | NotGiven = NOT_GIVEN,
287
266
  span_ids: List[str] | NotGiven = NOT_GIVEN,
288
- statuses: List[Literal["SUCCESS", "ERROR", "CANCELED"]] | NotGiven = NOT_GIVEN,
267
+ statuses: List[SpanStatus] | NotGiven = NOT_GIVEN,
289
268
  trace_id: str | NotGiven = NOT_GIVEN,
290
269
  trace_ids: List[str] | NotGiven = NOT_GIVEN,
291
- types: List[
292
- Literal[
293
- "TEXT_INPUT",
294
- "TEXT_OUTPUT",
295
- "COMPLETION_INPUT",
296
- "COMPLETION",
297
- "KB_RETRIEVAL",
298
- "KB_INPUT",
299
- "RERANKING",
300
- "EXTERNAL_ENDPOINT",
301
- "PROMPT_ENGINEERING",
302
- "DOCUMENT_INPUT",
303
- "MAP_REDUCE",
304
- "DOCUMENT_SEARCH",
305
- "DOCUMENT_PROMPT",
306
- "CUSTOM",
307
- "CODE_EXECUTION",
308
- "DATA_MANIPULATION",
309
- "EVALUATION",
310
- "FILE_RETRIEVAL",
311
- "KB_ADD_CHUNK",
312
- "KB_MANAGEMENT",
313
- "TRACER",
314
- "AGENT_TRACER",
315
- "AGENT_WORKFLOW",
316
- "STANDALONE",
317
- ]
318
- ]
319
- | NotGiven = NOT_GIVEN,
270
+ types: List[SpanType] | NotGiven = NOT_GIVEN,
320
271
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
321
272
  # The extra values given here take precedence over values defined on the client or passed to this method.
322
273
  extra_headers: Headers | None = None,
@@ -344,6 +295,8 @@ class SpansResource(SyncAPIResource):
344
295
 
345
296
  parents_only: Only fetch spans that are the top-level (ie. have no parent_id)
346
297
 
298
+ search_text: Free text search across span input and output fields
299
+
347
300
  span_id: Filter by span ID (deprecated: use span_ids instead)
348
301
 
349
302
  span_ids: Filter by span IDs
@@ -373,6 +326,7 @@ class SpansResource(SyncAPIResource):
373
326
  "group_id": group_id,
374
327
  "names": names,
375
328
  "parents_only": parents_only,
329
+ "search_text": search_text,
376
330
  "span_id": span_id,
377
331
  "span_ids": span_ids,
378
332
  "statuses": statuses,
@@ -471,34 +425,8 @@ class AsyncSpansResource(AsyncAPIResource):
471
425
  metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
472
426
  output: Dict[str, object] | NotGiven = NOT_GIVEN,
473
427
  parent_id: str | NotGiven = NOT_GIVEN,
474
- status: Literal["SUCCESS", "ERROR", "CANCELED"] | NotGiven = NOT_GIVEN,
475
- type: Literal[
476
- "TEXT_INPUT",
477
- "TEXT_OUTPUT",
478
- "COMPLETION_INPUT",
479
- "COMPLETION",
480
- "KB_RETRIEVAL",
481
- "KB_INPUT",
482
- "RERANKING",
483
- "EXTERNAL_ENDPOINT",
484
- "PROMPT_ENGINEERING",
485
- "DOCUMENT_INPUT",
486
- "MAP_REDUCE",
487
- "DOCUMENT_SEARCH",
488
- "DOCUMENT_PROMPT",
489
- "CUSTOM",
490
- "CODE_EXECUTION",
491
- "DATA_MANIPULATION",
492
- "EVALUATION",
493
- "FILE_RETRIEVAL",
494
- "KB_ADD_CHUNK",
495
- "KB_MANAGEMENT",
496
- "TRACER",
497
- "AGENT_TRACER",
498
- "AGENT_WORKFLOW",
499
- "STANDALONE",
500
- ]
501
- | NotGiven = NOT_GIVEN,
428
+ status: SpanStatus | NotGiven = NOT_GIVEN,
429
+ type: SpanType | NotGiven = NOT_GIVEN,
502
430
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
503
431
  # The extra values given here take precedence over values defined on the client or passed to this method.
504
432
  extra_headers: Headers | None = None,
@@ -598,7 +526,7 @@ class AsyncSpansResource(AsyncAPIResource):
598
526
  metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
599
527
  name: str | NotGiven = NOT_GIVEN,
600
528
  output: Dict[str, object] | NotGiven = NOT_GIVEN,
601
- status: Literal["SUCCESS", "ERROR", "CANCELED"] | NotGiven = NOT_GIVEN,
529
+ status: SpanStatus | NotGiven = NOT_GIVEN,
602
530
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
603
531
  # The extra values given here take precedence over values defined on the client or passed to this method.
604
532
  extra_headers: Headers | None = None,
@@ -685,40 +613,13 @@ class AsyncSpansResource(AsyncAPIResource):
685
613
  group_id: str | NotGiven = NOT_GIVEN,
686
614
  names: List[str] | NotGiven = NOT_GIVEN,
687
615
  parents_only: bool | NotGiven = NOT_GIVEN,
616
+ search_text: str | NotGiven = NOT_GIVEN,
688
617
  span_id: str | NotGiven = NOT_GIVEN,
689
618
  span_ids: List[str] | NotGiven = NOT_GIVEN,
690
- statuses: List[Literal["SUCCESS", "ERROR", "CANCELED"]] | NotGiven = NOT_GIVEN,
619
+ statuses: List[SpanStatus] | NotGiven = NOT_GIVEN,
691
620
  trace_id: str | NotGiven = NOT_GIVEN,
692
621
  trace_ids: List[str] | NotGiven = NOT_GIVEN,
693
- types: List[
694
- Literal[
695
- "TEXT_INPUT",
696
- "TEXT_OUTPUT",
697
- "COMPLETION_INPUT",
698
- "COMPLETION",
699
- "KB_RETRIEVAL",
700
- "KB_INPUT",
701
- "RERANKING",
702
- "EXTERNAL_ENDPOINT",
703
- "PROMPT_ENGINEERING",
704
- "DOCUMENT_INPUT",
705
- "MAP_REDUCE",
706
- "DOCUMENT_SEARCH",
707
- "DOCUMENT_PROMPT",
708
- "CUSTOM",
709
- "CODE_EXECUTION",
710
- "DATA_MANIPULATION",
711
- "EVALUATION",
712
- "FILE_RETRIEVAL",
713
- "KB_ADD_CHUNK",
714
- "KB_MANAGEMENT",
715
- "TRACER",
716
- "AGENT_TRACER",
717
- "AGENT_WORKFLOW",
718
- "STANDALONE",
719
- ]
720
- ]
721
- | NotGiven = NOT_GIVEN,
622
+ types: List[SpanType] | NotGiven = NOT_GIVEN,
722
623
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
723
624
  # The extra values given here take precedence over values defined on the client or passed to this method.
724
625
  extra_headers: Headers | None = None,
@@ -746,6 +647,8 @@ class AsyncSpansResource(AsyncAPIResource):
746
647
 
747
648
  parents_only: Only fetch spans that are the top-level (ie. have no parent_id)
748
649
 
650
+ search_text: Free text search across span input and output fields
651
+
749
652
  span_id: Filter by span ID (deprecated: use span_ids instead)
750
653
 
751
654
  span_ids: Filter by span IDs
@@ -775,6 +678,7 @@ class AsyncSpansResource(AsyncAPIResource):
775
678
  "group_id": group_id,
776
679
  "names": names,
777
680
  "parents_only": parents_only,
681
+ "search_text": search_text,
778
682
  "span_id": span_id,
779
683
  "span_ids": span_ids,
780
684
  "statuses": statuses,
@@ -9,8 +9,10 @@ from .question import Question as Question
9
9
  from .component import Component as Component
10
10
  from .container import Container as Container
11
11
  from .file_list import FileList as FileList
12
+ from .span_type import SpanType as SpanType
12
13
  from .completion import Completion as Completion
13
14
  from .evaluation import Evaluation as Evaluation
15
+ from .span_status import SpanStatus as SpanStatus
14
16
  from .dataset_item import DatasetItem as DatasetItem
15
17
  from .item_locator import ItemLocator as ItemLocator
16
18
  from .question_list import QuestionList as QuestionList
@@ -6,6 +6,8 @@ from datetime import datetime
6
6
  from typing_extensions import Literal
7
7
 
8
8
  from .._models import BaseModel
9
+ from .span_type import SpanType
10
+ from .span_status import SpanStatus
9
11
 
10
12
  __all__ = ["Span"]
11
13
 
@@ -46,33 +48,6 @@ class Span(BaseModel):
46
48
  parent_id: Optional[str] = None
47
49
  """Reference to a parent span_id"""
48
50
 
49
- status: Optional[Literal["SUCCESS", "ERROR", "CANCELED"]] = None
50
-
51
- type: Optional[
52
- Literal[
53
- "TEXT_INPUT",
54
- "TEXT_OUTPUT",
55
- "COMPLETION_INPUT",
56
- "COMPLETION",
57
- "KB_RETRIEVAL",
58
- "KB_INPUT",
59
- "RERANKING",
60
- "EXTERNAL_ENDPOINT",
61
- "PROMPT_ENGINEERING",
62
- "DOCUMENT_INPUT",
63
- "MAP_REDUCE",
64
- "DOCUMENT_SEARCH",
65
- "DOCUMENT_PROMPT",
66
- "CUSTOM",
67
- "CODE_EXECUTION",
68
- "DATA_MANIPULATION",
69
- "EVALUATION",
70
- "FILE_RETRIEVAL",
71
- "KB_ADD_CHUNK",
72
- "KB_MANAGEMENT",
73
- "TRACER",
74
- "AGENT_TRACER",
75
- "AGENT_WORKFLOW",
76
- "STANDALONE",
77
- ]
78
- ] = None
51
+ status: Optional[SpanStatus] = None
52
+
53
+ type: Optional[SpanType] = None
@@ -4,9 +4,11 @@ from __future__ import annotations
4
4
 
5
5
  from typing import Dict, Union, Iterable
6
6
  from datetime import datetime
7
- from typing_extensions import Literal, Required, Annotated, TypedDict
7
+ from typing_extensions import Required, Annotated, TypedDict
8
8
 
9
9
  from .._utils import PropertyInfo
10
+ from .span_type import SpanType
11
+ from .span_status import SpanStatus
10
12
 
11
13
  __all__ = ["SpanBatchParams", "Item"]
12
14
 
@@ -46,31 +48,6 @@ class Item(TypedDict, total=False):
46
48
  parent_id: str
47
49
  """Reference to a parent span_id"""
48
50
 
49
- status: Literal["SUCCESS", "ERROR", "CANCELED"]
50
-
51
- type: Literal[
52
- "TEXT_INPUT",
53
- "TEXT_OUTPUT",
54
- "COMPLETION_INPUT",
55
- "COMPLETION",
56
- "KB_RETRIEVAL",
57
- "KB_INPUT",
58
- "RERANKING",
59
- "EXTERNAL_ENDPOINT",
60
- "PROMPT_ENGINEERING",
61
- "DOCUMENT_INPUT",
62
- "MAP_REDUCE",
63
- "DOCUMENT_SEARCH",
64
- "DOCUMENT_PROMPT",
65
- "CUSTOM",
66
- "CODE_EXECUTION",
67
- "DATA_MANIPULATION",
68
- "EVALUATION",
69
- "FILE_RETRIEVAL",
70
- "KB_ADD_CHUNK",
71
- "KB_MANAGEMENT",
72
- "TRACER",
73
- "AGENT_TRACER",
74
- "AGENT_WORKFLOW",
75
- "STANDALONE",
76
- ]
51
+ status: SpanStatus
52
+
53
+ type: SpanType