Skip to content

Commit 7f283d7

Browse files
feat(api): api update
1 parent 7742c60 commit 7f283d7

12 files changed

+2
-178
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: 70
2-
openapi_spec_hash: 97ec07f3ab237f61ed0bbc359486cc0e
2+
openapi_spec_hash: 11279400677011ad5dc1ebba33216ae4
33
config_hash: aad16f20fed13ac50211fc1d0e2ea621

src/codex/resources/projects/query_logs.py

Lines changed: 0 additions & 60 deletions
Large diffs are not rendered by default.

src/codex/types/project_retrieve_response.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List, Optional
3+
from typing import Dict, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -9,7 +9,6 @@
99
__all__ = [
1010
"ProjectRetrieveResponse",
1111
"Config",
12-
"ConfigDeterministicEval",
1312
"ConfigEvalConfig",
1413
"ConfigEvalConfigCustomEvals",
1514
"ConfigEvalConfigCustomEvalsEvals",
@@ -28,14 +27,6 @@
2827
]
2928

3029

31-
class ConfigDeterministicEval(BaseModel):
32-
id: str
33-
34-
name: str
35-
36-
should_guardrail: bool
37-
38-
3930
class ConfigEvalConfigCustomEvalsEvalsGuardrailedFallback(BaseModel):
4031
message: str
4132
"""
@@ -478,8 +469,6 @@ class ConfigEvalConfig(BaseModel):
478469

479470

480471
class Config(BaseModel):
481-
deterministic_evals: List[ConfigDeterministicEval]
482-
483472
ai_guidance_threshold: Optional[float] = None
484473

485474
clustering_use_llm_matching: Optional[bool] = None

src/codex/types/projects/query_log_list_by_group_params.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ class QueryLogListByGroupParams(TypedDict, total=False):
3939
needs_review: Optional[bool]
4040
"""Filter logs that need review"""
4141

42-
non_triggered_deterministic_guardrail_ids: Optional[SequenceNotStr[str]]
43-
"""
44-
Filter logs where ANY of these deterministic guardrail IDs were checked but not
45-
triggered (OR operation)
46-
"""
47-
4842
offset: int
4943

5044
order: Literal["asc", "desc"]
@@ -82,11 +76,5 @@ class QueryLogListByGroupParams(TypedDict, total=False):
8276
tool_call_names: Optional[SequenceNotStr[str]]
8377
"""Filter by names of tools called in the assistant response"""
8478

85-
triggered_deterministic_guardrail_ids: Optional[SequenceNotStr[str]]
86-
"""
87-
Filter logs where ANY of these deterministic guardrail IDs were triggered (OR
88-
operation)
89-
"""
90-
9179
was_cache_hit: Optional[bool]
9280
"""Filter by cache hit status"""

src/codex/types/projects/query_log_list_by_group_response.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -504,12 +504,6 @@ class QueryLogsByGroupQueryLog(BaseModel):
504504
itself.
505505
"""
506506

507-
non_triggered_deterministic_guardrail_ids: Optional[List[str]] = None
508-
"""
509-
UUIDs of deterministic guardrails that were checked but not triggered for this
510-
query
511-
"""
512-
513507
original_assistant_response: Optional[str] = None
514508
"""The original assistant response that would have been displayed to the user.
515509
@@ -544,9 +538,6 @@ class QueryLogsByGroupQueryLog(BaseModel):
544538
If not provided, it is assumed no tools were provided to the LLM.
545539
"""
546540

547-
triggered_deterministic_guardrail_ids: Optional[List[str]] = None
548-
"""UUIDs of deterministic guardrails that were triggered for this query"""
549-
550541

551542
class QueryLogsByGroup(BaseModel):
552543
query_logs: List[QueryLogsByGroupQueryLog]
@@ -581,12 +572,6 @@ class Filters(BaseModel):
581572
needs_review: Optional[bool] = None
582573
"""Filter logs that need review"""
583574

584-
non_triggered_deterministic_guardrail_ids: Optional[List[str]] = None
585-
"""
586-
Filter logs where ANY of these deterministic guardrail IDs were checked but not
587-
triggered (OR operation)
588-
"""
589-
590575
passed_evals: Optional[List[str]] = None
591576
"""Filter by evals that passed"""
592577

@@ -604,12 +589,6 @@ class Filters(BaseModel):
604589
tool_call_names: Optional[List[str]] = None
605590
"""Filter by names of tools called in the assistant response"""
606591

607-
triggered_deterministic_guardrail_ids: Optional[List[str]] = None
608-
"""
609-
Filter logs where ANY of these deterministic guardrail IDs were triggered (OR
610-
operation)
611-
"""
612-
613592
was_cache_hit: Optional[bool] = None
614593
"""Filter by cache hit status"""
615594

