Skip to content

Commit 9bb8f17

Browse files
feat(api): api update
1 parent cc58363 commit 9bb8f17

File tree

4 files changed

+71
-7
lines changed

4 files changed

+71
-7
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 55
2-
openapi_spec_hash: d69252c7252423bc98ecc17807eb33ec
2+
openapi_spec_hash: b260cce23d53dba37b982654e7928405
33
config_hash: bed87752f4056d0c4bf2ddf856307800

src/codex/resources/projects/query_logs.py

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,18 @@ def list(
115115
List[Literal["hallucination", "search_failure", "unhelpful", "difficult_query", "ungrounded"]]
116116
]
117117
| NotGiven = NOT_GIVEN,
118-
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
118+
sort: Optional[
119+
Literal[
120+
"created_at",
121+
"primary_eval_issue_score",
122+
"score_trustworthiness",
123+
"score_context_sufficiency",
124+
"score_response_helpfulness",
125+
"score_query_ease",
126+
"score_response_groundedness",
127+
]
128+
]
129+
| NotGiven = NOT_GIVEN,
119130
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
120131
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
121132
# 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(
250261
]
251262
| NotGiven = NOT_GIVEN,
252263
remediation_ids: List[str] | NotGiven = NOT_GIVEN,
253-
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
264+
sort: Optional[
265+
Literal[
266+
"created_at",
267+
"primary_eval_issue_score",
268+
"score_trustworthiness",
269+
"score_context_sufficiency",
270+
"score_response_helpfulness",
271+
"score_query_ease",
272+
"score_response_groundedness",
273+
]
274+
]
275+
| NotGiven = NOT_GIVEN,
254276
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
255277
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
256278
# 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(
539561
List[Literal["hallucination", "search_failure", "unhelpful", "difficult_query", "ungrounded"]]
540562
]
541563
| NotGiven = NOT_GIVEN,
542-
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
564+
sort: Optional[
565+
Literal[
566+
"created_at",
567+
"primary_eval_issue_score",
568+
"score_trustworthiness",
569+
"score_context_sufficiency",
570+
"score_response_helpfulness",
571+
"score_query_ease",
572+
"score_response_groundedness",
573+
]
574+
]
575+
| NotGiven = NOT_GIVEN,
543576
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
544577
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
545578
# 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(
676709
]
677710
| NotGiven = NOT_GIVEN,
678711
remediation_ids: List[str] | NotGiven = NOT_GIVEN,
679-
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
712+
sort: Optional[
713+
Literal[
714+
"created_at",
715+
"primary_eval_issue_score",
716+
"score_trustworthiness",
717+
"score_context_sufficiency",
718+
"score_response_helpfulness",
719+
"score_query_ease",
720+
"score_response_groundedness",
721+
]
722+
]
723+
| NotGiven = NOT_GIVEN,
680724
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
681725
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
682726
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/codex/types/projects/query_log_list_by_group_params.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ class QueryLogListByGroupParams(TypedDict, total=False):
5050
remediation_ids: List[str]
5151
"""List of groups to list child logs for"""
5252

53-
sort: Optional[Literal["created_at", "primary_eval_issue_score"]]
53+
sort: Optional[
54+
Literal[
55+
"created_at",
56+
"primary_eval_issue_score",
57+
"score_trustworthiness",
58+
"score_context_sufficiency",
59+
"score_response_helpfulness",
60+
"score_query_ease",
61+
"score_response_groundedness",
62+
]
63+
]
5464

5565
tool_call_names: Optional[List[str]]
5666
"""Filter by names of tools called in the assistant response"""

src/codex/types/projects/query_log_list_params.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@ class QueryLogListParams(TypedDict, total=False):
4444
]
4545
"""Filter logs that have ANY of these primary evaluation issues (OR operation)"""
4646

47-
sort: Optional[Literal["created_at", "primary_eval_issue_score"]]
47+
sort: Optional[
48+
Literal[
49+
"created_at",
50+
"primary_eval_issue_score",
51+
"score_trustworthiness",
52+
"score_context_sufficiency",
53+
"score_response_helpfulness",
54+
"score_query_ease",
55+
"score_response_groundedness",
56+
]
57+
]
4858

4959
tool_call_names: Optional[List[str]]
5060
"""Filter by names of tools called in the assistant response"""

0 commit comments

Comments
 (0)