Skip to content

Commit 9c5d83e

Browse files
feat(api): api update
1 parent 370bb62 commit 9c5d83e

File tree

7 files changed

+43
-1
lines changed

7 files changed

+43
-1
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: 54
2-
openapi_spec_hash: 6b4e0d5289d21e9bcda264caea7f03d8
2+
openapi_spec_hash: 928298b295109c995a0b3a8679b441b7
33
config_hash: 930284cfa37f835d949c8a1b124f4807

src/codex/resources/projects/query_logs.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def list(
100100
custom_metadata: Optional[str] | NotGiven = NOT_GIVEN,
101101
failed_evals: Optional[List[str]] | NotGiven = NOT_GIVEN,
102102
guardrailed: Optional[bool] | NotGiven = NOT_GIVEN,
103+
has_tool_calls: Optional[bool] | NotGiven = NOT_GIVEN,
103104
limit: int | NotGiven = NOT_GIVEN,
104105
offset: int | NotGiven = NOT_GIVEN,
105106
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
@@ -132,6 +133,8 @@ def list(
132133
133134
guardrailed: Filter by guardrailed status
134135
136+
has_tool_calls: Filter by whether the query log has tool calls
137+
135138
passed_evals: Filter by evals that passed
136139
137140
primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
@@ -165,6 +168,7 @@ def list(
165168
"custom_metadata": custom_metadata,
166169
"failed_evals": failed_evals,
167170
"guardrailed": guardrailed,
171+
"has_tool_calls": has_tool_calls,
168172
"limit": limit,
169173
"offset": offset,
170174
"order": order,
@@ -189,6 +193,7 @@ def list_by_group(
189193
custom_metadata: Optional[str] | NotGiven = NOT_GIVEN,
190194
failed_evals: Optional[List[str]] | NotGiven = NOT_GIVEN,
191195
guardrailed: Optional[bool] | NotGiven = NOT_GIVEN,
196+
has_tool_calls: Optional[bool] | NotGiven = NOT_GIVEN,
192197
limit: int | NotGiven = NOT_GIVEN,
193198
needs_review: Optional[bool] | NotGiven = NOT_GIVEN,
194199
offset: int | NotGiven = NOT_GIVEN,
@@ -223,6 +228,8 @@ def list_by_group(
223228
224229
guardrailed: Filter by guardrailed status
225230
231+
has_tool_calls: Filter by whether the query log has tool calls
232+
226233
needs_review: Filter logs that need review
227234
228235
passed_evals: Filter by evals that passed
@@ -259,6 +266,7 @@ def list_by_group(
259266
"custom_metadata": custom_metadata,
260267
"failed_evals": failed_evals,
261268
"guardrailed": guardrailed,
269+
"has_tool_calls": has_tool_calls,
262270
"limit": limit,
263271
"needs_review": needs_review,
264272
"offset": offset,
@@ -285,6 +293,7 @@ def list_groups(
285293
custom_metadata: Optional[str] | NotGiven = NOT_GIVEN,
286294
failed_evals: Optional[List[str]] | NotGiven = NOT_GIVEN,
287295
guardrailed: Optional[bool] | NotGiven = NOT_GIVEN,
296+
has_tool_calls: Optional[bool] | NotGiven = NOT_GIVEN,
288297
limit: int | NotGiven = NOT_GIVEN,
289298
needs_review: Optional[bool] | NotGiven = NOT_GIVEN,
290299
offset: int | NotGiven = NOT_GIVEN,
@@ -319,6 +328,8 @@ def list_groups(
319328
320329
guardrailed: Filter by guardrailed status
321330
331+
has_tool_calls: Filter by whether the query log has tool calls
332+
322333
needs_review: Filter log groups that need review
323334
324335
passed_evals: Filter by evals that passed
@@ -354,6 +365,7 @@ def list_groups(
354365
"custom_metadata": custom_metadata,
355366
"failed_evals": failed_evals,
356367
"guardrailed": guardrailed,
368+
"has_tool_calls": has_tool_calls,
357369
"limit": limit,
358370
"needs_review": needs_review,
359371
"offset": offset,
@@ -472,6 +484,7 @@ def list(
472484
custom_metadata: Optional[str] | NotGiven = NOT_GIVEN,
473485
failed_evals: Optional[List[str]] | NotGiven = NOT_GIVEN,
474486
guardrailed: Optional[bool] | NotGiven = NOT_GIVEN,
487+
has_tool_calls: Optional[bool] | NotGiven = NOT_GIVEN,
475488
limit: int | NotGiven = NOT_GIVEN,
476489
offset: int | NotGiven = NOT_GIVEN,
477490
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
@@ -504,6 +517,8 @@ def list(
504517
505518
guardrailed: Filter by guardrailed status
506519
520+
has_tool_calls: Filter by whether the query log has tool calls
521+
507522
passed_evals: Filter by evals that passed
508523
509524
primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
@@ -537,6 +552,7 @@ def list(
537552
"custom_metadata": custom_metadata,
538553
"failed_evals": failed_evals,
539554
"guardrailed": guardrailed,
555+
"has_tool_calls": has_tool_calls,
540556
"limit": limit,
541557
"offset": offset,
542558
"order": order,
@@ -561,6 +577,7 @@ async def list_by_group(
561577
custom_metadata: Optional[str] | NotGiven = NOT_GIVEN,
562578
failed_evals: Optional[List[str]] | NotGiven = NOT_GIVEN,
563579
guardrailed: Optional[bool] | NotGiven = NOT_GIVEN,
580+
has_tool_calls: Optional[bool] | NotGiven = NOT_GIVEN,
564581
limit: int | NotGiven = NOT_GIVEN,
565582
needs_review: Optional[bool] | NotGiven = NOT_GIVEN,
566583
offset: int | NotGiven = NOT_GIVEN,
@@ -595,6 +612,8 @@ async def list_by_group(
595612
596613
guardrailed: Filter by guardrailed status
597614
615+
has_tool_calls: Filter by whether the query log has tool calls
616+
598617
needs_review: Filter logs that need review
599618
600619
passed_evals: Filter by evals that passed
@@ -631,6 +650,7 @@ async def list_by_group(
631650
"custom_metadata": custom_metadata,
632651
"failed_evals": failed_evals,
633652
"guardrailed": guardrailed,
653+
"has_tool_calls": has_tool_calls,
634654
"limit": limit,
635655
"needs_review": needs_review,
636656
"offset": offset,
@@ -657,6 +677,7 @@ def list_groups(
657677
custom_metadata: Optional[str] | NotGiven = NOT_GIVEN,
658678
failed_evals: Optional[List[str]] | NotGiven = NOT_GIVEN,
659679
guardrailed: Optional[bool] | NotGiven = NOT_GIVEN,
680+
has_tool_calls: Optional[bool] | NotGiven = NOT_GIVEN,
660681
limit: int | NotGiven = NOT_GIVEN,
661682
needs_review: Optional[bool] | NotGiven = NOT_GIVEN,
662683
offset: int | NotGiven = NOT_GIVEN,
@@ -691,6 +712,8 @@ def list_groups(
691712
692713
guardrailed: Filter by guardrailed status
693714
715+
has_tool_calls: Filter by whether the query log has tool calls
716+
694717
needs_review: Filter log groups that need review
695718
696719
passed_evals: Filter by evals that passed
@@ -726,6 +749,7 @@ def list_groups(
726749
"custom_metadata": custom_metadata,
727750
"failed_evals": failed_evals,
728751
"guardrailed": guardrailed,
752+
"has_tool_calls": has_tool_calls,
729753
"limit": limit,
730754
"needs_review": needs_review,
731755
"offset": offset,

src/codex/types/projects/query_log_list_by_group_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class QueryLogListByGroupParams(TypedDict, total=False):
2727
guardrailed: Optional[bool]
2828
"""Filter by guardrailed status"""
2929

30+
has_tool_calls: Optional[bool]
31+
"""Filter by whether the query log has tool calls"""
32+
3033
limit: int
3134

3235
needs_review: Optional[bool]

src/codex/types/projects/query_log_list_groups_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class QueryLogListGroupsParams(TypedDict, total=False):
2727
guardrailed: Optional[bool]
2828
"""Filter by guardrailed status"""
2929

30+
has_tool_calls: Optional[bool]
31+
"""Filter by whether the query log has tool calls"""
32+
3033
limit: int
3134

3235
needs_review: Optional[bool]

src/codex/types/projects/query_log_list_groups_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ class Tool(BaseModel):
314314
class QueryLogListGroupsResponse(BaseModel):
315315
id: str
316316

317+
any_escalated: bool
318+
"""Whether any query log in the group was escalated"""
319+
317320
created_at: datetime
318321

319322
formatted_escalation_eval_scores: Optional[Dict[str, FormattedEscalationEvalScores]] = None

src/codex/types/projects/query_log_list_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class QueryLogListParams(TypedDict, total=False):
2727
guardrailed: Optional[bool]
2828
"""Filter by guardrailed status"""
2929

30+
has_tool_calls: Optional[bool]
31+
"""Filter by whether the query log has tool calls"""
32+
3033
limit: int
3134

3235
offset: int

tests/api_resources/projects/test_query_logs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def test_method_list_with_all_params(self, client: Codex) -> None:
100100
custom_metadata="custom_metadata",
101101
failed_evals=["string"],
102102
guardrailed=True,
103+
has_tool_calls=True,
103104
limit=1,
104105
offset=0,
105106
order="asc",
@@ -163,6 +164,7 @@ def test_method_list_by_group_with_all_params(self, client: Codex) -> None:
163164
custom_metadata="custom_metadata",
164165
failed_evals=["string"],
165166
guardrailed=True,
167+
has_tool_calls=True,
166168
limit=1,
167169
needs_review=True,
168170
offset=0,
@@ -228,6 +230,7 @@ def test_method_list_groups_with_all_params(self, client: Codex) -> None:
228230
custom_metadata="custom_metadata",
229231
failed_evals=["string"],
230232
guardrailed=True,
233+
has_tool_calls=True,
231234
limit=1,
232235
needs_review=True,
233236
offset=0,
@@ -402,6 +405,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCodex) -> No
402405
custom_metadata="custom_metadata",
403406
failed_evals=["string"],
404407
guardrailed=True,
408+
has_tool_calls=True,
405409
limit=1,
406410
offset=0,
407411
order="asc",
@@ -465,6 +469,7 @@ async def test_method_list_by_group_with_all_params(self, async_client: AsyncCod
465469
custom_metadata="custom_metadata",
466470
failed_evals=["string"],
467471
guardrailed=True,
472+
has_tool_calls=True,
468473
limit=1,
469474
needs_review=True,
470475
offset=0,
@@ -530,6 +535,7 @@ async def test_method_list_groups_with_all_params(self, async_client: AsyncCodex
530535
custom_metadata="custom_metadata",
531536
failed_evals=["string"],
532537
guardrailed=True,
538+
has_tool_calls=True,
533539
limit=1,
534540
needs_review=True,
535541
offset=0,

0 commit comments

Comments
 (0)