Skip to content

Commit bdfdd70

Browse files
feat(api): api update
1 parent 70be786 commit bdfdd70

11 files changed

+54
-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: c37472afd4b354d9a4e358b9dc6fd1a8
2+
openapi_spec_hash: 6b4e0d5289d21e9bcda264caea7f03d8
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
@@ -109,6 +109,7 @@ def list(
109109
]
110110
| NotGiven = NOT_GIVEN,
111111
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
112+
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
112113
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
113114
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114115
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -135,6 +136,8 @@ def list(
135136
136137
primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
137138
139+
tool_call_names: Filter by names of tools called in the assistant response
140+
138141
was_cache_hit: Filter by cache hit status
139142
140143
extra_headers: Send extra headers
@@ -168,6 +171,7 @@ def list(
168171
"passed_evals": passed_evals,
169172
"primary_eval_issue": primary_eval_issue,
170173
"sort": sort,
174+
"tool_call_names": tool_call_names,
171175
"was_cache_hit": was_cache_hit,
172176
},
173177
query_log_list_params.QueryLogListParams,
@@ -196,6 +200,7 @@ def list_by_group(
196200
| NotGiven = NOT_GIVEN,
197201
remediation_ids: List[str] | NotGiven = NOT_GIVEN,
198202
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
203+
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
199204
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
200205
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
201206
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -226,6 +231,8 @@ def list_by_group(
226231
227232
remediation_ids: List of groups to list child logs for
228233
234+
tool_call_names: Filter by names of tools called in the assistant response
235+
229236
was_cache_hit: Filter by cache hit status
230237
231238
extra_headers: Send extra headers
@@ -260,6 +267,7 @@ def list_by_group(
260267
"primary_eval_issue": primary_eval_issue,
261268
"remediation_ids": remediation_ids,
262269
"sort": sort,
270+
"tool_call_names": tool_call_names,
263271
"was_cache_hit": was_cache_hit,
264272
},
265273
query_log_list_by_group_params.QueryLogListByGroupParams,
@@ -288,6 +296,7 @@ def list_groups(
288296
| NotGiven = NOT_GIVEN,
289297
sort: Optional[Literal["created_at", "primary_eval_issue_score", "total_count", "custom_rank", "impact_score"]]
290298
| NotGiven = NOT_GIVEN,
299+
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
291300
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
292301
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
293302
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -316,6 +325,8 @@ def list_groups(
316325
317326
primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
318327
328+
tool_call_names: Filter by names of tools called in the assistant response
329+
319330
was_cache_hit: Filter by cache hit status
320331
321332
extra_headers: Send extra headers
@@ -350,6 +361,7 @@ def list_groups(
350361
"passed_evals": passed_evals,
351362
"primary_eval_issue": primary_eval_issue,
352363
"sort": sort,
364+
"tool_call_names": tool_call_names,
353365
"was_cache_hit": was_cache_hit,
354366
},
355367
query_log_list_groups_params.QueryLogListGroupsParams,
@@ -469,6 +481,7 @@ def list(
469481
]
470482
| NotGiven = NOT_GIVEN,
471483
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
484+
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
472485
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
473486
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
474487
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -495,6 +508,8 @@ def list(
495508
496509
primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
497510
511+
tool_call_names: Filter by names of tools called in the assistant response
512+
498513
was_cache_hit: Filter by cache hit status
499514
500515
extra_headers: Send extra headers
@@ -528,6 +543,7 @@ def list(
528543
"passed_evals": passed_evals,
529544
"primary_eval_issue": primary_eval_issue,
530545
"sort": sort,
546+
"tool_call_names": tool_call_names,
531547
"was_cache_hit": was_cache_hit,
532548
},
533549
query_log_list_params.QueryLogListParams,
@@ -556,6 +572,7 @@ async def list_by_group(
556572
| NotGiven = NOT_GIVEN,
557573
remediation_ids: List[str] | NotGiven = NOT_GIVEN,
558574
sort: Optional[Literal["created_at", "primary_eval_issue_score"]] | NotGiven = NOT_GIVEN,
575+
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
559576
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
560577
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
561578
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -586,6 +603,8 @@ async def list_by_group(
586603
587604
remediation_ids: List of groups to list child logs for
588605
606+
tool_call_names: Filter by names of tools called in the assistant response
607+
589608
was_cache_hit: Filter by cache hit status
590609
591610
extra_headers: Send extra headers
@@ -620,6 +639,7 @@ async def list_by_group(
620639
"primary_eval_issue": primary_eval_issue,
621640
"remediation_ids": remediation_ids,
622641
"sort": sort,
642+
"tool_call_names": tool_call_names,
623643
"was_cache_hit": was_cache_hit,
624644
},
625645
query_log_list_by_group_params.QueryLogListByGroupParams,
@@ -648,6 +668,7 @@ def list_groups(
648668
| NotGiven = NOT_GIVEN,
649669
sort: Optional[Literal["created_at", "primary_eval_issue_score", "total_count", "custom_rank", "impact_score"]]
650670
| NotGiven = NOT_GIVEN,
671+
tool_call_names: Optional[List[str]] | NotGiven = NOT_GIVEN,
651672
was_cache_hit: Optional[bool] | NotGiven = NOT_GIVEN,
652673
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
653674
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -676,6 +697,8 @@ def list_groups(
676697
677698
primary_eval_issue: Filter logs that have ANY of these primary evaluation issues (OR operation)
678699
700+
tool_call_names: Filter by names of tools called in the assistant response
701+
679702
was_cache_hit: Filter by cache hit status
680703
681704
extra_headers: Send extra headers
@@ -710,6 +733,7 @@ def list_groups(
710733
"passed_evals": passed_evals,
711734
"primary_eval_issue": primary_eval_issue,
712735
"sort": sort,
736+
"tool_call_names": tool_call_names,
713737
"was_cache_hit": was_cache_hit,
714738
},
715739
query_log_list_groups_params.QueryLogListGroupsParams,

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
@@ -49,5 +49,8 @@ class QueryLogListByGroupParams(TypedDict, total=False):
4949

5050
sort: Optional[Literal["created_at", "primary_eval_issue_score"]]
5151

52+
tool_call_names: Optional[List[str]]
53+
"""Filter by names of tools called in the assistant response"""
54+
5255
was_cache_hit: Optional[bool]
5356
"""Filter by cache hit status"""

src/codex/types/projects/query_log_list_by_group_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ class QueryLogsByGroupQueryLog(BaseModel):
358358

359359
remediation_status: Literal["ACTIVE", "DRAFT", "ACTIVE_WITH_DRAFT", "NOT_STARTED", "PAUSED", "NO_ACTION_NEEDED"]
360360

361+
tool_call_names: Optional[List[str]] = None
362+
361363
was_cache_hit: Optional[bool] = None
362364
"""If similar query already answered, or None if cache was not checked"""
363365

@@ -438,5 +440,9 @@ class QueryLogsByGroup(BaseModel):
438440

439441
class QueryLogListByGroupResponse(BaseModel):
440442
custom_metadata_columns: List[str]
443+
"""Columns of the custom metadata"""
441444

442445
query_logs_by_group: Dict[str, QueryLogsByGroup]
446+
447+
tool_names: Optional[List[str]] = None
448+
"""Names of the tools available in queries"""

src/codex/types/projects/query_log_list_groups_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,8 @@ class QueryLogListGroupsParams(TypedDict, total=False):
4646

4747
sort: Optional[Literal["created_at", "primary_eval_issue_score", "total_count", "custom_rank", "impact_score"]]
4848

49+
tool_call_names: Optional[List[str]]
50+
"""Filter by names of tools called in the assistant response"""
51+
4952
was_cache_hit: Optional[bool]
5053
"""Filter by cache hit status"""

src/codex/types/projects/query_log_list_groups_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ class QueryLogListGroupsResponse(BaseModel):
346346

347347
remediation_status: Literal["ACTIVE", "DRAFT", "ACTIVE_WITH_DRAFT", "NOT_STARTED", "PAUSED", "NO_ACTION_NEEDED"]
348348

349+
tool_call_names: Optional[List[str]] = None
350+
349351
total_count: int
350352

351353
was_cache_hit: Optional[bool] = None

src/codex/types/projects/query_log_list_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ class QueryLogListParams(TypedDict, total=False):
4343

4444
sort: Optional[Literal["created_at", "primary_eval_issue_score"]]
4545

46+
tool_call_names: Optional[List[str]]
47+
"""Filter by names of tools called in the assistant response"""
48+
4649
was_cache_hit: Optional[bool]
4750
"""Filter by cache hit status"""

src/codex/types/projects/query_log_list_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ class QueryLogListResponse(BaseModel):
342342

343343
remediation_id: str
344344

345+
tool_call_names: Optional[List[str]] = None
346+
345347
was_cache_hit: Optional[bool] = None
346348
"""If similar query already answered, or None if cache was not checked"""
347349

src/codex/types/projects/query_log_retrieve_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ class QueryLogRetrieveResponse(BaseModel):
346346

347347
remediation_status: Literal["ACTIVE", "DRAFT", "ACTIVE_WITH_DRAFT", "NOT_STARTED", "PAUSED", "NO_ACTION_NEEDED"]
348348

349+
tool_call_names: Optional[List[str]] = None
350+
349351
was_cache_hit: Optional[bool] = None
350352
"""If similar query already answered, or None if cache was not checked"""
351353

src/codex/types/projects/remediation_list_resolved_logs_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ class QueryLog(BaseModel):
349349

350350
remediation_id: str
351351

352+
tool_call_names: Optional[List[str]] = None
353+
352354
was_cache_hit: Optional[bool] = None
353355
"""If similar query already answered, or None if cache was not checked"""
354356

0 commit comments

Comments
 (0)