diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4015238..49f178b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: permissions: contents: read id-token: write - runs-on: depot-ubuntu-24.04 + runs-on: ${{ github.repository == 'stainless-sdks/codex-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} steps: - uses: actions/checkout@v4 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3188ced..315f7d3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.25" + ".": "0.1.0-alpha.26" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 890def2..1be05f4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,3 +1,3 @@ configured_endpoints: 55 -openapi_spec_hash: 7daf4896ba4932714f8fe4fff277d7c7 +openapi_spec_hash: b260cce23d53dba37b982654e7928405 config_hash: bed87752f4056d0c4bf2ddf856307800 diff --git a/CHANGELOG.md b/CHANGELOG.md index 12b39fc..a7d10a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 0.1.0-alpha.26 (2025-08-27) + +Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/cleanlab/codex-python/compare/v0.1.0-alpha.25...v0.1.0-alpha.26) + +### Features + +* **api:** api update ([9bb8f17](https://github.com/cleanlab/codex-python/commit/9bb8f17149849ea312caf7b895f02a2c38ac3270)) +* **api:** api update ([ecbda1c](https://github.com/cleanlab/codex-python/commit/ecbda1ca9f1aaf40a325e105cc0659ea0e318511)) +* **api:** api update ([4151cf2](https://github.com/cleanlab/codex-python/commit/4151cf288ea4f75ac7c6eb5c07c9861d67b5ad92)) +* **api:** api update ([cfc87fb](https://github.com/cleanlab/codex-python/commit/cfc87fb65a3a29f0584b7dffccc79f2442307fa9)) + + +### Bug Fixes + +* avoid newer type syntax ([7a7b9a3](https://github.com/cleanlab/codex-python/commit/7a7b9a3ee6cfed2e57359a54c1b9292f06cc71b6)) + + +### Chores + +* **internal:** change ci workflow machines ([052599a](https://github.com/cleanlab/codex-python/commit/052599aee2e484d9cc305983da900878374db17d)) +* **internal:** update pyright exclude list ([cc58363](https://github.com/cleanlab/codex-python/commit/cc58363a9c78ce08437508d3c64cb9b29b43e9bd)) + ## 0.1.0-alpha.25 (2025-08-22) Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/cleanlab/codex-python/compare/v0.1.0-alpha.24...v0.1.0-alpha.25) diff --git a/pyproject.toml b/pyproject.toml index 3209698..67c7d36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "codex-sdk" -version = "0.1.0-alpha.25" +version = "0.1.0-alpha.26" description = "Internal SDK used within cleanlab-codex package. Refer to https://pypi.org/project/cleanlab-codex/ instead." dynamic = ["readme"] license = "MIT" @@ -148,6 +148,7 @@ exclude = [ "_dev", ".venv", ".nox", + ".git", ] reportImplicitOverride = true diff --git a/src/codex/_models.py b/src/codex/_models.py index b8387ce..92f7c10 100644 --- a/src/codex/_models.py +++ b/src/codex/_models.py @@ -304,7 +304,7 @@ def model_dump( exclude_none=exclude_none, ) - return cast(dict[str, Any], json_safe(dumped)) if mode == "json" else dumped + return cast("dict[str, Any]", json_safe(dumped)) if mode == "json" else dumped @override def model_dump_json( diff --git a/src/codex/_version.py b/src/codex/_version.py index 656ce65..1e7d5f1 100644 --- a/src/codex/_version.py +++ b/src/codex/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "codex" -__version__ = "0.1.0-alpha.25" # x-release-please-version +__version__ = "0.1.0-alpha.26" # x-release-please-version diff --git a/src/codex/resources/projects/query_logs.py b/src/codex/resources/projects/query_logs.py index e3b17ab..6bbd748 100644 --- a/src/codex/resources/projects/query_logs.py +++ b/src/codex/resources/projects/query_logs.py @@ -115,7 +115,18 @@ def list( List[Literal["hallucination", "search_failure", "unhelpful", "difficult_query", "ungrounded"]] ] | NotGiven = NOT_GIVEN, - sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN, + sort: Optional[ + Literal[ + "created_at", + "primary_eval_issue_score", + "score_trustworthiness", + "score_context_sufficiency", + "score_response_helpfulness", + "score_query_ease", + "score_response_groundedness", + ] + ] + | NotGiven = NOT_GIVEN, tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN, was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -250,7 +261,18 @@ def list_by_group( ] | NotGiven = NOT_GIVEN, remediation_ids: List[str] | NotGiven = NOT_GIVEN, - sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN, + sort: Optional[ + Literal[ + "created_at", + "primary_eval_issue_score", + "score_trustworthiness", + "score_context_sufficiency", + "score_response_helpfulness", + "score_query_ease", + "score_response_groundedness", + ] + ] + | NotGiven = NOT_GIVEN, tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN, was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -539,7 +561,18 @@ def list( List[Literal["hallucination", "search_failure", "unhelpful", "difficult_query", "ungrounded"]] ] | NotGiven = NOT_GIVEN, - sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN, + sort: Optional[ + Literal[ + "created_at", + "primary_eval_issue_score", + "score_trustworthiness", + "score_context_sufficiency", + "score_response_helpfulness", + "score_query_ease", + "score_response_groundedness", + ] + ] + | NotGiven = NOT_GIVEN, tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN, was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -676,7 +709,18 @@ async def list_by_group( ] | NotGiven = NOT_GIVEN, remediation_ids: List[str] | NotGiven = NOT_GIVEN, - sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN, + sort: Optional[ + Literal[ + "created_at", + "primary_eval_issue_score", + "score_trustworthiness", + "score_context_sufficiency", + "score_response_helpfulness", + "score_query_ease", + "score_response_groundedness", + ] + ] + | NotGiven = NOT_GIVEN, tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN, was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. diff --git a/src/codex/types/projects/query_log_list_by_group_params.py b/src/codex/types/projects/query_log_list_by_group_params.py index 0fbb280..5ca6d10 100644 --- a/src/codex/types/projects/query_log_list_by_group_params.py +++ b/src/codex/types/projects/query_log_list_by_group_params.py @@ -50,7 +50,17 @@ class QueryLogListByGroupParams(TypedDict, total=False): remediation_ids: List[str] """List of groups to list child logs for""" - sort: Optional[Literal["created_at", "primary_eval_issue_score"]] + sort: Optional[ + Literal[ + "created_at", + "primary_eval_issue_score", + "score_trustworthiness", + "score_context_sufficiency", + "score_response_helpfulness", + "score_query_ease", + "score_response_groundedness", + ] + ] tool_call_names: Optional[List[str]] """Filter by names of tools called in the assistant response""" diff --git a/src/codex/types/projects/query_log_list_groups_response.py b/src/codex/types/projects/query_log_list_groups_response.py index 7b2d44c..7dbf192 100644 --- a/src/codex/types/projects/query_log_list_groups_response.py +++ b/src/codex/types/projects/query_log_list_groups_response.py @@ -337,6 +337,9 @@ class QueryLogListGroupsResponse(BaseModel): formatted_original_question: Optional[str] = None + impact_score: float + """Impact score used for prioritization sorting""" + is_bad_response: bool needs_review: bool diff --git a/src/codex/types/projects/query_log_list_params.py b/src/codex/types/projects/query_log_list_params.py index 02c1707..2da646f 100644 --- a/src/codex/types/projects/query_log_list_params.py +++ b/src/codex/types/projects/query_log_list_params.py @@ -44,7 +44,17 @@ class QueryLogListParams(TypedDict, total=False): ] """Filter logs that have ANY of these primary evaluation issues (OR operation)""" - sort: Optional[Literal["created_at", "primary_eval_issue_score"]] + sort: Optional[ + Literal[ + "created_at", + "primary_eval_issue_score", + "score_trustworthiness", + "score_context_sufficiency", + "score_response_helpfulness", + "score_query_ease", + "score_response_groundedness", + ] + ] tool_call_names: Optional[List[str]] """Filter by names of tools called in the assistant response"""