Skip to content

Commit a25d003

Browse files
feat(api): api update
1 parent 552640f commit a25d003

File tree

4 files changed

+329
-4
lines changed

4 files changed

+329
-4
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: 36
2-
openapi_spec_hash: ee7ad81c8308305b6a609a18615ae394
2+
openapi_spec_hash: 2e10455457751c9efb36adc4399c684d
33
config_hash: adbedb6317fca6f566f54564cc341846

src/codex/types/projects/cluster_list_response.py

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,112 @@
66

77
from ..._models import BaseModel
88

9-
__all__ = ["ClusterListResponse"]
9+
__all__ = [
10+
"ClusterListResponse",
11+
"ManagedMetadata",
12+
"ManagedMetadataContextSufficiency",
13+
"ManagedMetadataQueryEaseCustomized",
14+
"ManagedMetadataResponseHelpfulness",
15+
"ManagedMetadataTrustworthiness",
16+
]
17+
18+
19+
class ManagedMetadataContextSufficiency(BaseModel):
20+
average: Optional[float] = None
21+
"""The average of all scores."""
22+
23+
latest: Optional[float] = None
24+
"""The most recent score."""
25+
26+
max: Optional[float] = None
27+
"""The maximum score."""
28+
29+
min: Optional[float] = None
30+
"""The minimum score."""
31+
32+
scores: Optional[List[float]] = None
33+
34+
35+
class ManagedMetadataQueryEaseCustomized(BaseModel):
36+
average: Optional[float] = None
37+
"""The average of all scores."""
38+
39+
latest: Optional[float] = None
40+
"""The most recent score."""
41+
42+
max: Optional[float] = None
43+
"""The maximum score."""
44+
45+
min: Optional[float] = None
46+
"""The minimum score."""
47+
48+
scores: Optional[List[float]] = None
49+
50+
51+
class ManagedMetadataResponseHelpfulness(BaseModel):
52+
average: Optional[float] = None
53+
"""The average of all scores."""
54+
55+
latest: Optional[float] = None
56+
"""The most recent score."""
57+
58+
max: Optional[float] = None
59+
"""The maximum score."""
60+
61+
min: Optional[float] = None
62+
"""The minimum score."""
63+
64+
scores: Optional[List[float]] = None
65+
66+
67+
class ManagedMetadataTrustworthiness(BaseModel):
68+
average: Optional[float] = None
69+
"""The average of all scores."""
70+
71+
latest: Optional[float] = None
72+
"""The most recent score."""
73+
74+
max: Optional[float] = None
75+
"""The maximum score."""
76+
77+
min: Optional[float] = None
78+
"""The minimum score."""
79+
80+
scores: Optional[List[float]] = None
81+
82+
83+
class ManagedMetadata(BaseModel):
84+
latest_context: Optional[str] = None
85+
"""The most recent context string."""
86+
87+
latest_entry_point: Optional[str] = None
88+
"""The most recent entry point string."""
89+
90+
latest_llm_response: Optional[str] = None
91+
"""The most recent LLM response string."""
92+
93+
latest_location: Optional[str] = None
94+
"""The most recent location string."""
95+
96+
context_sufficiency: Optional[ManagedMetadataContextSufficiency] = None
97+
"""Holds a list of scores and computes aggregate statistics."""
98+
99+
contexts: Optional[List[str]] = None
100+
101+
entry_points: Optional[List[str]] = None
102+
103+
llm_responses: Optional[List[str]] = None
104+
105+
locations: Optional[List[str]] = None
106+
107+
query_ease_customized: Optional[ManagedMetadataQueryEaseCustomized] = None
108+
"""Holds a list of scores and computes aggregate statistics."""
109+
110+
response_helpfulness: Optional[ManagedMetadataResponseHelpfulness] = None
111+
"""Holds a list of scores and computes aggregate statistics."""
112+
113+
trustworthiness: Optional[ManagedMetadataTrustworthiness] = None
114+
"""Holds a list of scores and computes aggregate statistics."""
10115

11116

