Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.25"
".": "0.1.0-alpha.26"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 55
openapi_spec_hash: 7daf4896ba4932714f8fe4fff277d7c7
openapi_spec_hash: b260cce23d53dba37b982654e7928405
config_hash: bed87752f4056d0c4bf2ddf856307800
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -148,6 +148,7 @@ exclude = [
"_dev",
".venv",
".nox",
".git",
]

reportImplicitOverride = true
Expand Down
2 changes: 1 addition & 1 deletion src/codex/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/codex/_version.py
Original file line number Diff line number Diff line change
@@ -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
52 changes: 48 additions & 4 deletions src/codex/resources/projects/query_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
12 changes: 11 additions & 1 deletion src/codex/types/projects/query_log_list_by_group_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
3 changes: 3 additions & 0 deletions src/codex/types/projects/query_log_list_groups_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion src/codex/types/projects/query_log_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down