scale-gp-beta 0.1.0a28__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.
- scale_gp_beta-0.1.0a29/.release-please-manifest.json +3 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/CHANGELOG.md +15 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/PKG-INFO +1 -1
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/api.md +7 -1
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/pyproject.toml +1 -1
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_version.py +1 -1
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/openai_span_type_map.py +3 -3
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/span.py +8 -7
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/trace.py +7 -5
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/tracing.py +7 -5
- scale_gp_beta-0.1.0a29/src/scale_gp_beta/lib/tracing/types.py +5 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/spans.py +14 -122
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/__init__.py +2 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span.py +5 -31
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_batch_params.py +6 -30
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_create_params.py +6 -30
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_search_params.py +4 -30
- scale_gp_beta-0.1.0a29/src/scale_gp_beta/types/span_status.py +7 -0
- scale_gp_beta-0.1.0a29/src/scale_gp_beta/types/span_type.py +33 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_update_params.py +3 -2
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_upsert_batch_params.py +6 -30
- scale_gp_beta-0.1.0a28/.release-please-manifest.json +0 -3
- scale_gp_beta-0.1.0a28/src/scale_gp_beta/lib/tracing/types.py +0 -43
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/.gitignore +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/CONTRIBUTING.md +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/LICENSE +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/README.md +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/SECURITY.md +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/bin/check-release-environment +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/bin/publish-pypi +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/examples/.keep +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/examples/tracing/0_primitives_fibonacci.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/examples/tracing/1_explicit_use_case.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/examples/tracing/2_direct_upload.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/examples/tracing/3_openai_agent_tracing.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/mypy.ini +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/noxfile.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/release-please-config.json +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/requirements-dev.lock +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/requirements.lock +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_base_client.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_client.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_compat.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_constants.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_exceptions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_files.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_models.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_qs.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_resource.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_streaming.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_types.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_logs.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_proxy.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_reflection.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_resources_proxy.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_streams.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_sync.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_transform.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_typing.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/_utils/_utils.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/exceptions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/openai_tracing_sgp_processor.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/integrations/openai/utils.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/scope.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/trace_exporter.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/trace_queue_manager.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/lib/tracing/util.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/pagination.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/py.typed +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/chat/chat.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/chat/completions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/completions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/dataset_items.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/datasets.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/evaluation_items.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/evaluations.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/files/content.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/files/files.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/inference.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/models.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/resources/questions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/chat_completion.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/chat_completion_chunk.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_create_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_models_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/completion_models_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/chat/model_definition.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/completion.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/completion_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/component.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/component_param.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/container.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/container_param.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_batch_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_batch_create_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_list_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_item_update_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_list_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/dataset_update_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_item.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_item_list_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_item_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_list_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_task.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_task_param.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/evaluation_update_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_list.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_list_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/file_update_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_create_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_model.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_model_list.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/inference_response_chunk.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/item_locator.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/item_locator_template.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_list_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/model_update_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question_create_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question_list.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/question_list_params.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_batch_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_upsert_batch_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/sgp_dev/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/chat/test_completions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/files/test_content.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_completions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_dataset_items.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_datasets.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_evaluation_items.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_evaluations.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_files.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_inference.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_models.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_questions.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/api_resources/test_spans.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/conftest.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_span.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_trace.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_trace_exporter.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/lib/tracing/test_tracing.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/sample_file.txt +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_client.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_deepcopy.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_extract_files.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_files.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_models.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_qs.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_required_args.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_response.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_streaming.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_transform.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_utils/test_proxy.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/test_utils/test_typing.py +0 -0
- {scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/tests/utils.py +0 -0
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
|
|
3
18
|
## 0.1.0-alpha.28 (2025-07-11)
|
|
4
19
|
|
|
5
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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: scale-gp-beta
|
|
3
|
-
Version: 0.1.
|
|
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
|
|
@@ -171,7 +171,13 @@ Methods:
|
|
|
171
171
|
Types:
|
|
172
172
|
|
|
173
173
|
```python
|
|
174
|
-
from scale_gp_beta.types import
|
|
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,8 +1,8 @@
|
|
|
1
1
|
from typing import Dict, Optional
|
|
2
2
|
|
|
3
|
-
from scale_gp_beta.
|
|
3
|
+
from scale_gp_beta.types import SpanType
|
|
4
4
|
|
|
5
|
-
OPENAI_SPAN_TYPE_MAP: Dict[str,
|
|
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]) ->
|
|
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,
|
|
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:
|
|
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:
|
|
75
|
-
self._status:
|
|
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) ->
|
|
112
|
+
def status(self) -> SpanStatus:
|
|
112
113
|
return self._status
|
|
113
114
|
|
|
114
115
|
@property
|
|
115
|
-
def span_type(self) ->
|
|
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:
|
|
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,
|
|
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) ->
|
|
84
|
+
def span_type(self) -> SpanType:
|
|
83
85
|
return self.root_span.span_type
|
|
84
86
|
|
|
85
87
|
@property
|
|
86
|
-
def status(self) ->
|
|
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:
|
|
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:
|
|
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,
|
|
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:
|
|
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[
|
|
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:
|
|
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 (
|
|
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
|
|
@@ -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,35 +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:
|
|
73
|
-
type:
|
|
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
|
-
"GUARDRAIL",
|
|
95
|
-
"TRACER",
|
|
96
|
-
"AGENT_TRACER",
|
|
97
|
-
"AGENT_WORKFLOW",
|
|
98
|
-
"STANDALONE",
|
|
99
|
-
]
|
|
100
|
-
| NotGiven = NOT_GIVEN,
|
|
76
|
+
status: SpanStatus | NotGiven = NOT_GIVEN,
|
|
77
|
+
type: SpanType | NotGiven = NOT_GIVEN,
|
|
101
78
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
102
79
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
103
80
|
extra_headers: Headers | None = None,
|
|
@@ -197,7 +174,7 @@ class SpansResource(SyncAPIResource):
|
|
|
197
174
|
metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
198
175
|
name: str | NotGiven = NOT_GIVEN,
|
|
199
176
|
output: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
200
|
-
status:
|
|
177
|
+
status: SpanStatus | NotGiven = NOT_GIVEN,
|
|
201
178
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
202
179
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
203
180
|
extra_headers: Headers | None = None,
|
|
@@ -287,39 +264,10 @@ class SpansResource(SyncAPIResource):
|
|
|
287
264
|
search_text: str | NotGiven = NOT_GIVEN,
|
|
288
265
|
span_id: str | NotGiven = NOT_GIVEN,
|
|
289
266
|
span_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
290
|
-
statuses: List[
|
|
267
|
+
statuses: List[SpanStatus] | NotGiven = NOT_GIVEN,
|
|
291
268
|
trace_id: str | NotGiven = NOT_GIVEN,
|
|
292
269
|
trace_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
293
|
-
types: List[
|
|
294
|
-
Literal[
|
|
295
|
-
"TEXT_INPUT",
|
|
296
|
-
"TEXT_OUTPUT",
|
|
297
|
-
"COMPLETION_INPUT",
|
|
298
|
-
"COMPLETION",
|
|
299
|
-
"KB_RETRIEVAL",
|
|
300
|
-
"KB_INPUT",
|
|
301
|
-
"RERANKING",
|
|
302
|
-
"EXTERNAL_ENDPOINT",
|
|
303
|
-
"PROMPT_ENGINEERING",
|
|
304
|
-
"DOCUMENT_INPUT",
|
|
305
|
-
"MAP_REDUCE",
|
|
306
|
-
"DOCUMENT_SEARCH",
|
|
307
|
-
"DOCUMENT_PROMPT",
|
|
308
|
-
"CUSTOM",
|
|
309
|
-
"CODE_EXECUTION",
|
|
310
|
-
"DATA_MANIPULATION",
|
|
311
|
-
"EVALUATION",
|
|
312
|
-
"FILE_RETRIEVAL",
|
|
313
|
-
"KB_ADD_CHUNK",
|
|
314
|
-
"KB_MANAGEMENT",
|
|
315
|
-
"GUARDRAIL",
|
|
316
|
-
"TRACER",
|
|
317
|
-
"AGENT_TRACER",
|
|
318
|
-
"AGENT_WORKFLOW",
|
|
319
|
-
"STANDALONE",
|
|
320
|
-
]
|
|
321
|
-
]
|
|
322
|
-
| NotGiven = NOT_GIVEN,
|
|
270
|
+
types: List[SpanType] | NotGiven = NOT_GIVEN,
|
|
323
271
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
324
272
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
325
273
|
extra_headers: Headers | None = None,
|
|
@@ -477,35 +425,8 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
|
477
425
|
metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
478
426
|
output: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
479
427
|
parent_id: str | NotGiven = NOT_GIVEN,
|
|
480
|
-
status:
|
|
481
|
-
type:
|
|
482
|
-
"TEXT_INPUT",
|
|
483
|
-
"TEXT_OUTPUT",
|
|
484
|
-
"COMPLETION_INPUT",
|
|
485
|
-
"COMPLETION",
|
|
486
|
-
"KB_RETRIEVAL",
|
|
487
|
-
"KB_INPUT",
|
|
488
|
-
"RERANKING",
|
|
489
|
-
"EXTERNAL_ENDPOINT",
|
|
490
|
-
"PROMPT_ENGINEERING",
|
|
491
|
-
"DOCUMENT_INPUT",
|
|
492
|
-
"MAP_REDUCE",
|
|
493
|
-
"DOCUMENT_SEARCH",
|
|
494
|
-
"DOCUMENT_PROMPT",
|
|
495
|
-
"CUSTOM",
|
|
496
|
-
"CODE_EXECUTION",
|
|
497
|
-
"DATA_MANIPULATION",
|
|
498
|
-
"EVALUATION",
|
|
499
|
-
"FILE_RETRIEVAL",
|
|
500
|
-
"KB_ADD_CHUNK",
|
|
501
|
-
"KB_MANAGEMENT",
|
|
502
|
-
"GUARDRAIL",
|
|
503
|
-
"TRACER",
|
|
504
|
-
"AGENT_TRACER",
|
|
505
|
-
"AGENT_WORKFLOW",
|
|
506
|
-
"STANDALONE",
|
|
507
|
-
]
|
|
508
|
-
| NotGiven = NOT_GIVEN,
|
|
428
|
+
status: SpanStatus | NotGiven = NOT_GIVEN,
|
|
429
|
+
type: SpanType | NotGiven = NOT_GIVEN,
|
|
509
430
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
510
431
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
511
432
|
extra_headers: Headers | None = None,
|
|
@@ -605,7 +526,7 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
|
605
526
|
metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
606
527
|
name: str | NotGiven = NOT_GIVEN,
|
|
607
528
|
output: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
608
|
-
status:
|
|
529
|
+
status: SpanStatus | NotGiven = NOT_GIVEN,
|
|
609
530
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
610
531
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
611
532
|
extra_headers: Headers | None = None,
|
|
@@ -695,39 +616,10 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
|
695
616
|
search_text: str | NotGiven = NOT_GIVEN,
|
|
696
617
|
span_id: str | NotGiven = NOT_GIVEN,
|
|
697
618
|
span_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
698
|
-
statuses: List[
|
|
619
|
+
statuses: List[SpanStatus] | NotGiven = NOT_GIVEN,
|
|
699
620
|
trace_id: str | NotGiven = NOT_GIVEN,
|
|
700
621
|
trace_ids: List[str] | NotGiven = NOT_GIVEN,
|
|
701
|
-
types: List[
|
|
702
|
-
Literal[
|
|
703
|
-
"TEXT_INPUT",
|
|
704
|
-
"TEXT_OUTPUT",
|
|
705
|
-
"COMPLETION_INPUT",
|
|
706
|
-
"COMPLETION",
|
|
707
|
-
"KB_RETRIEVAL",
|
|
708
|
-
"KB_INPUT",
|
|
709
|
-
"RERANKING",
|
|
710
|
-
"EXTERNAL_ENDPOINT",
|
|
711
|
-
"PROMPT_ENGINEERING",
|
|
712
|
-
"DOCUMENT_INPUT",
|
|
713
|
-
"MAP_REDUCE",
|
|
714
|
-
"DOCUMENT_SEARCH",
|
|
715
|
-
"DOCUMENT_PROMPT",
|
|
716
|
-
"CUSTOM",
|
|
717
|
-
"CODE_EXECUTION",
|
|
718
|
-
"DATA_MANIPULATION",
|
|
719
|
-
"EVALUATION",
|
|
720
|
-
"FILE_RETRIEVAL",
|
|
721
|
-
"KB_ADD_CHUNK",
|
|
722
|
-
"KB_MANAGEMENT",
|
|
723
|
-
"GUARDRAIL",
|
|
724
|
-
"TRACER",
|
|
725
|
-
"AGENT_TRACER",
|
|
726
|
-
"AGENT_WORKFLOW",
|
|
727
|
-
"STANDALONE",
|
|
728
|
-
]
|
|
729
|
-
]
|
|
730
|
-
| NotGiven = NOT_GIVEN,
|
|
622
|
+
types: List[SpanType] | NotGiven = NOT_GIVEN,
|
|
731
623
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
732
624
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
733
625
|
extra_headers: Headers | None = None,
|
|
@@ -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,34 +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[
|
|
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
|
-
"GUARDRAIL",
|
|
74
|
-
"TRACER",
|
|
75
|
-
"AGENT_TRACER",
|
|
76
|
-
"AGENT_WORKFLOW",
|
|
77
|
-
"STANDALONE",
|
|
78
|
-
]
|
|
79
|
-
] = None
|
|
51
|
+
status: Optional[SpanStatus] = None
|
|
52
|
+
|
|
53
|
+
type: Optional[SpanType] = None
|
{scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_batch_params.py
RENAMED
|
@@ -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
|
|
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,32 +48,6 @@ class Item(TypedDict, total=False):
|
|
|
46
48
|
parent_id: str
|
|
47
49
|
"""Reference to a parent span_id"""
|
|
48
50
|
|
|
49
|
-
status:
|
|
50
|
-
|
|
51
|
-
type:
|
|
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
|
-
"GUARDRAIL",
|
|
73
|
-
"TRACER",
|
|
74
|
-
"AGENT_TRACER",
|
|
75
|
-
"AGENT_WORKFLOW",
|
|
76
|
-
"STANDALONE",
|
|
77
|
-
]
|
|
51
|
+
status: SpanStatus
|
|
52
|
+
|
|
53
|
+
type: SpanType
|
{scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_create_params.py
RENAMED
|
@@ -4,9 +4,11 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing import Dict, Union
|
|
6
6
|
from datetime import datetime
|
|
7
|
-
from typing_extensions import
|
|
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__ = ["SpanCreateParams"]
|
|
12
14
|
|
|
@@ -42,32 +44,6 @@ class SpanCreateParams(TypedDict, total=False):
|
|
|
42
44
|
parent_id: str
|
|
43
45
|
"""Reference to a parent span_id"""
|
|
44
46
|
|
|
45
|
-
status:
|
|
46
|
-
|
|
47
|
-
type:
|
|
48
|
-
"TEXT_INPUT",
|
|
49
|
-
"TEXT_OUTPUT",
|
|
50
|
-
"COMPLETION_INPUT",
|
|
51
|
-
"COMPLETION",
|
|
52
|
-
"KB_RETRIEVAL",
|
|
53
|
-
"KB_INPUT",
|
|
54
|
-
"RERANKING",
|
|
55
|
-
"EXTERNAL_ENDPOINT",
|
|
56
|
-
"PROMPT_ENGINEERING",
|
|
57
|
-
"DOCUMENT_INPUT",
|
|
58
|
-
"MAP_REDUCE",
|
|
59
|
-
"DOCUMENT_SEARCH",
|
|
60
|
-
"DOCUMENT_PROMPT",
|
|
61
|
-
"CUSTOM",
|
|
62
|
-
"CODE_EXECUTION",
|
|
63
|
-
"DATA_MANIPULATION",
|
|
64
|
-
"EVALUATION",
|
|
65
|
-
"FILE_RETRIEVAL",
|
|
66
|
-
"KB_ADD_CHUNK",
|
|
67
|
-
"KB_MANAGEMENT",
|
|
68
|
-
"GUARDRAIL",
|
|
69
|
-
"TRACER",
|
|
70
|
-
"AGENT_TRACER",
|
|
71
|
-
"AGENT_WORKFLOW",
|
|
72
|
-
"STANDALONE",
|
|
73
|
-
]
|
|
47
|
+
status: SpanStatus
|
|
48
|
+
|
|
49
|
+
type: SpanType
|
{scale_gp_beta-0.1.0a28 → scale_gp_beta-0.1.0a29}/src/scale_gp_beta/types/span_search_params.py
RENAMED
|
@@ -7,6 +7,8 @@ from datetime import datetime
|
|
|
7
7
|
from typing_extensions import Literal, 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__ = ["SpanSearchParams"]
|
|
12
14
|
|
|
@@ -53,7 +55,7 @@ class SpanSearchParams(TypedDict, total=False):
|
|
|
53
55
|
span_ids: List[str]
|
|
54
56
|
"""Filter by span IDs"""
|
|
55
57
|
|
|
56
|
-
statuses: List[
|
|
58
|
+
statuses: List[SpanStatus]
|
|
57
59
|
"""Filter on span status"""
|
|
58
60
|
|
|
59
61
|
trace_id: str
|
|
@@ -62,32 +64,4 @@ class SpanSearchParams(TypedDict, total=False):
|
|
|
62
64
|
trace_ids: List[str]
|
|
63
65
|
"""Filter by trace IDs"""
|
|
64
66
|
|
|
65
|
-
types: List[
|
|
66
|
-
Literal[
|
|
67
|
-
"TEXT_INPUT",
|
|
68
|
-
"TEXT_OUTPUT",
|
|
69
|
-
"COMPLETION_INPUT",
|
|
70
|
-
"COMPLETION",
|
|
71
|
-
"KB_RETRIEVAL",
|
|
72
|
-
"KB_INPUT",
|
|
73
|
-
"RERANKING",
|
|
74
|
-
"EXTERNAL_ENDPOINT",
|
|
75
|
-
"PROMPT_ENGINEERING",
|
|
76
|
-
"DOCUMENT_INPUT",
|
|
77
|
-
"MAP_REDUCE",
|
|
78
|
-
"DOCUMENT_SEARCH",
|
|
79
|
-
"DOCUMENT_PROMPT",
|
|
80
|
-
"CUSTOM",
|
|
81
|
-
"CODE_EXECUTION",
|
|
82
|
-
"DATA_MANIPULATION",
|
|
83
|
-
"EVALUATION",
|
|
84
|
-
"FILE_RETRIEVAL",
|
|
85
|
-
"KB_ADD_CHUNK",
|
|
86
|
-
"KB_MANAGEMENT",
|
|
87
|
-
"GUARDRAIL",
|
|
88
|
-
"TRACER",
|
|
89
|
-
"AGENT_TRACER",
|
|
90
|
-
"AGENT_WORKFLOW",
|
|
91
|
-
"STANDALONE",
|
|
92
|
-
]
|
|
93
|
-
]
|
|
67
|
+
types: List[SpanType]
|