12117
class ClusterListResponse(BaseModel):
@@ -16,6 +121,9 @@ class ClusterListResponse(BaseModel):
16121

17122
created_at: datetime
18123

124+
managed_metadata: ManagedMetadata
125+
"""Extract system-defined, managed metadata from client_query_metadata."""
126+
19127
project_id: str
20128

21129
question: str

src/codex/types/projects/entry.py

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,122 @@
66

77
from ..._models import BaseModel
88

9-
__all__ = ["Entry"]
9+
__all__ = [
10+
"Entry",
11+
"ManagedMetadata",
12+
"ManagedMetadataContextSufficiency",
13+
"ManagedMetadataQueryEaseCustomized",
14+
"ManagedMetadataResponseHelpfulness",
15+
"ManagedMetadataTrustworthiness",
16+
]
17+
18+
19+
class ManagedMetadataContextSufficiency(BaseModel):
20+
average: Optional[float] = None
21+
"""The average of all scores."""
22+
23+
latest: Optional[float] = None
24+
"""The most recent score."""
25+
26+
max: Optional[float] = None
27+
"""The maximum score."""
28+
29+
min: Optional[float] = None
30+
"""The minimum score."""
31+
32+
scores: Optional[List[float]] = None
33+
34+
35+
class ManagedMetadataQueryEaseCustomized(BaseModel):
36+
average: Optional[float] = None
37+
"""The average of all scores."""
38+
39+
latest: Optional[float] = None
40+
"""The most recent score."""
41+
42+
max: Optional[float] = None
43+
"""The maximum score."""
44+
45+
min: Optional[float] = None
46+
"""The minimum score."""
47+
48+
scores: Optional[List[float]] = None
49+
50+
51+
class ManagedMetadataResponseHelpfulness(BaseModel):
52+
average: Optional[float] = None
53+
"""The average of all scores."""
54+
55+
latest: Optional[float] = None
56+
"""The most recent score."""
57+
58+
max: Optional[float] = None
59+
"""The maximum score."""
60+
61+
min: Optional[float] = None
62+
"""The minimum score."""
63+
64+
scores: Optional[List[float]] = None
65+
66+
67+
class ManagedMetadataTrustworthiness(BaseModel):
68+
average: Optional[float] = None
69+
"""The average of all scores."""
70+
71+
latest: Optional[float] = None
72+
"""The most recent score."""
73+
74+
max: Optional[float] = None
75+
"""The maximum score."""
76+
77+
min: Optional[float] = None
78+
"""The minimum score."""
79+
80+
scores: Optional[List[float]] = None
81+
82+
83+
class ManagedMetadata(BaseModel):
84+
latest_context: Optional[str] = None
85+
"""The most recent context string."""
86+
87+
latest_entry_point: Optional[str] = None
88+
"""The most recent entry point string."""
89+
90+
latest_llm_response: Optional[str] = None
91+
"""The most recent LLM response string."""
92+
93+
latest_location: Optional[str] = None
94+
"""The most recent location string."""
95+
96+
context_sufficiency: Optional[ManagedMetadataContextSufficiency] = None
97+
"""Holds a list of scores and computes aggregate statistics."""
98+
99+
contexts: Optional[List[str]] = None
100+
101+
entry_points: Optional[List[str]] = None
102+
103+
llm_responses: Optional[List[str]] = None
104+
105+
locations: Optional[List[str]] = None
106+
107+
query_ease_customized: Optional[ManagedMetadataQueryEaseCustomized] = None
108+
"""Holds a list of scores and computes aggregate statistics."""
109+
110+
response_helpfulness: Optional[ManagedMetadataResponseHelpfulness] = None
111+
"""Holds a list of scores and computes aggregate statistics."""
112+
113+
trustworthiness: Optional[ManagedMetadataTrustworthiness] = None
114+
"""Holds a list of scores and computes aggregate statistics."""
10115

11116

12117
class Entry(BaseModel):
13118
id: str
14119

15120
created_at: datetime
16121

122+
managed_metadata: ManagedMetadata
123+
"""Extract system-defined, managed metadata from client_query_metadata."""
124+
17125
project_id: str
18126

