scale-gp-beta 0.1.0a16__tar.gz → 0.1.0a17__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.0a17/.release-please-manifest.json +3 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/CHANGELOG.md +8 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/PKG-INFO +1 -1
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/api.md +3 -1
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/pyproject.toml +1 -1
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_version.py +1 -1
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/spans.py +331 -1
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/__init__.py +4 -0
- scale_gp_beta-0.1.0a17/src/scale_gp_beta/types/span_search_params.py +77 -0
- scale_gp_beta-0.1.0a17/src/scale_gp_beta/types/span_search_response.py +27 -0
- scale_gp_beta-0.1.0a17/src/scale_gp_beta/types/span_upsert_batch_params.py +78 -0
- scale_gp_beta-0.1.0a17/src/scale_gp_beta/types/span_upsert_batch_response.py +15 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_spans.py +194 -1
- scale_gp_beta-0.1.0a16/.release-please-manifest.json +0 -3
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/.gitignore +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/CONTRIBUTING.md +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/LICENSE +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/README.md +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/SECURITY.md +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/bin/check-release-environment +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/bin/publish-pypi +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/examples/.keep +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/mypy.ini +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/noxfile.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/release-please-config.json +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/requirements-dev.lock +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/requirements.lock +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_base_client.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_client.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_compat.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_constants.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_exceptions.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_files.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_models.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_qs.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_resource.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_streaming.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_types.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_logs.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_proxy.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_reflection.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_resources_proxy.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_streams.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_sync.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_transform.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_typing.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/_utils/_utils.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/pagination.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/py.typed +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/chat/chat.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/chat/completions.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/completions.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/dataset_items.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/datasets.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/evaluation_items.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/evaluations.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/files/content.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/files/files.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/inference.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/resources/models.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/chat_completion.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/chat_completion_chunk.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/completion_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/completion_create_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/completion_models_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/completion_models_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/chat/model_definition.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/completion.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/completion_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/component.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/component_param.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/container.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/container_param.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_item.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_item_batch_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_item_batch_create_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_item_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_item_list_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_item_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_item_update_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_list_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/dataset_update_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_item.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_item_list_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_item_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_list_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_task.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_task_param.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/evaluation_update_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/file.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/file_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/file_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/file_list.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/file_list_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/file_update_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/inference_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/inference_create_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/inference_model.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/inference_model_list.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/inference_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/inference_response_chunk.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/item_locator.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/item_locator_template.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/model_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/model_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/model_list_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/model_update_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/span.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/span_batch_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/span_batch_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/span_create_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/scale_gp_beta/types/span_update_params.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/src/sgp_dev/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/chat/test_completions.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/files/test_content.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_completions.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_dataset_items.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_datasets.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_evaluation_items.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_evaluations.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_files.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_inference.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/api_resources/test_models.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/conftest.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/sample_file.txt +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_client.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_deepcopy.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_extract_files.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_files.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_models.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_qs.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_required_args.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_response.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_streaming.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_transform.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_utils/test_proxy.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/test_utils/test_typing.py +0 -0
- {scale_gp_beta-0.1.0a16 → scale_gp_beta-0.1.0a17}/tests/utils.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.17 (2025-06-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/scaleapi/sgp-python-beta/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Added Span upsert batch and search endpoints ([f109f69](https://github.com/scaleapi/sgp-python-beta/commit/f109f6919886874122f541bf3bc8bb7d690648f1))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.16 (2025-06-10)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/scaleapi/sgp-python-beta/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: scale-gp-beta
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a17
|
|
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
|
|
@@ -157,7 +157,7 @@ Methods:
|
|
|
157
157
|
Types:
|
|
158
158
|
|
|
159
159
|
```python
|
|
160
|
-
from scale_gp_beta.types import Span, SpanBatchResponse
|
|
160
|
+
from scale_gp_beta.types import Span, SpanBatchResponse, SpanSearchResponse, SpanUpsertBatchResponse
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
Methods:
|
|
@@ -166,3 +166,5 @@ Methods:
|
|
|
166
166
|
- <code title="get /v5/spans/{span_id}">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">retrieve</a>(span_id) -> <a href="./src/scale_gp_beta/types/span.py">Span</a></code>
|
|
167
167
|
- <code title="patch /v5/spans/{span_id}">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">update</a>(span_id, \*\*<a href="src/scale_gp_beta/types/span_update_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span.py">Span</a></code>
|
|
168
168
|
- <code title="post /v5/spans/batch">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">batch</a>(\*\*<a href="src/scale_gp_beta/types/span_batch_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span_batch_response.py">SpanBatchResponse</a></code>
|
|
169
|
+
- <code title="post /v5/spans/search">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">search</a>(\*\*<a href="src/scale_gp_beta/types/span_search_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span_search_response.py">SpanSearchResponse</a></code>
|
|
170
|
+
- <code title="put /v5/spans/batch">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">upsert_batch</a>(\*\*<a href="src/scale_gp_beta/types/span_upsert_batch_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span_upsert_batch_response.py">SpanUpsertBatchResponse</a></code>
|
|
@@ -8,7 +8,13 @@ from typing_extensions import Literal
|
|
|
8
8
|
|
|
9
9
|
import httpx
|
|
10
10
|
|
|
11
|
-
from ..types import
|
|
11
|
+
from ..types import (
|
|
12
|
+
span_batch_params,
|
|
13
|
+
span_create_params,
|
|
14
|
+
span_search_params,
|
|
15
|
+
span_update_params,
|
|
16
|
+
span_upsert_batch_params,
|
|
17
|
+
)
|
|
12
18
|
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
13
19
|
from .._utils import maybe_transform, async_maybe_transform
|
|
14
20
|
from .._compat import cached_property
|
|
@@ -22,6 +28,8 @@ from .._response import (
|
|
|
22
28
|
from ..types.span import Span
|
|
23
29
|
from .._base_client import make_request_options
|
|
24
30
|
from ..types.span_batch_response import SpanBatchResponse
|
|
31
|
+
from ..types.span_search_response import SpanSearchResponse
|
|
32
|
+
from ..types.span_upsert_batch_response import SpanUpsertBatchResponse
|
|
25
33
|
|
|
26
34
|
__all__ = ["SpansResource", "AsyncSpansResource"]
|
|
27
35
|
|
|
@@ -262,6 +270,155 @@ class SpansResource(SyncAPIResource):
|
|
|
262
270
|
cast_to=SpanBatchResponse,
|
|
263
271
|
)
|
|
264
272
|
|
|
273
|
+
def search(
|
|
274
|
+
self,
|
|
275
|
+
*,
|
|
276
|
+
ending_before: str | NotGiven = NOT_GIVEN,
|
|
277
|
+
from_ts: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
278
|
+
limit: int | NotGiven = NOT_GIVEN,
|
|
279
|
+
sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
|
|
280
|
+
starting_after: str | NotGiven = NOT_GIVEN,
|
|
281
|
+
to_ts: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
282
|
+
extra_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
283
|
+
group_id: str | NotGiven = NOT_GIVEN,
|
|
284
|
+
name: str | NotGiven = NOT_GIVEN,
|
|
285
|
+
parents_only: bool | NotGiven = NOT_GIVEN,
|
|
286
|
+
span_id: str | NotGiven = NOT_GIVEN,
|
|
287
|
+
status: Literal["SUCCESS", "ERROR"] | NotGiven = NOT_GIVEN,
|
|
288
|
+
trace_id: str | NotGiven = NOT_GIVEN,
|
|
289
|
+
type: Literal[
|
|
290
|
+
"TEXT_INPUT",
|
|
291
|
+
"TEXT_OUTPUT",
|
|
292
|
+
"COMPLETION_INPUT",
|
|
293
|
+
"COMPLETION",
|
|
294
|
+
"KB_RETRIEVAL",
|
|
295
|
+
"KB_INPUT",
|
|
296
|
+
"RERANKING",
|
|
297
|
+
"EXTERNAL_ENDPOINT",
|
|
298
|
+
"PROMPT_ENGINEERING",
|
|
299
|
+
"DOCUMENT_INPUT",
|
|
300
|
+
"MAP_REDUCE",
|
|
301
|
+
"DOCUMENT_SEARCH",
|
|
302
|
+
"DOCUMENT_PROMPT",
|
|
303
|
+
"CUSTOM",
|
|
304
|
+
"INPUT_GUARDRAIL",
|
|
305
|
+
"OUTPUT_GUARDRAIL",
|
|
306
|
+
"CODE_EXECUTION",
|
|
307
|
+
"DATA_MANIPULATION",
|
|
308
|
+
"EVALUATION",
|
|
309
|
+
"FILE_RETRIEVAL",
|
|
310
|
+
"KB_ADD_CHUNK",
|
|
311
|
+
"KB_MANAGEMENT",
|
|
312
|
+
"TRACER",
|
|
313
|
+
"AGENT_TRACER",
|
|
314
|
+
"AGENT_WORKFLOW",
|
|
315
|
+
"STANDALONE",
|
|
316
|
+
]
|
|
317
|
+
| NotGiven = NOT_GIVEN,
|
|
318
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
319
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
320
|
+
extra_headers: Headers | None = None,
|
|
321
|
+
extra_query: Query | None = None,
|
|
322
|
+
extra_body: Body | None = None,
|
|
323
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
324
|
+
) -> SpanSearchResponse:
|
|
325
|
+
"""
|
|
326
|
+
Search and list spans
|
|
327
|
+
|
|
328
|
+
Args:
|
|
329
|
+
from_ts: The starting (oldest) timestamp in ISO format.
|
|
330
|
+
|
|
331
|
+
to_ts: The ending (most recent) timestamp in ISO format.
|
|
332
|
+
|
|
333
|
+
extra_metadata: Filter on custom metadata key-value pairs
|
|
334
|
+
|
|
335
|
+
group_id: Filter by group ID
|
|
336
|
+
|
|
337
|
+
name: Filter by trace/span name
|
|
338
|
+
|
|
339
|
+
parents_only: Only fetch spans that are the top-level (ie. have no parent_id)
|
|
340
|
+
|
|
341
|
+
span_id: Filter by span ID
|
|
342
|
+
|
|
343
|
+
status: Filter on span status
|
|
344
|
+
|
|
345
|
+
trace_id: Which trace_id to filter on
|
|
346
|
+
|
|
347
|
+
extra_headers: Send extra headers
|
|
348
|
+
|
|
349
|
+
extra_query: Add additional query parameters to the request
|
|
350
|
+
|
|
351
|
+
extra_body: Add additional JSON properties to the request
|
|
352
|
+
|
|
353
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
354
|
+
"""
|
|
355
|
+
return self._post(
|
|
356
|
+
"/v5/spans/search",
|
|
357
|
+
body=maybe_transform(
|
|
358
|
+
{
|
|
359
|
+
"extra_metadata": extra_metadata,
|
|
360
|
+
"group_id": group_id,
|
|
361
|
+
"name": name,
|
|
362
|
+
"parents_only": parents_only,
|
|
363
|
+
"span_id": span_id,
|
|
364
|
+
"status": status,
|
|
365
|
+
"trace_id": trace_id,
|
|
366
|
+
"type": type,
|
|
367
|
+
},
|
|
368
|
+
span_search_params.SpanSearchParams,
|
|
369
|
+
),
|
|
370
|
+
options=make_request_options(
|
|
371
|
+
extra_headers=extra_headers,
|
|
372
|
+
extra_query=extra_query,
|
|
373
|
+
extra_body=extra_body,
|
|
374
|
+
timeout=timeout,
|
|
375
|
+
query=maybe_transform(
|
|
376
|
+
{
|
|
377
|
+
"ending_before": ending_before,
|
|
378
|
+
"from_ts": from_ts,
|
|
379
|
+
"limit": limit,
|
|
380
|
+
"sort_order": sort_order,
|
|
381
|
+
"starting_after": starting_after,
|
|
382
|
+
"to_ts": to_ts,
|
|
383
|
+
},
|
|
384
|
+
span_search_params.SpanSearchParams,
|
|
385
|
+
),
|
|
386
|
+
),
|
|
387
|
+
cast_to=SpanSearchResponse,
|
|
388
|
+
)
|
|
389
|
+
|
|
390
|
+
def upsert_batch(
|
|
391
|
+
self,
|
|
392
|
+
*,
|
|
393
|
+
items: Iterable[span_upsert_batch_params.Item],
|
|
394
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
395
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
396
|
+
extra_headers: Headers | None = None,
|
|
397
|
+
extra_query: Query | None = None,
|
|
398
|
+
extra_body: Body | None = None,
|
|
399
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
400
|
+
) -> SpanUpsertBatchResponse:
|
|
401
|
+
"""
|
|
402
|
+
Upsert Spans in Batch
|
|
403
|
+
|
|
404
|
+
Args:
|
|
405
|
+
extra_headers: Send extra headers
|
|
406
|
+
|
|
407
|
+
extra_query: Add additional query parameters to the request
|
|
408
|
+
|
|
409
|
+
extra_body: Add additional JSON properties to the request
|
|
410
|
+
|
|
411
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
412
|
+
"""
|
|
413
|
+
return self._put(
|
|
414
|
+
"/v5/spans/batch",
|
|
415
|
+
body=maybe_transform({"items": items}, span_upsert_batch_params.SpanUpsertBatchParams),
|
|
416
|
+
options=make_request_options(
|
|
417
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
418
|
+
),
|
|
419
|
+
cast_to=SpanUpsertBatchResponse,
|
|
420
|
+
)
|
|
421
|
+
|
|
265
422
|
|
|
266
423
|
class AsyncSpansResource(AsyncAPIResource):
|
|
267
424
|
@cached_property
|
|
@@ -499,6 +656,155 @@ class AsyncSpansResource(AsyncAPIResource):
|
|
|
499
656
|
cast_to=SpanBatchResponse,
|
|
500
657
|
)
|
|
501
658
|
|
|
659
|
+
async def search(
|
|
660
|
+
self,
|
|
661
|
+
*,
|
|
662
|
+
ending_before: str | NotGiven = NOT_GIVEN,
|
|
663
|
+
from_ts: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
664
|
+
limit: int | NotGiven = NOT_GIVEN,
|
|
665
|
+
sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
|
|
666
|
+
starting_after: str | NotGiven = NOT_GIVEN,
|
|
667
|
+
to_ts: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
668
|
+
extra_metadata: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
669
|
+
group_id: str | NotGiven = NOT_GIVEN,
|
|
670
|
+
name: str | NotGiven = NOT_GIVEN,
|
|
671
|
+
parents_only: bool | NotGiven = NOT_GIVEN,
|
|
672
|
+
span_id: str | NotGiven = NOT_GIVEN,
|
|
673
|
+
status: Literal["SUCCESS", "ERROR"] | NotGiven = NOT_GIVEN,
|
|
674
|
+
trace_id: str | NotGiven = NOT_GIVEN,
|
|
675
|
+
type: Literal[
|
|
676
|
+
"TEXT_INPUT",
|
|
677
|
+
"TEXT_OUTPUT",
|
|
678
|
+
"COMPLETION_INPUT",
|
|
679
|
+
"COMPLETION",
|
|
680
|
+
"KB_RETRIEVAL",
|
|
681
|
+
"KB_INPUT",
|
|
682
|
+
"RERANKING",
|
|
683
|
+
"EXTERNAL_ENDPOINT",
|
|
684
|
+
"PROMPT_ENGINEERING",
|
|
685
|
+
"DOCUMENT_INPUT",
|
|
686
|
+
"MAP_REDUCE",
|
|
687
|
+
"DOCUMENT_SEARCH",
|
|
688
|
+
"DOCUMENT_PROMPT",
|
|
689
|
+
"CUSTOM",
|
|
690
|
+
"INPUT_GUARDRAIL",
|
|
691
|
+
"OUTPUT_GUARDRAIL",
|
|
692
|
+
"CODE_EXECUTION",
|
|
693
|
+
"DATA_MANIPULATION",
|
|
694
|
+
"EVALUATION",
|
|
695
|
+
"FILE_RETRIEVAL",
|
|
696
|
+
"KB_ADD_CHUNK",
|
|
697
|
+
"KB_MANAGEMENT",
|
|
698
|
+
"TRACER",
|
|
699
|
+
"AGENT_TRACER",
|
|
700
|
+
"AGENT_WORKFLOW",
|
|
701
|
+
"STANDALONE",
|
|
702
|
+
]
|
|
703
|
+
| NotGiven = NOT_GIVEN,
|
|
704
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
705
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
706
|
+
extra_headers: Headers | None = None,
|
|
707
|
+
extra_query: Query | None = None,
|
|
708
|
+
extra_body: Body | None = None,
|
|
709
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
710
|
+
) -> SpanSearchResponse:
|
|
711
|
+
"""
|
|
712
|
+
Search and list spans
|
|
713
|
+
|
|
714
|
+
Args:
|
|
715
|
+
from_ts: The starting (oldest) timestamp in ISO format.
|
|
716
|
+
|
|
717
|
+
to_ts: The ending (most recent) timestamp in ISO format.
|
|
718
|
+
|
|
719
|
+
extra_metadata: Filter on custom metadata key-value pairs
|
|
720
|
+
|
|
721
|
+
group_id: Filter by group ID
|
|
722
|
+
|
|
723
|
+
name: Filter by trace/span name
|
|
724
|
+
|
|
725
|
+
parents_only: Only fetch spans that are the top-level (ie. have no parent_id)
|
|
726
|
+
|
|
727
|
+
span_id: Filter by span ID
|
|
728
|
+
|
|
729
|
+
status: Filter on span status
|
|
730
|
+
|
|
731
|
+
trace_id: Which trace_id to filter on
|
|
732
|
+
|
|
733
|
+
extra_headers: Send extra headers
|
|
734
|
+
|
|
735
|
+
extra_query: Add additional query parameters to the request
|
|
736
|
+
|
|
737
|
+
extra_body: Add additional JSON properties to the request
|
|
738
|
+
|
|
739
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
740
|
+
"""
|
|
741
|
+
return await self._post(
|
|
742
|
+
"/v5/spans/search",
|
|
743
|
+
body=await async_maybe_transform(
|
|
744
|
+
{
|
|
745
|
+
"extra_metadata": extra_metadata,
|
|
746
|
+
"group_id": group_id,
|
|
747
|
+
"name": name,
|
|
748
|
+
"parents_only": parents_only,
|
|
749
|
+
"span_id": span_id,
|
|
750
|
+
"status": status,
|
|
751
|
+
"trace_id": trace_id,
|
|
752
|
+
"type": type,
|
|
753
|
+
},
|
|
754
|
+
span_search_params.SpanSearchParams,
|
|
755
|
+
),
|
|
756
|
+
options=make_request_options(
|
|
757
|
+
extra_headers=extra_headers,
|
|
758
|
+
extra_query=extra_query,
|
|
759
|
+
extra_body=extra_body,
|
|
760
|
+
timeout=timeout,
|
|
761
|
+
query=await async_maybe_transform(
|
|
762
|
+
{
|
|
763
|
+
"ending_before": ending_before,
|
|
764
|
+
"from_ts": from_ts,
|
|
765
|
+
"limit": limit,
|
|
766
|
+
"sort_order": sort_order,
|
|
767
|
+
"starting_after": starting_after,
|
|
768
|
+
"to_ts": to_ts,
|
|
769
|
+
},
|
|
770
|
+
span_search_params.SpanSearchParams,
|
|
771
|
+
),
|
|
772
|
+
),
|
|
773
|
+
cast_to=SpanSearchResponse,
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
async def upsert_batch(
|
|
777
|
+
self,
|
|
778
|
+
*,
|
|
779
|
+
items: Iterable[span_upsert_batch_params.Item],
|
|
780
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
781
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
782
|
+
extra_headers: Headers | None = None,
|
|
783
|
+
extra_query: Query | None = None,
|
|
784
|
+
extra_body: Body | None = None,
|
|
785
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
786
|
+
) -> SpanUpsertBatchResponse:
|
|
787
|
+
"""
|
|
788
|
+
Upsert Spans in Batch
|
|
789
|
+
|
|
790
|
+
Args:
|
|
791
|
+
extra_headers: Send extra headers
|
|
792
|
+
|
|
793
|
+
extra_query: Add additional query parameters to the request
|
|
794
|
+
|
|
795
|
+
extra_body: Add additional JSON properties to the request
|
|
796
|
+
|
|
797
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
798
|
+
"""
|
|
799
|
+
return await self._put(
|
|
800
|
+
"/v5/spans/batch",
|
|
801
|
+
body=await async_maybe_transform({"items": items}, span_upsert_batch_params.SpanUpsertBatchParams),
|
|
802
|
+
options=make_request_options(
|
|
803
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
804
|
+
),
|
|
805
|
+
cast_to=SpanUpsertBatchResponse,
|
|
806
|
+
)
|
|
807
|
+
|
|
502
808
|
|
|
503
809
|
class SpansResourceWithRawResponse:
|
|
504
810
|
def __init__(self, spans: SpansResource) -> None:
|
|
@@ -516,6 +822,12 @@ class SpansResourceWithRawResponse:
|
|
|
516
822
|
self.batch = to_raw_response_wrapper(
|
|
517
823
|
spans.batch,
|
|
518
824
|
)
|
|
825
|
+
self.search = to_raw_response_wrapper(
|
|
826
|
+
spans.search,
|
|
827
|
+
)
|
|
828
|
+
self.upsert_batch = to_raw_response_wrapper(
|
|
829
|
+
spans.upsert_batch,
|
|
830
|
+
)
|
|
519
831
|
|
|
520
832
|
|
|
521
833
|
class AsyncSpansResourceWithRawResponse:
|
|
@@ -534,6 +846,12 @@ class AsyncSpansResourceWithRawResponse:
|
|
|
534
846
|
self.batch = async_to_raw_response_wrapper(
|
|
535
847
|
spans.batch,
|
|
536
848
|
)
|
|
849
|
+
self.search = async_to_raw_response_wrapper(
|
|
850
|
+
spans.search,
|
|
851
|
+
)
|
|
852
|
+
self.upsert_batch = async_to_raw_response_wrapper(
|
|
853
|
+
spans.upsert_batch,
|
|
854
|
+
)
|
|
537
855
|
|
|
538
856
|
|
|
539
857
|
class SpansResourceWithStreamingResponse:
|
|
@@ -552,6 +870,12 @@ class SpansResourceWithStreamingResponse:
|
|
|
552
870
|
self.batch = to_streamed_response_wrapper(
|
|
553
871
|
spans.batch,
|
|
554
872
|
)
|
|
873
|
+
self.search = to_streamed_response_wrapper(
|
|
874
|
+
spans.search,
|
|
875
|
+
)
|
|
876
|
+
self.upsert_batch = to_streamed_response_wrapper(
|
|
877
|
+
spans.upsert_batch,
|
|
878
|
+
)
|
|
555
879
|
|
|
556
880
|
|
|
557
881
|
class AsyncSpansResourceWithStreamingResponse:
|
|
@@ -570,3 +894,9 @@ class AsyncSpansResourceWithStreamingResponse:
|
|
|
570
894
|
self.batch = async_to_streamed_response_wrapper(
|
|
571
895
|
spans.batch,
|
|
572
896
|
)
|
|
897
|
+
self.search = async_to_streamed_response_wrapper(
|
|
898
|
+
spans.search,
|
|
899
|
+
)
|
|
900
|
+
self.upsert_batch = async_to_streamed_response_wrapper(
|
|
901
|
+
spans.upsert_batch,
|
|
902
|
+
)
|
|
@@ -24,6 +24,7 @@ from .file_create_params import FileCreateParams as FileCreateParams
|
|
|
24
24
|
from .file_update_params import FileUpdateParams as FileUpdateParams
|
|
25
25
|
from .inference_response import InferenceResponse as InferenceResponse
|
|
26
26
|
from .span_create_params import SpanCreateParams as SpanCreateParams
|
|
27
|
+
from .span_search_params import SpanSearchParams as SpanSearchParams
|
|
27
28
|
from .span_update_params import SpanUpdateParams as SpanUpdateParams
|
|
28
29
|
from .dataset_list_params import DatasetListParams as DatasetListParams
|
|
29
30
|
from .model_create_params import ModelCreateParams as ModelCreateParams
|
|
@@ -31,6 +32,7 @@ from .model_update_params import ModelUpdateParams as ModelUpdateParams
|
|
|
31
32
|
from .span_batch_response import SpanBatchResponse as SpanBatchResponse
|
|
32
33
|
from .file_delete_response import FileDeleteResponse as FileDeleteResponse
|
|
33
34
|
from .inference_model_list import InferenceModelList as InferenceModelList
|
|
35
|
+
from .span_search_response import SpanSearchResponse as SpanSearchResponse
|
|
34
36
|
from .dataset_create_params import DatasetCreateParams as DatasetCreateParams
|
|
35
37
|
from .dataset_update_params import DatasetUpdateParams as DatasetUpdateParams
|
|
36
38
|
from .evaluation_task_param import EvaluationTaskParam as EvaluationTaskParam
|
|
@@ -45,10 +47,12 @@ from .dataset_item_list_params import DatasetItemListParams as DatasetItemListPa
|
|
|
45
47
|
from .evaluation_create_params import EvaluationCreateParams as EvaluationCreateParams
|
|
46
48
|
from .evaluation_update_params import EvaluationUpdateParams as EvaluationUpdateParams
|
|
47
49
|
from .inference_response_chunk import InferenceResponseChunk as InferenceResponseChunk
|
|
50
|
+
from .span_upsert_batch_params import SpanUpsertBatchParams as SpanUpsertBatchParams
|
|
48
51
|
from .inference_create_response import InferenceCreateResponse as InferenceCreateResponse
|
|
49
52
|
from .dataset_item_update_params import DatasetItemUpdateParams as DatasetItemUpdateParams
|
|
50
53
|
from .evaluation_delete_response import EvaluationDeleteResponse as EvaluationDeleteResponse
|
|
51
54
|
from .evaluation_retrieve_params import EvaluationRetrieveParams as EvaluationRetrieveParams
|
|
55
|
+
from .span_upsert_batch_response import SpanUpsertBatchResponse as SpanUpsertBatchResponse
|
|
52
56
|
from .evaluation_item_list_params import EvaluationItemListParams as EvaluationItemListParams
|
|
53
57
|
from .dataset_item_delete_response import DatasetItemDeleteResponse as DatasetItemDeleteResponse
|
|
54
58
|
from .dataset_item_retrieve_params import DatasetItemRetrieveParams as DatasetItemRetrieveParams
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Union
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
from .._utils import PropertyInfo
|
|
10
|
+
|
|
11
|
+
__all__ = ["SpanSearchParams"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SpanSearchParams(TypedDict, total=False):
|
|
15
|
+
ending_before: str
|
|
16
|
+
|
|
17
|
+
from_ts: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
18
|
+
"""The starting (oldest) timestamp in ISO format."""
|
|
19
|
+
|
|
20
|
+
limit: int
|
|
21
|
+
|
|
22
|
+
sort_order: Literal["asc", "desc"]
|
|
23
|
+
|
|
24
|
+
starting_after: str
|
|
25
|
+
|
|
26
|
+
to_ts: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
27
|
+
"""The ending (most recent) timestamp in ISO format."""
|
|
28
|
+
|
|
29
|
+
extra_metadata: Dict[str, object]
|
|
30
|
+
"""Filter on custom metadata key-value pairs"""
|
|
31
|
+
|
|
32
|
+
group_id: str
|
|
33
|
+
"""Filter by group ID"""
|
|
34
|
+
|
|
35
|
+
name: str
|
|
36
|
+
"""Filter by trace/span name"""
|
|
37
|
+
|
|
38
|
+
parents_only: bool
|
|
39
|
+
"""Only fetch spans that are the top-level (ie. have no parent_id)"""
|
|
40
|
+
|
|
41
|
+
span_id: str
|
|
42
|
+
"""Filter by span ID"""
|
|
43
|
+
|
|
44
|
+
status: Literal["SUCCESS", "ERROR"]
|
|
45
|
+
"""Filter on span status"""
|
|
46
|
+
|
|
47
|
+
trace_id: str
|
|
48
|
+
"""Which trace_id to filter on"""
|
|
49
|
+
|
|
50
|
+
type: Literal[
|
|
51
|
+
"TEXT_INPUT",
|
|
52
|
+
"TEXT_OUTPUT",
|
|
53
|
+
"COMPLETION_INPUT",
|
|
54
|
+
"COMPLETION",
|
|
55
|
+
"KB_RETRIEVAL",
|
|
56
|
+
"KB_INPUT",
|
|
57
|
+
"RERANKING",
|
|
58
|
+
"EXTERNAL_ENDPOINT",
|
|
59
|
+
"PROMPT_ENGINEERING",
|
|
60
|
+
"DOCUMENT_INPUT",
|
|
61
|
+
"MAP_REDUCE",
|
|
62
|
+
"DOCUMENT_SEARCH",
|
|
63
|
+
"DOCUMENT_PROMPT",
|
|
64
|
+
"CUSTOM",
|
|
65
|
+
"INPUT_GUARDRAIL",
|
|
66
|
+
"OUTPUT_GUARDRAIL",
|
|
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
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from .span import Span
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["SpanSearchResponse"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SpanSearchResponse(BaseModel):
|
|
13
|
+
has_more: bool
|
|
14
|
+
"""Whether there are more items left to be fetched."""
|
|
15
|
+
|
|
16
|
+
items: List[Span]
|
|
17
|
+
|
|
18
|
+
total: int
|
|
19
|
+
"""The total of items that match the query.
|
|
20
|
+
|
|
21
|
+
This is greater than or equal to the number of items returned.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
limit: Optional[int] = None
|
|
25
|
+
"""The maximum number of items to return."""
|
|
26
|
+
|
|
27
|
+
object: Optional[Literal["list"]] = None
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, Union, Iterable
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
from .._utils import PropertyInfo
|
|
10
|
+
|
|
11
|
+
__all__ = ["SpanUpsertBatchParams", "Item"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SpanUpsertBatchParams(TypedDict, total=False):
|
|
15
|
+
items: Required[Iterable[Item]]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Item(TypedDict, total=False):
|
|
19
|
+
name: Required[str]
|
|
20
|
+
|
|
21
|
+
start_timestamp: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
22
|
+
|
|
23
|
+
trace_id: Required[str]
|
|
24
|
+
"""id for grouping traces together, uuid is recommended"""
|
|
25
|
+
|
|
26
|
+
id: str
|
|
27
|
+
"""The id of the span"""
|
|
28
|
+
|
|
29
|
+
application_interaction_id: str
|
|
30
|
+
"""The optional application interaction ID this span belongs to"""
|
|
31
|
+
|
|
32
|
+
application_variant_id: str
|
|
33
|
+
"""The optional application variant ID this span belongs to"""
|
|
34
|
+
|
|
35
|
+
end_timestamp: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
36
|
+
|
|
37
|
+
group_id: str
|
|
38
|
+
"""Reference to a group_id"""
|
|
39
|
+
|
|
40
|
+
input: Dict[str, object]
|
|
41
|
+
|
|
42
|
+
metadata: Dict[str, object]
|
|
43
|
+
|
|
44
|
+
output: Dict[str, object]
|
|
45
|
+
|
|
46
|
+
parent_id: str
|
|
47
|
+
"""Reference to a parent span_id"""
|
|
48
|
+
|
|
49
|
+
status: Literal["SUCCESS", "ERROR"]
|
|
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
|
+
"INPUT_GUARDRAIL",
|
|
67
|
+
"OUTPUT_GUARDRAIL",
|
|
68
|
+
"CODE_EXECUTION",
|
|
69
|
+
"DATA_MANIPULATION",
|
|
70
|
+
"EVALUATION",
|
|
71
|
+
"FILE_RETRIEVAL",
|
|
72
|
+
"KB_ADD_CHUNK",
|
|
73
|
+
"KB_MANAGEMENT",
|
|
74
|
+
"TRACER",
|
|
75
|
+
"AGENT_TRACER",
|
|
76
|
+
"AGENT_WORKFLOW",
|
|
77
|
+
"STANDALONE",
|
|
78
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from .span import Span
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["SpanUpsertBatchResponse"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SpanUpsertBatchResponse(BaseModel):
|
|
13
|
+
items: List[Span]
|
|
14
|
+
|
|
15
|
+
object: Optional[Literal["list"]] = None
|