src/codex/types/projects/query_log_list_groups_params.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ class QueryLogListGroupsParams(TypedDict, total=False):
3939
needs_review: Optional[bool]
4040
"""Filter log groups that need review"""
4141

42-
non_triggered_deterministic_guardrail_ids: Optional[SequenceNotStr[str]]
43-
"""
44-
Filter logs where ANY of these deterministic guardrail IDs were checked but not
45-
triggered (OR operation)
46-
"""
47-
4842
offset: int
4943

5044
order: Literal["asc", "desc"]
@@ -80,11 +74,5 @@ class QueryLogListGroupsParams(TypedDict, total=False):
8074
tool_call_names: Optional[SequenceNotStr[str]]
8175
"""Filter by names of tools called in the assistant response"""
8276

83-
triggered_deterministic_guardrail_ids: Optional[SequenceNotStr[str]]
84-
"""
85-
Filter logs where ANY of these deterministic guardrail IDs were triggered (OR
86-
operation)
87-
"""
88-
8977
was_cache_hit: Optional[bool]
9078
"""Filter by cache hit status"""

src/codex/types/projects/query_log_list_groups_response.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,6 @@ class QueryLogListGroupsResponse(BaseModel):
499499
itself.
500500
"""
501501

502-
non_triggered_deterministic_guardrail_ids: Optional[List[str]] = None
503-
"""
504-
UUIDs of deterministic guardrails that were checked but not triggered for this
505-
query
506-
"""
507-
508502
original_assistant_response: Optional[str] = None
509503
"""The original assistant response that would have been displayed to the user.
510504
@@ -538,6 +532,3 @@ class QueryLogListGroupsResponse(BaseModel):
538532
539533
If not provided, it is assumed no tools were provided to the LLM.
540534
"""
541-
542-
triggered_deterministic_guardrail_ids: Optional[List[str]] = None
543-
"""UUIDs of deterministic guardrails that were triggered for this query"""

src/codex/types/projects/query_log_list_params.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ class QueryLogListParams(TypedDict, total=False):
3636

3737
limit: int
3838

39-
non_triggered_deterministic_guardrail_ids: Optional[SequenceNotStr[str]]
40-
"""
41-
Filter logs where ANY of these deterministic guardrail IDs were checked but not
42-
triggered (OR operation)
43-
"""
44-
4539
offset: int
4640

4741
order: Literal["asc", "desc"]
@@ -76,11 +70,5 @@ class QueryLogListParams(TypedDict, total=False):
7670
tool_call_names: Optional[SequenceNotStr[str]]
7771
"""Filter by names of tools called in the assistant response"""
7872

79-
triggered_deterministic_guardrail_ids: Optional[SequenceNotStr[str]]
80-
"""
81-
Filter logs where ANY of these deterministic guardrail IDs were triggered (OR
82-
operation)
83-
"""
84-
8573
was_cache_hit: Optional[bool]
8674
"""Filter by cache hit status"""

src/codex/types/projects/query_log_list_response.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -484,12 +484,6 @@ class QueryLogListResponse(BaseModel):
484484
itself.
485485
"""
486486

487-
non_triggered_deterministic_guardrail_ids: Optional[List[str]] = None
488-
"""
489-
UUIDs of deterministic guardrails that were checked but not triggered for this
490-
query
491-
"""
492-
493487
original_assistant_response: Optional[str] = None
494488
"""The original assistant response that would have been displayed to the user.
495489
@@ -523,6 +517,3 @@ class QueryLogListResponse(BaseModel):
523517
524518
If not provided, it is assumed no tools were provided to the LLM.
525519
"""
526-
527-
triggered_deterministic_guardrail_ids: Optional[List[str]] = None
528-
"""UUIDs of deterministic guardrails that were triggered for this query"""

src/codex/types/projects/query_log_retrieve_response.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,6 @@ class QueryLogRetrieveResponse(BaseModel):
498498
itself.
499499
"""
500500

501-
non_triggered_deterministic_guardrail_ids: Optional[List[str]] = None
502-
"""
503-
UUIDs of deterministic guardrails that were checked but not triggered for this
504-
query
505-
"""
506-
507501
original_assistant_response: Optional[str] = None
508502
"""The original assistant response that would have been displayed to the user.
509503
@@ -537,6 +531,3 @@ class QueryLogRetrieveResponse(BaseModel):
537531
538532
If not provided, it is assumed no tools were provided to the LLM.
539533
"""
540-
541-
triggered_deterministic_guardrail_ids: Optional[List[str]] = None
542-
"""UUIDs of deterministic guardrails that were triggered for this query"""

0 commit comments

Comments
 (0)