19127
question: str

src/codex/types/projects/entry_query_response.py

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,121 @@
44

55
from ..._models import BaseModel
66

7-
__all__ = ["EntryQueryResponse", "Entry"]
7+
__all__ = [
8+
"EntryQueryResponse",
9+
"Entry",
10+
"EntryManagedMetadata",
11+
"EntryManagedMetadataContextSufficiency",
12+
"EntryManagedMetadataQueryEaseCustomized",
13+
"EntryManagedMetadataResponseHelpfulness",
14+
"EntryManagedMetadataTrustworthiness",
15+
]
16+
17+
18+
class EntryManagedMetadataContextSufficiency(BaseModel):
19+
average: Optional[float] = None
20+
"""The average of all scores."""
21+
22+
latest: Optional[float] = None
23+
"""The most recent score."""
24+
25+
max: Optional[float] = None
26+
"""The maximum score."""
27+
28+
min: Optional[float] = None
29+
"""The minimum score."""
30+
31+
scores: Optional[List[float]] = None
32+
33+
34+
class EntryManagedMetadataQueryEaseCustomized(BaseModel):
35+
average: Optional[float] = None
36+
"""The average of all scores."""
37+
38+
latest: Optional[float] = None
39+
"""The most recent score."""
40+
41+
max: Optional[float] = None
42+
"""The maximum score."""
43+
44+
min: Optional[float] = None
45+
"""The minimum score."""
46+
47+
scores: Optional[List[float]] = None
48+
49+
50+
class EntryManagedMetadataResponseHelpfulness(BaseModel):
51+
average: Optional[float] = None
52+
"""The average of all scores."""
53+
54+
latest: Optional[float] = None
55+
"""The most recent score."""
56+
57+
max: Optional[float] = None
58+
"""The maximum score."""
59+
60+
min: Optional[float] = None
61+
"""The minimum score."""
62+
63+
scores: Optional[List[float]] = None
64+
65+
66+
class EntryManagedMetadataTrustworthiness(BaseModel):
67+
average: Optional[float] = None
68+
"""The average of all scores."""
69+
70+
latest: Optional[float] = None
71+
"""The most recent score."""
72+
73+
max: Optional[float] = None
74+
"""The maximum score."""
75+
76+
min: Optional[float] = None
77+
"""The minimum score."""
78+
79+
scores: Optional[List[float]] = None
80+
81+
82+
class EntryManagedMetadata(BaseModel):
83+
latest_context: Optional[str] = None
84+
"""The most recent context string."""
85+
86+
latest_entry_point: Optional[str] = None
87+
"""The most recent entry point string."""
88+
89+
latest_llm_response: Optional[str] = None
90+
"""The most recent LLM response string."""
91+
92+
latest_location: Optional[str] = None
93+
"""The most recent location string."""
94+
95+
context_sufficiency: Optional[EntryManagedMetadataContextSufficiency] = None
96+
"""Holds a list of scores and computes aggregate statistics."""
97+
98+
contexts: Optional[List[str]] = None
99+
100+
entry_points: Optional[List[str]] = None
101+
102+
llm_responses: Optional[List[str]] = None
103+
104+
locations: Optional[List[str]] = None
105+
106+
query_ease_customized: Optional[EntryManagedMetadataQueryEaseCustomized] = None
107+
"""Holds a list of scores and computes aggregate statistics."""
108+
109+
response_helpfulness: Optional[EntryManagedMetadataResponseHelpfulness] = None
110+
"""Holds a list of scores and computes aggregate statistics."""
111+
112+
trustworthiness: Optional[EntryManagedMetadataTrustworthiness] = None
113+
"""Holds a list of scores and computes aggregate statistics."""
8114

9115

10116
class Entry(BaseModel):
11117
id: str
12118

119+
managed_metadata: EntryManagedMetadata
120+
"""Extract system-defined, managed metadata from client_query_metadata."""
121+
13122
question: str
14123

15124
answer: Optional[str] = None

0 commit comments

Comments
 (0)