ommlds 0.0.0.dev484__py3-none-any.whl → 0.0.0.dev486__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ommlds/.omlish-manifests.json +1 -1
- ommlds/__about__.py +5 -2
- ommlds/backends/anthropic/protocol/_dataclasses.py +529 -529
- ommlds/backends/google/protocol/_dataclasses.py +1876 -1876
- ommlds/backends/groq/_dataclasses.py +1457 -1457
- ommlds/backends/ollama/_dataclasses.py +1116 -1116
- ommlds/backends/openai/protocol/_dataclasses.py +2254 -2254
- ommlds/backends/tavily/_dataclasses.py +753 -753
- ommlds/cli/_dataclasses.py +697 -697
- ommlds/minichain/_dataclasses.py +3630 -3630
- ommlds/nanochat/tokenizers.py +40 -6
- ommlds/tools/git.py +8 -2
- {ommlds-0.0.0.dev484.dist-info → ommlds-0.0.0.dev486.dist-info}/METADATA +5 -3
- {ommlds-0.0.0.dev484.dist-info → ommlds-0.0.0.dev486.dist-info}/RECORD +18 -18
- {ommlds-0.0.0.dev484.dist-info → ommlds-0.0.0.dev486.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev484.dist-info → ommlds-0.0.0.dev486.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev484.dist-info → ommlds-0.0.0.dev486.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev484.dist-info → ommlds-0.0.0.dev486.dist-info}/top_level.txt +0 -0
|
@@ -25,67 +25,76 @@ def _register(**kwargs):
|
|
|
25
25
|
|
|
26
26
|
@_register(
|
|
27
27
|
plan_repr=(
|
|
28
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
", '
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"Field(name='
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"=
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"tion
|
|
43
|
-
"
|
|
44
|
-
"OpRef(name='init.fields.5.annotation'), default=
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"=
|
|
54
|
-
"
|
|
28
|
+
"Plans(tup=(CopyPlan(fields=('id', 'object', 'created', 'model', 'system_fingerprint', 'choices', 'x_groq', 'se"
|
|
29
|
+
"rvice_tier', 'usage')), EqPlan(fields=('id', 'object', 'created', 'model', 'system_fingerprint', 'choices', 'x"
|
|
30
|
+
"_groq', 'service_tier', 'usage')), FrozenPlan(fields=('id', 'object', 'created', 'model', 'system_fingerprint'"
|
|
31
|
+
", 'choices', 'x_groq', 'service_tier', 'usage'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fie"
|
|
32
|
+
"lds=('id', 'object', 'created', 'model', 'system_fingerprint', 'choices', 'x_groq', 'service_tier', 'usage'), "
|
|
33
|
+
"cache=False), InitPlan(fields=(InitPlan.Field(name='id', annotation=OpRef(name='init.fields.0.annotation'), de"
|
|
34
|
+
"fault=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, valid"
|
|
35
|
+
"ate=None, check_type=None), InitPlan.Field(name='object', annotation=OpRef(name='init.fields.1.annotation'), d"
|
|
36
|
+
"efault=OpRef(name='init.fields.1.default'), default_factory=None, init=True, override=False, field_type=FieldT"
|
|
37
|
+
"ype.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='created', annotation=OpRef(na"
|
|
38
|
+
"me='init.fields.2.annotation'), default=None, default_factory=None, init=True, override=False, field_type=Fiel"
|
|
39
|
+
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='model', annotation=OpRef(na"
|
|
40
|
+
"me='init.fields.3.annotation'), default=None, default_factory=None, init=True, override=False, field_type=Fiel"
|
|
41
|
+
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='system_fingerprint', annota"
|
|
42
|
+
"tion=OpRef(name='init.fields.4.annotation'), default=None, default_factory=None, init=True, override=False, fi"
|
|
43
|
+
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='choices', anno"
|
|
44
|
+
"tation=OpRef(name='init.fields.5.annotation'), default=None, default_factory=None, init=True, override=False, "
|
|
45
|
+
"field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='x_groq', ann"
|
|
46
|
+
"otation=OpRef(name='init.fields.6.annotation'), default=OpRef(name='init.fields.6.default'), default_factory=N"
|
|
47
|
+
"one, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), I"
|
|
48
|
+
"nitPlan.Field(name='service_tier', annotation=OpRef(name='init.fields.7.annotation'), default=OpRef(name='init"
|
|
49
|
+
".fields.7.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=No"
|
|
50
|
+
"ne, validate=None, check_type=None), InitPlan.Field(name='usage', annotation=OpRef(name='init.fields.8.annotat"
|
|
51
|
+
"ion'), default=OpRef(name='init.fields.8.default'), default_factory=None, init=True, override=False, field_typ"
|
|
52
|
+
"e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only"
|
|
53
|
+
"_params=('id', 'object', 'created', 'model', 'system_fingerprint', 'choices', 'x_groq', 'service_tier', 'usage"
|
|
54
|
+
"'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan."
|
|
55
|
+
"Field(name='id', kw_only=True, fn=None), ReprPlan.Field(name='object', kw_only=True, fn=None), ReprPlan.Field("
|
|
56
|
+
"name='created', kw_only=True, fn=None), ReprPlan.Field(name='model', kw_only=True, fn=None), ReprPlan.Field(na"
|
|
57
|
+
"me='system_fingerprint', kw_only=True, fn=None), ReprPlan.Field(name='choices', kw_only=True, fn=None), ReprPl"
|
|
58
|
+
"an.Field(name='x_groq', kw_only=True, fn=None), ReprPlan.Field(name='service_tier', kw_only=True, fn=None), Re"
|
|
59
|
+
"prPlan.Field(name='usage', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
55
60
|
),
|
|
56
|
-
plan_repr_sha1='
|
|
61
|
+
plan_repr_sha1='e9fd011b88dd09b9d07234a0bed31c70cc048544',
|
|
57
62
|
op_ref_idents=(
|
|
58
63
|
'__dataclass__init__fields__0__annotation',
|
|
59
64
|
'__dataclass__init__fields__1__annotation',
|
|
65
|
+
'__dataclass__init__fields__1__default',
|
|
60
66
|
'__dataclass__init__fields__2__annotation',
|
|
61
67
|
'__dataclass__init__fields__3__annotation',
|
|
62
|
-
'__dataclass__init__fields__3__default',
|
|
63
68
|
'__dataclass__init__fields__4__annotation',
|
|
64
|
-
'__dataclass__init__fields__4__default',
|
|
65
69
|
'__dataclass__init__fields__5__annotation',
|
|
66
|
-
'__dataclass__init__fields__5__default',
|
|
67
70
|
'__dataclass__init__fields__6__annotation',
|
|
68
71
|
'__dataclass__init__fields__6__default',
|
|
72
|
+
'__dataclass__init__fields__7__annotation',
|
|
73
|
+
'__dataclass__init__fields__7__default',
|
|
74
|
+
'__dataclass__init__fields__8__annotation',
|
|
75
|
+
'__dataclass__init__fields__8__default',
|
|
69
76
|
),
|
|
70
77
|
cls_names=(
|
|
71
|
-
('ommlds.backends.groq._marshal', '
|
|
78
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionChunk'),
|
|
72
79
|
),
|
|
73
80
|
)
|
|
74
|
-
def
|
|
81
|
+
def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
75
82
|
def _process_dataclass(
|
|
76
83
|
*,
|
|
77
84
|
__dataclass__cls,
|
|
78
85
|
__dataclass__init__fields__0__annotation,
|
|
79
86
|
__dataclass__init__fields__1__annotation,
|
|
87
|
+
__dataclass__init__fields__1__default,
|
|
80
88
|
__dataclass__init__fields__2__annotation,
|
|
81
89
|
__dataclass__init__fields__3__annotation,
|
|
82
|
-
__dataclass__init__fields__3__default,
|
|
83
90
|
__dataclass__init__fields__4__annotation,
|
|
84
|
-
__dataclass__init__fields__4__default,
|
|
85
91
|
__dataclass__init__fields__5__annotation,
|
|
86
|
-
__dataclass__init__fields__5__default,
|
|
87
92
|
__dataclass__init__fields__6__annotation,
|
|
88
93
|
__dataclass__init__fields__6__default,
|
|
94
|
+
__dataclass__init__fields__7__annotation,
|
|
95
|
+
__dataclass__init__fields__7__default,
|
|
96
|
+
__dataclass__init__fields__8__annotation,
|
|
97
|
+
__dataclass__init__fields__8__default,
|
|
89
98
|
__dataclass__FieldFnValidationError, # noqa
|
|
90
99
|
__dataclass__FieldTypeValidationError, # noqa
|
|
91
100
|
__dataclass__FnValidationError, # noqa
|
|
@@ -104,13 +113,15 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
104
113
|
if self.__class__ is not __dataclass__cls:
|
|
105
114
|
raise TypeError(self)
|
|
106
115
|
return __dataclass__cls( # noqa
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
id=self.id,
|
|
117
|
+
object=self.object,
|
|
118
|
+
created=self.created,
|
|
119
|
+
model=self.model,
|
|
120
|
+
system_fingerprint=self.system_fingerprint,
|
|
121
|
+
choices=self.choices,
|
|
122
|
+
x_groq=self.x_groq,
|
|
123
|
+
service_tier=self.service_tier,
|
|
124
|
+
usage=self.usage,
|
|
114
125
|
)
|
|
115
126
|
|
|
116
127
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -124,13 +135,15 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
124
135
|
if self.__class__ is not other.__class__:
|
|
125
136
|
return NotImplemented
|
|
126
137
|
return (
|
|
127
|
-
self.
|
|
128
|
-
self.
|
|
129
|
-
self.
|
|
130
|
-
self.
|
|
131
|
-
self.
|
|
132
|
-
self.
|
|
133
|
-
self.
|
|
138
|
+
self.id == other.id and
|
|
139
|
+
self.object == other.object and
|
|
140
|
+
self.created == other.created and
|
|
141
|
+
self.model == other.model and
|
|
142
|
+
self.system_fingerprint == other.system_fingerprint and
|
|
143
|
+
self.choices == other.choices and
|
|
144
|
+
self.x_groq == other.x_groq and
|
|
145
|
+
self.service_tier == other.service_tier and
|
|
146
|
+
self.usage == other.usage
|
|
134
147
|
)
|
|
135
148
|
|
|
136
149
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -139,13 +152,15 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
139
152
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
140
153
|
|
|
141
154
|
__dataclass___setattr_frozen_fields = {
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
155
|
+
'id',
|
|
156
|
+
'object',
|
|
157
|
+
'created',
|
|
158
|
+
'model',
|
|
159
|
+
'system_fingerprint',
|
|
160
|
+
'choices',
|
|
161
|
+
'x_groq',
|
|
162
|
+
'service_tier',
|
|
163
|
+
'usage',
|
|
149
164
|
}
|
|
150
165
|
|
|
151
166
|
def __setattr__(self, name, value):
|
|
@@ -162,13 +177,15 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
162
177
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
163
178
|
|
|
164
179
|
__dataclass___delattr_frozen_fields = {
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
180
|
+
'id',
|
|
181
|
+
'object',
|
|
182
|
+
'created',
|
|
183
|
+
'model',
|
|
184
|
+
'system_fingerprint',
|
|
185
|
+
'choices',
|
|
186
|
+
'x_groq',
|
|
187
|
+
'service_tier',
|
|
188
|
+
'usage',
|
|
172
189
|
}
|
|
173
190
|
|
|
174
191
|
def __delattr__(self, name):
|
|
@@ -186,13 +203,15 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
186
203
|
|
|
187
204
|
def __hash__(self):
|
|
188
205
|
return hash((
|
|
189
|
-
self.
|
|
190
|
-
self.
|
|
191
|
-
self.
|
|
192
|
-
self.
|
|
193
|
-
self.
|
|
194
|
-
self.
|
|
195
|
-
self.
|
|
206
|
+
self.id,
|
|
207
|
+
self.object,
|
|
208
|
+
self.created,
|
|
209
|
+
self.model,
|
|
210
|
+
self.system_fingerprint,
|
|
211
|
+
self.choices,
|
|
212
|
+
self.x_groq,
|
|
213
|
+
self.service_tier,
|
|
214
|
+
self.usage,
|
|
196
215
|
))
|
|
197
216
|
|
|
198
217
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -201,21 +220,25 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
201
220
|
def __init__(
|
|
202
221
|
self,
|
|
203
222
|
*,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
223
|
+
id: __dataclass__init__fields__0__annotation,
|
|
224
|
+
object: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
225
|
+
created: __dataclass__init__fields__2__annotation,
|
|
226
|
+
model: __dataclass__init__fields__3__annotation,
|
|
227
|
+
system_fingerprint: __dataclass__init__fields__4__annotation,
|
|
228
|
+
choices: __dataclass__init__fields__5__annotation,
|
|
229
|
+
x_groq: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
230
|
+
service_tier: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
231
|
+
usage: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
211
232
|
) -> __dataclass__None:
|
|
212
|
-
__dataclass__object_setattr(self, '
|
|
213
|
-
__dataclass__object_setattr(self, '
|
|
214
|
-
__dataclass__object_setattr(self, '
|
|
215
|
-
__dataclass__object_setattr(self, '
|
|
216
|
-
__dataclass__object_setattr(self, '
|
|
217
|
-
__dataclass__object_setattr(self, '
|
|
218
|
-
__dataclass__object_setattr(self, '
|
|
233
|
+
__dataclass__object_setattr(self, 'id', id)
|
|
234
|
+
__dataclass__object_setattr(self, 'object', object)
|
|
235
|
+
__dataclass__object_setattr(self, 'created', created)
|
|
236
|
+
__dataclass__object_setattr(self, 'model', model)
|
|
237
|
+
__dataclass__object_setattr(self, 'system_fingerprint', system_fingerprint)
|
|
238
|
+
__dataclass__object_setattr(self, 'choices', choices)
|
|
239
|
+
__dataclass__object_setattr(self, 'x_groq', x_groq)
|
|
240
|
+
__dataclass__object_setattr(self, 'service_tier', service_tier)
|
|
241
|
+
__dataclass__object_setattr(self, 'usage', usage)
|
|
219
242
|
|
|
220
243
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
221
244
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -225,13 +248,15 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
225
248
|
@__dataclass___recursive_repr()
|
|
226
249
|
def __repr__(self):
|
|
227
250
|
parts = []
|
|
228
|
-
parts.append(f"
|
|
229
|
-
parts.append(f"
|
|
230
|
-
parts.append(f"
|
|
231
|
-
parts.append(f"
|
|
232
|
-
parts.append(f"
|
|
233
|
-
parts.append(f"
|
|
234
|
-
parts.append(f"
|
|
251
|
+
parts.append(f"id={self.id!r}")
|
|
252
|
+
parts.append(f"object={self.object!r}")
|
|
253
|
+
parts.append(f"created={self.created!r}")
|
|
254
|
+
parts.append(f"model={self.model!r}")
|
|
255
|
+
parts.append(f"system_fingerprint={self.system_fingerprint!r}")
|
|
256
|
+
parts.append(f"choices={self.choices!r}")
|
|
257
|
+
parts.append(f"x_groq={self.x_groq!r}")
|
|
258
|
+
parts.append(f"service_tier={self.service_tier!r}")
|
|
259
|
+
parts.append(f"usage={self.usage!r}")
|
|
235
260
|
return (
|
|
236
261
|
f"{self.__class__.__qualname__}("
|
|
237
262
|
f"{', '.join(parts)}"
|
|
@@ -248,39 +273,47 @@ def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
|
248
273
|
|
|
249
274
|
@_register(
|
|
250
275
|
plan_repr=(
|
|
251
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"None), InitPlan.Field(name='
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
276
|
+
"Plans(tup=(CopyPlan(fields=('index', 'delta', 'logprobs', 'finish_reason')), EqPlan(fields=('index', 'delta', "
|
|
277
|
+
"'logprobs', 'finish_reason')), FrozenPlan(fields=('index', 'delta', 'logprobs', 'finish_reason'), allow_dynami"
|
|
278
|
+
"c_dunder_attrs=False), HashPlan(action='add', fields=('index', 'delta', 'logprobs', 'finish_reason'), cache=Fa"
|
|
279
|
+
"lse), InitPlan(fields=(InitPlan.Field(name='index', annotation=OpRef(name='init.fields.0.annotation'), default"
|
|
280
|
+
"=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
281
|
+
"one, check_type=None), InitPlan.Field(name='delta', annotation=OpRef(name='init.fields.1.annotation'), default"
|
|
282
|
+
"=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
283
|
+
"one, check_type=None), InitPlan.Field(name='logprobs', annotation=OpRef(name='init.fields.2.annotation'), defa"
|
|
284
|
+
"ult=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType"
|
|
285
|
+
".INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='finish_reason', annotation=OpRef"
|
|
286
|
+
"(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=Tru"
|
|
287
|
+
"e, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='s"
|
|
288
|
+
"elf', std_params=(), kw_only_params=('index', 'delta', 'logprobs', 'finish_reason'), frozen=True, slots=False,"
|
|
289
|
+
" post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='index', kw_only=T"
|
|
290
|
+
"rue, fn=None), ReprPlan.Field(name='delta', kw_only=True, fn=None), ReprPlan.Field(name='logprobs', kw_only=Tr"
|
|
291
|
+
"ue, fn=None), ReprPlan.Field(name='finish_reason', kw_only=True, fn=None)), id=False, terse=False, default_fn="
|
|
292
|
+
"None)))"
|
|
264
293
|
),
|
|
265
|
-
plan_repr_sha1='
|
|
294
|
+
plan_repr_sha1='467d73fbbfc4ae23999c6b11c3b9336ff3fd0745',
|
|
266
295
|
op_ref_idents=(
|
|
267
296
|
'__dataclass__init__fields__0__annotation',
|
|
268
297
|
'__dataclass__init__fields__1__annotation',
|
|
269
|
-
'__dataclass__init__fields__1__default',
|
|
270
298
|
'__dataclass__init__fields__2__annotation',
|
|
299
|
+
'__dataclass__init__fields__2__default',
|
|
300
|
+
'__dataclass__init__fields__3__annotation',
|
|
301
|
+
'__dataclass__init__fields__3__default',
|
|
271
302
|
),
|
|
272
303
|
cls_names=(
|
|
273
|
-
('ommlds.backends.groq._marshal', '
|
|
304
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionChunk.Choice'),
|
|
274
305
|
),
|
|
275
306
|
)
|
|
276
|
-
def
|
|
307
|
+
def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
277
308
|
def _process_dataclass(
|
|
278
309
|
*,
|
|
279
310
|
__dataclass__cls,
|
|
280
311
|
__dataclass__init__fields__0__annotation,
|
|
281
312
|
__dataclass__init__fields__1__annotation,
|
|
282
|
-
__dataclass__init__fields__1__default,
|
|
283
313
|
__dataclass__init__fields__2__annotation,
|
|
314
|
+
__dataclass__init__fields__2__default,
|
|
315
|
+
__dataclass__init__fields__3__annotation,
|
|
316
|
+
__dataclass__init__fields__3__default,
|
|
284
317
|
__dataclass__FieldFnValidationError, # noqa
|
|
285
318
|
__dataclass__FieldTypeValidationError, # noqa
|
|
286
319
|
__dataclass__FnValidationError, # noqa
|
|
@@ -299,9 +332,10 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
299
332
|
if self.__class__ is not __dataclass__cls:
|
|
300
333
|
raise TypeError(self)
|
|
301
334
|
return __dataclass__cls( # noqa
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
335
|
+
index=self.index,
|
|
336
|
+
delta=self.delta,
|
|
337
|
+
logprobs=self.logprobs,
|
|
338
|
+
finish_reason=self.finish_reason,
|
|
305
339
|
)
|
|
306
340
|
|
|
307
341
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -315,9 +349,10 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
315
349
|
if self.__class__ is not other.__class__:
|
|
316
350
|
return NotImplemented
|
|
317
351
|
return (
|
|
318
|
-
self.
|
|
319
|
-
self.
|
|
320
|
-
self.
|
|
352
|
+
self.index == other.index and
|
|
353
|
+
self.delta == other.delta and
|
|
354
|
+
self.logprobs == other.logprobs and
|
|
355
|
+
self.finish_reason == other.finish_reason
|
|
321
356
|
)
|
|
322
357
|
|
|
323
358
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -326,9 +361,10 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
326
361
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
327
362
|
|
|
328
363
|
__dataclass___setattr_frozen_fields = {
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
364
|
+
'index',
|
|
365
|
+
'delta',
|
|
366
|
+
'logprobs',
|
|
367
|
+
'finish_reason',
|
|
332
368
|
}
|
|
333
369
|
|
|
334
370
|
def __setattr__(self, name, value):
|
|
@@ -345,9 +381,10 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
345
381
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
346
382
|
|
|
347
383
|
__dataclass___delattr_frozen_fields = {
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
384
|
+
'index',
|
|
385
|
+
'delta',
|
|
386
|
+
'logprobs',
|
|
387
|
+
'finish_reason',
|
|
351
388
|
}
|
|
352
389
|
|
|
353
390
|
def __delattr__(self, name):
|
|
@@ -365,9 +402,10 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
365
402
|
|
|
366
403
|
def __hash__(self):
|
|
367
404
|
return hash((
|
|
368
|
-
self.
|
|
369
|
-
self.
|
|
370
|
-
self.
|
|
405
|
+
self.index,
|
|
406
|
+
self.delta,
|
|
407
|
+
self.logprobs,
|
|
408
|
+
self.finish_reason,
|
|
371
409
|
))
|
|
372
410
|
|
|
373
411
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -376,13 +414,15 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
376
414
|
def __init__(
|
|
377
415
|
self,
|
|
378
416
|
*,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
417
|
+
index: __dataclass__init__fields__0__annotation,
|
|
418
|
+
delta: __dataclass__init__fields__1__annotation,
|
|
419
|
+
logprobs: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
420
|
+
finish_reason: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
382
421
|
) -> __dataclass__None:
|
|
383
|
-
__dataclass__object_setattr(self, '
|
|
384
|
-
__dataclass__object_setattr(self, '
|
|
385
|
-
__dataclass__object_setattr(self, '
|
|
422
|
+
__dataclass__object_setattr(self, 'index', index)
|
|
423
|
+
__dataclass__object_setattr(self, 'delta', delta)
|
|
424
|
+
__dataclass__object_setattr(self, 'logprobs', logprobs)
|
|
425
|
+
__dataclass__object_setattr(self, 'finish_reason', finish_reason)
|
|
386
426
|
|
|
387
427
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
388
428
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -392,9 +432,10 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
392
432
|
@__dataclass___recursive_repr()
|
|
393
433
|
def __repr__(self):
|
|
394
434
|
parts = []
|
|
395
|
-
parts.append(f"
|
|
396
|
-
parts.append(f"
|
|
397
|
-
parts.append(f"
|
|
435
|
+
parts.append(f"index={self.index!r}")
|
|
436
|
+
parts.append(f"delta={self.delta!r}")
|
|
437
|
+
parts.append(f"logprobs={self.logprobs!r}")
|
|
438
|
+
parts.append(f"finish_reason={self.finish_reason!r}")
|
|
398
439
|
return (
|
|
399
440
|
f"{self.__class__.__qualname__}("
|
|
400
441
|
f"{', '.join(parts)}"
|
|
@@ -411,84 +452,66 @@ def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
|
411
452
|
|
|
412
453
|
@_register(
|
|
413
454
|
plan_repr=(
|
|
414
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
415
|
-
"
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
"
|
|
429
|
-
".
|
|
430
|
-
"
|
|
431
|
-
"
|
|
432
|
-
"
|
|
433
|
-
"
|
|
434
|
-
"
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
".fields.8.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=No"
|
|
439
|
-
"ne, validate=None, check_type=None), InitPlan.Field(name='service_tier', annotation=OpRef(name='init.fields.9."
|
|
440
|
-
"annotation'), default=OpRef(name='init.fields.9.default'), default_factory=None, init=True, override=False, fi"
|
|
441
|
-
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), "
|
|
442
|
-
"kw_only_params=('choices', 'created', 'id', 'model', 'object', 'system_fingerprint', 'usage', 'usage_breakdown"
|
|
443
|
-
"', 'x_groq', 'service_tier'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), "
|
|
444
|
-
"ReprPlan(fields=(ReprPlan.Field(name='choices', kw_only=True, fn=None), ReprPlan.Field(name='created', kw_only"
|
|
445
|
-
"=True, fn=None), ReprPlan.Field(name='id', kw_only=True, fn=None), ReprPlan.Field(name='model', kw_only=True, "
|
|
446
|
-
"fn=None), ReprPlan.Field(name='object', kw_only=True, fn=None), ReprPlan.Field(name='system_fingerprint', kw_o"
|
|
447
|
-
"nly=True, fn=None), ReprPlan.Field(name='usage', kw_only=True, fn=None), ReprPlan.Field(name='usage_breakdown'"
|
|
448
|
-
", kw_only=True, fn=None), ReprPlan.Field(name='x_groq', kw_only=True, fn=None), ReprPlan.Field(name='service_t"
|
|
449
|
-
"ier', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
455
|
+
"Plans(tup=(CopyPlan(fields=('role', 'content', 'channel', 'reasoning', 'tool_calls', 'executed_tools')), EqPla"
|
|
456
|
+
"n(fields=('role', 'content', 'channel', 'reasoning', 'tool_calls', 'executed_tools')), FrozenPlan(fields=('rol"
|
|
457
|
+
"e', 'content', 'channel', 'reasoning', 'tool_calls', 'executed_tools'), allow_dynamic_dunder_attrs=False), Has"
|
|
458
|
+
"hPlan(action='add', fields=('role', 'content', 'channel', 'reasoning', 'tool_calls', 'executed_tools'), cache="
|
|
459
|
+
"False), InitPlan(fields=(InitPlan.Field(name='role', annotation=OpRef(name='init.fields.0.annotation'), defaul"
|
|
460
|
+
"t=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.I"
|
|
461
|
+
"NSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='content', annotation=OpRef(name='i"
|
|
462
|
+
"nit.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True, overr"
|
|
463
|
+
"ide=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='c"
|
|
464
|
+
"hannel', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), defau"
|
|
465
|
+
"lt_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_t"
|
|
466
|
+
"ype=None), InitPlan.Field(name='reasoning', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(n"
|
|
467
|
+
"ame='init.fields.3.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, "
|
|
468
|
+
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='tool_calls', annotation=OpRef(name='init.fi"
|
|
469
|
+
"elds.4.annotation'), default=OpRef(name='init.fields.4.default'), default_factory=None, init=True, override=Fa"
|
|
470
|
+
"lse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='execute"
|
|
471
|
+
"d_tools', annotation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fields.5.default'), defa"
|
|
472
|
+
"ult_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_"
|
|
473
|
+
"type=None)), self_param='self', std_params=(), kw_only_params=('role', 'content', 'channel', 'reasoning', 'too"
|
|
474
|
+
"l_calls', 'executed_tools'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), R"
|
|
475
|
+
"eprPlan(fields=(ReprPlan.Field(name='role', kw_only=True, fn=None), ReprPlan.Field(name='content', kw_only=Tru"
|
|
476
|
+
"e, fn=None), ReprPlan.Field(name='channel', kw_only=True, fn=None), ReprPlan.Field(name='reasoning', kw_only=T"
|
|
477
|
+
"rue, fn=None), ReprPlan.Field(name='tool_calls', kw_only=True, fn=None), ReprPlan.Field(name='executed_tools',"
|
|
478
|
+
" kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
450
479
|
),
|
|
451
|
-
plan_repr_sha1='
|
|
480
|
+
plan_repr_sha1='e17f86dab4d47b211aac3e6e4afe0442050a7a86',
|
|
452
481
|
op_ref_idents=(
|
|
453
482
|
'__dataclass__init__fields__0__annotation',
|
|
483
|
+
'__dataclass__init__fields__0__default',
|
|
454
484
|
'__dataclass__init__fields__1__annotation',
|
|
485
|
+
'__dataclass__init__fields__1__default',
|
|
455
486
|
'__dataclass__init__fields__2__annotation',
|
|
487
|
+
'__dataclass__init__fields__2__default',
|
|
456
488
|
'__dataclass__init__fields__3__annotation',
|
|
489
|
+
'__dataclass__init__fields__3__default',
|
|
457
490
|
'__dataclass__init__fields__4__annotation',
|
|
458
491
|
'__dataclass__init__fields__4__default',
|
|
459
492
|
'__dataclass__init__fields__5__annotation',
|
|
460
|
-
'
|
|
461
|
-
'__dataclass__init__fields__6__default',
|
|
462
|
-
'__dataclass__init__fields__7__annotation',
|
|
463
|
-
'__dataclass__init__fields__7__default',
|
|
464
|
-
'__dataclass__init__fields__8__annotation',
|
|
465
|
-
'__dataclass__init__fields__8__default',
|
|
466
|
-
'__dataclass__init__fields__9__annotation',
|
|
467
|
-
'__dataclass__init__fields__9__default',
|
|
493
|
+
'__dataclass__init__fields__5__default',
|
|
468
494
|
),
|
|
469
495
|
cls_names=(
|
|
470
|
-
('ommlds.backends.groq._marshal', '
|
|
496
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionChunk.Choice.Delta'),
|
|
471
497
|
),
|
|
472
498
|
)
|
|
473
|
-
def
|
|
499
|
+
def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
474
500
|
def _process_dataclass(
|
|
475
501
|
*,
|
|
476
502
|
__dataclass__cls,
|
|
477
503
|
__dataclass__init__fields__0__annotation,
|
|
504
|
+
__dataclass__init__fields__0__default,
|
|
478
505
|
__dataclass__init__fields__1__annotation,
|
|
506
|
+
__dataclass__init__fields__1__default,
|
|
479
507
|
__dataclass__init__fields__2__annotation,
|
|
508
|
+
__dataclass__init__fields__2__default,
|
|
480
509
|
__dataclass__init__fields__3__annotation,
|
|
510
|
+
__dataclass__init__fields__3__default,
|
|
481
511
|
__dataclass__init__fields__4__annotation,
|
|
482
512
|
__dataclass__init__fields__4__default,
|
|
483
513
|
__dataclass__init__fields__5__annotation,
|
|
484
|
-
|
|
485
|
-
__dataclass__init__fields__6__default,
|
|
486
|
-
__dataclass__init__fields__7__annotation,
|
|
487
|
-
__dataclass__init__fields__7__default,
|
|
488
|
-
__dataclass__init__fields__8__annotation,
|
|
489
|
-
__dataclass__init__fields__8__default,
|
|
490
|
-
__dataclass__init__fields__9__annotation,
|
|
491
|
-
__dataclass__init__fields__9__default,
|
|
514
|
+
__dataclass__init__fields__5__default,
|
|
492
515
|
__dataclass__FieldFnValidationError, # noqa
|
|
493
516
|
__dataclass__FieldTypeValidationError, # noqa
|
|
494
517
|
__dataclass__FnValidationError, # noqa
|
|
@@ -507,16 +530,12 @@ def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
|
507
530
|
if self.__class__ is not __dataclass__cls:
|
|
508
531
|
raise TypeError(self)
|
|
509
532
|
return __dataclass__cls( # noqa
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
usage=self.usage,
|
|
517
|
-
usage_breakdown=self.usage_breakdown,
|
|
518
|
-
x_groq=self.x_groq,
|
|
519
|
-
service_tier=self.service_tier,
|
|
533
|
+
role=self.role,
|
|
534
|
+
content=self.content,
|
|
535
|
+
channel=self.channel,
|
|
536
|
+
reasoning=self.reasoning,
|
|
537
|
+
tool_calls=self.tool_calls,
|
|
538
|
+
executed_tools=self.executed_tools,
|
|
520
539
|
)
|
|
521
540
|
|
|
522
541
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -530,16 +549,12 @@ def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
|
530
549
|
if self.__class__ is not other.__class__:
|
|
531
550
|
return NotImplemented
|
|
532
551
|
return (
|
|
533
|
-
self.
|
|
534
|
-
self.
|
|
535
|
-
self.
|
|
536
|
-
self.
|
|
537
|
-
self.
|
|
538
|
-
self.
|
|
539
|
-
self.usage == other.usage and
|
|
540
|
-
self.usage_breakdown == other.usage_breakdown and
|
|
541
|
-
self.x_groq == other.x_groq and
|
|
542
|
-
self.service_tier == other.service_tier
|
|
552
|
+
self.role == other.role and
|
|
553
|
+
self.content == other.content and
|
|
554
|
+
self.channel == other.channel and
|
|
555
|
+
self.reasoning == other.reasoning and
|
|
556
|
+
self.tool_calls == other.tool_calls and
|
|
557
|
+
self.executed_tools == other.executed_tools
|
|
543
558
|
)
|
|
544
559
|
|
|
545
560
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -548,16 +563,12 @@ def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
|
548
563
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
549
564
|
|
|
550
565
|
__dataclass___setattr_frozen_fields = {
|
|
551
|
-
'
|
|
552
|
-
'
|
|
553
|
-
'
|
|
554
|
-
'
|
|
555
|
-
'
|
|
556
|
-
'
|
|
557
|
-
'usage',
|
|
558
|
-
'usage_breakdown',
|
|
559
|
-
'x_groq',
|
|
560
|
-
'service_tier',
|
|
566
|
+
'role',
|
|
567
|
+
'content',
|
|
568
|
+
'channel',
|
|
569
|
+
'reasoning',
|
|
570
|
+
'tool_calls',
|
|
571
|
+
'executed_tools',
|
|
561
572
|
}
|
|
562
573
|
|
|
563
574
|
def __setattr__(self, name, value):
|
|
@@ -574,16 +585,12 @@ def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
|
574
585
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
575
586
|
|
|
576
587
|
__dataclass___delattr_frozen_fields = {
|
|
577
|
-
'
|
|
578
|
-
'
|
|
579
|
-
'
|
|
580
|
-
'
|
|
581
|
-
'
|
|
582
|
-
'
|
|
583
|
-
'usage',
|
|
584
|
-
'usage_breakdown',
|
|
585
|
-
'x_groq',
|
|
586
|
-
'service_tier',
|
|
588
|
+
'role',
|
|
589
|
+
'content',
|
|
590
|
+
'channel',
|
|
591
|
+
'reasoning',
|
|
592
|
+
'tool_calls',
|
|
593
|
+
'executed_tools',
|
|
587
594
|
}
|
|
588
595
|
|
|
589
596
|
def __delattr__(self, name):
|
|
@@ -601,16 +608,12 @@ def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
|
601
608
|
|
|
602
609
|
def __hash__(self):
|
|
603
610
|
return hash((
|
|
604
|
-
self.
|
|
605
|
-
self.
|
|
606
|
-
self.
|
|
607
|
-
self.
|
|
608
|
-
self.
|
|
609
|
-
self.
|
|
610
|
-
self.usage,
|
|
611
|
-
self.usage_breakdown,
|
|
612
|
-
self.x_groq,
|
|
613
|
-
self.service_tier,
|
|
611
|
+
self.role,
|
|
612
|
+
self.content,
|
|
613
|
+
self.channel,
|
|
614
|
+
self.reasoning,
|
|
615
|
+
self.tool_calls,
|
|
616
|
+
self.executed_tools,
|
|
614
617
|
))
|
|
615
618
|
|
|
616
619
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -619,46 +622,34 @@ def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
|
619
622
|
def __init__(
|
|
620
623
|
self,
|
|
621
624
|
*,
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
usage: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
629
|
-
usage_breakdown: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
630
|
-
x_groq: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
631
|
-
service_tier: __dataclass__init__fields__9__annotation = __dataclass__init__fields__9__default,
|
|
625
|
+
role: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
626
|
+
content: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
627
|
+
channel: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
628
|
+
reasoning: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
629
|
+
tool_calls: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
630
|
+
executed_tools: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
632
631
|
) -> __dataclass__None:
|
|
633
|
-
__dataclass__object_setattr(self, '
|
|
634
|
-
__dataclass__object_setattr(self, '
|
|
635
|
-
__dataclass__object_setattr(self, '
|
|
636
|
-
__dataclass__object_setattr(self, '
|
|
637
|
-
__dataclass__object_setattr(self, '
|
|
638
|
-
__dataclass__object_setattr(self, '
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
645
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
646
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
647
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
632
|
+
__dataclass__object_setattr(self, 'role', role)
|
|
633
|
+
__dataclass__object_setattr(self, 'content', content)
|
|
634
|
+
__dataclass__object_setattr(self, 'channel', channel)
|
|
635
|
+
__dataclass__object_setattr(self, 'reasoning', reasoning)
|
|
636
|
+
__dataclass__object_setattr(self, 'tool_calls', tool_calls)
|
|
637
|
+
__dataclass__object_setattr(self, 'executed_tools', executed_tools)
|
|
638
|
+
|
|
639
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
640
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
641
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
642
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
648
643
|
|
|
649
644
|
@__dataclass___recursive_repr()
|
|
650
645
|
def __repr__(self):
|
|
651
646
|
parts = []
|
|
652
|
-
parts.append(f"
|
|
653
|
-
parts.append(f"
|
|
654
|
-
parts.append(f"
|
|
655
|
-
parts.append(f"
|
|
656
|
-
parts.append(f"
|
|
657
|
-
parts.append(f"
|
|
658
|
-
parts.append(f"usage={self.usage!r}")
|
|
659
|
-
parts.append(f"usage_breakdown={self.usage_breakdown!r}")
|
|
660
|
-
parts.append(f"x_groq={self.x_groq!r}")
|
|
661
|
-
parts.append(f"service_tier={self.service_tier!r}")
|
|
647
|
+
parts.append(f"role={self.role!r}")
|
|
648
|
+
parts.append(f"content={self.content!r}")
|
|
649
|
+
parts.append(f"channel={self.channel!r}")
|
|
650
|
+
parts.append(f"reasoning={self.reasoning!r}")
|
|
651
|
+
parts.append(f"tool_calls={self.tool_calls!r}")
|
|
652
|
+
parts.append(f"executed_tools={self.executed_tools!r}")
|
|
662
653
|
return (
|
|
663
654
|
f"{self.__class__.__qualname__}("
|
|
664
655
|
f"{', '.join(parts)}"
|
|
@@ -675,58 +666,48 @@ def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
|
675
666
|
|
|
676
667
|
@_register(
|
|
677
668
|
plan_repr=(
|
|
678
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
679
|
-
"'
|
|
680
|
-
"
|
|
681
|
-
"
|
|
682
|
-
"
|
|
683
|
-
"
|
|
684
|
-
",
|
|
685
|
-
"
|
|
686
|
-
"
|
|
687
|
-
"
|
|
688
|
-
"
|
|
689
|
-
"
|
|
690
|
-
"
|
|
691
|
-
"
|
|
692
|
-
"
|
|
693
|
-
"
|
|
694
|
-
"ue, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='c"
|
|
695
|
-
"ontent', kw_only=True, fn=None), ReprPlan.Field(name='name', kw_only=True, fn=None), ReprPlan.Field(name='reas"
|
|
696
|
-
"oning', kw_only=True, fn=None), ReprPlan.Field(name='role', kw_only=True, fn=None), ReprPlan.Field(name='tool_"
|
|
697
|
-
"calls', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
669
|
+
"Plans(tup=(CopyPlan(fields=('index', 'id', 'function', 'type')), EqPlan(fields=('index', 'id', 'function', 'ty"
|
|
670
|
+
"pe')), FrozenPlan(fields=('index', 'id', 'function', 'type'), allow_dynamic_dunder_attrs=False), HashPlan(acti"
|
|
671
|
+
"on='add', fields=('index', 'id', 'function', 'type'), cache=False), InitPlan(fields=(InitPlan.Field(name='inde"
|
|
672
|
+
"x', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override"
|
|
673
|
+
"=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='id',"
|
|
674
|
+
" annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_facto"
|
|
675
|
+
"ry=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None"
|
|
676
|
+
"), InitPlan.Field(name='function', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init"
|
|
677
|
+
".fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=No"
|
|
678
|
+
"ne, validate=None, check_type=None), InitPlan.Field(name='type', annotation=OpRef(name='init.fields.3.annotati"
|
|
679
|
+
"on'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=False, field_type"
|
|
680
|
+
"=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only_"
|
|
681
|
+
"params=('index', 'id', 'function', 'type'), frozen=True, slots=False, post_init_params=None, init_fns=(), vali"
|
|
682
|
+
"date_fns=()), ReprPlan(fields=(ReprPlan.Field(name='index', kw_only=True, fn=None), ReprPlan.Field(name='id', "
|
|
683
|
+
"kw_only=True, fn=None), ReprPlan.Field(name='function', kw_only=True, fn=None), ReprPlan.Field(name='type', kw"
|
|
684
|
+
"_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
698
685
|
),
|
|
699
|
-
plan_repr_sha1='
|
|
686
|
+
plan_repr_sha1='60dd172cc10b3281c0cf9cea0a9cccff26bad0f2',
|
|
700
687
|
op_ref_idents=(
|
|
701
688
|
'__dataclass__init__fields__0__annotation',
|
|
702
|
-
'__dataclass__init__fields__0__default',
|
|
703
689
|
'__dataclass__init__fields__1__annotation',
|
|
704
690
|
'__dataclass__init__fields__1__default',
|
|
705
691
|
'__dataclass__init__fields__2__annotation',
|
|
706
692
|
'__dataclass__init__fields__2__default',
|
|
707
693
|
'__dataclass__init__fields__3__annotation',
|
|
708
694
|
'__dataclass__init__fields__3__default',
|
|
709
|
-
'__dataclass__init__fields__4__annotation',
|
|
710
|
-
'__dataclass__init__fields__4__default',
|
|
711
695
|
),
|
|
712
696
|
cls_names=(
|
|
713
|
-
('ommlds.backends.groq._marshal', '
|
|
697
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionChunk.Choice.Delta.ToolCall'),
|
|
714
698
|
),
|
|
715
699
|
)
|
|
716
|
-
def
|
|
700
|
+
def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
717
701
|
def _process_dataclass(
|
|
718
702
|
*,
|
|
719
703
|
__dataclass__cls,
|
|
720
704
|
__dataclass__init__fields__0__annotation,
|
|
721
|
-
__dataclass__init__fields__0__default,
|
|
722
705
|
__dataclass__init__fields__1__annotation,
|
|
723
706
|
__dataclass__init__fields__1__default,
|
|
724
707
|
__dataclass__init__fields__2__annotation,
|
|
725
708
|
__dataclass__init__fields__2__default,
|
|
726
709
|
__dataclass__init__fields__3__annotation,
|
|
727
710
|
__dataclass__init__fields__3__default,
|
|
728
|
-
__dataclass__init__fields__4__annotation,
|
|
729
|
-
__dataclass__init__fields__4__default,
|
|
730
711
|
__dataclass__FieldFnValidationError, # noqa
|
|
731
712
|
__dataclass__FieldTypeValidationError, # noqa
|
|
732
713
|
__dataclass__FnValidationError, # noqa
|
|
@@ -745,11 +726,10 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
745
726
|
if self.__class__ is not __dataclass__cls:
|
|
746
727
|
raise TypeError(self)
|
|
747
728
|
return __dataclass__cls( # noqa
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
tool_calls=self.tool_calls,
|
|
729
|
+
index=self.index,
|
|
730
|
+
id=self.id,
|
|
731
|
+
function=self.function,
|
|
732
|
+
type=self.type,
|
|
753
733
|
)
|
|
754
734
|
|
|
755
735
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -763,11 +743,10 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
763
743
|
if self.__class__ is not other.__class__:
|
|
764
744
|
return NotImplemented
|
|
765
745
|
return (
|
|
766
|
-
self.
|
|
767
|
-
self.
|
|
768
|
-
self.
|
|
769
|
-
self.
|
|
770
|
-
self.tool_calls == other.tool_calls
|
|
746
|
+
self.index == other.index and
|
|
747
|
+
self.id == other.id and
|
|
748
|
+
self.function == other.function and
|
|
749
|
+
self.type == other.type
|
|
771
750
|
)
|
|
772
751
|
|
|
773
752
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -776,11 +755,10 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
776
755
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
777
756
|
|
|
778
757
|
__dataclass___setattr_frozen_fields = {
|
|
779
|
-
'
|
|
780
|
-
'
|
|
781
|
-
'
|
|
782
|
-
'
|
|
783
|
-
'tool_calls',
|
|
758
|
+
'index',
|
|
759
|
+
'id',
|
|
760
|
+
'function',
|
|
761
|
+
'type',
|
|
784
762
|
}
|
|
785
763
|
|
|
786
764
|
def __setattr__(self, name, value):
|
|
@@ -797,11 +775,10 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
797
775
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
798
776
|
|
|
799
777
|
__dataclass___delattr_frozen_fields = {
|
|
800
|
-
'
|
|
801
|
-
'
|
|
802
|
-
'
|
|
803
|
-
'
|
|
804
|
-
'tool_calls',
|
|
778
|
+
'index',
|
|
779
|
+
'id',
|
|
780
|
+
'function',
|
|
781
|
+
'type',
|
|
805
782
|
}
|
|
806
783
|
|
|
807
784
|
def __delattr__(self, name):
|
|
@@ -819,11 +796,10 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
819
796
|
|
|
820
797
|
def __hash__(self):
|
|
821
798
|
return hash((
|
|
822
|
-
self.
|
|
823
|
-
self.
|
|
824
|
-
self.
|
|
825
|
-
self.
|
|
826
|
-
self.tool_calls,
|
|
799
|
+
self.index,
|
|
800
|
+
self.id,
|
|
801
|
+
self.function,
|
|
802
|
+
self.type,
|
|
827
803
|
))
|
|
828
804
|
|
|
829
805
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -832,17 +808,15 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
832
808
|
def __init__(
|
|
833
809
|
self,
|
|
834
810
|
*,
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
tool_calls: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
811
|
+
index: __dataclass__init__fields__0__annotation,
|
|
812
|
+
id: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
813
|
+
function: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
814
|
+
type: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
840
815
|
) -> __dataclass__None:
|
|
841
|
-
__dataclass__object_setattr(self, '
|
|
842
|
-
__dataclass__object_setattr(self, '
|
|
843
|
-
__dataclass__object_setattr(self, '
|
|
844
|
-
__dataclass__object_setattr(self, '
|
|
845
|
-
__dataclass__object_setattr(self, 'tool_calls', tool_calls)
|
|
816
|
+
__dataclass__object_setattr(self, 'index', index)
|
|
817
|
+
__dataclass__object_setattr(self, 'id', id)
|
|
818
|
+
__dataclass__object_setattr(self, 'function', function)
|
|
819
|
+
__dataclass__object_setattr(self, 'type', type)
|
|
846
820
|
|
|
847
821
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
848
822
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -852,11 +826,10 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
852
826
|
@__dataclass___recursive_repr()
|
|
853
827
|
def __repr__(self):
|
|
854
828
|
parts = []
|
|
855
|
-
parts.append(f"
|
|
856
|
-
parts.append(f"
|
|
857
|
-
parts.append(f"
|
|
858
|
-
parts.append(f"
|
|
859
|
-
parts.append(f"tool_calls={self.tool_calls!r}")
|
|
829
|
+
parts.append(f"index={self.index!r}")
|
|
830
|
+
parts.append(f"id={self.id!r}")
|
|
831
|
+
parts.append(f"function={self.function!r}")
|
|
832
|
+
parts.append(f"type={self.type!r}")
|
|
860
833
|
return (
|
|
861
834
|
f"{self.__class__.__qualname__}("
|
|
862
835
|
f"{', '.join(parts)}"
|
|
@@ -873,44 +846,36 @@ def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
|
873
846
|
|
|
874
847
|
@_register(
|
|
875
848
|
plan_repr=(
|
|
876
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
877
|
-
"
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
-
"
|
|
881
|
-
"
|
|
882
|
-
"
|
|
883
|
-
"
|
|
884
|
-
"
|
|
885
|
-
"
|
|
886
|
-
"tion=OpRef(name='init.fields.3.annotation'), default=None, default_factory=None, init=True, override=False, fi"
|
|
887
|
-
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), "
|
|
888
|
-
"kw_only_params=('finish_reason', 'index', 'logprobs', 'message'), frozen=True, slots=False, post_init_params=N"
|
|
889
|
-
"one, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='finish_reason', kw_only=True, fn=Non"
|
|
890
|
-
"e), ReprPlan.Field(name='index', kw_only=True, fn=None), ReprPlan.Field(name='logprobs', kw_only=True, fn=None"
|
|
891
|
-
"), ReprPlan.Field(name='message', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
849
|
+
"Plans(tup=(CopyPlan(fields=('arguments', 'name')), EqPlan(fields=('arguments', 'name')), FrozenPlan(fields=('a"
|
|
850
|
+
"rguments', 'name'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('arguments', 'name'), ca"
|
|
851
|
+
"che=False), InitPlan(fields=(InitPlan.Field(name='arguments', annotation=OpRef(name='init.fields.0.annotation'"
|
|
852
|
+
"), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=Fi"
|
|
853
|
+
"eldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='name', annotation=OpRef(n"
|
|
854
|
+
"ame='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True,"
|
|
855
|
+
" override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='sel"
|
|
856
|
+
"f', std_params=(), kw_only_params=('arguments', 'name'), frozen=True, slots=False, post_init_params=None, init"
|
|
857
|
+
"_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='arguments', kw_only=True, fn=None), ReprPlan."
|
|
858
|
+
"Field(name='name', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
892
859
|
),
|
|
893
|
-
plan_repr_sha1='
|
|
860
|
+
plan_repr_sha1='ca1d4dad922b4f93571cc14b86fcfb93e4c5f278',
|
|
894
861
|
op_ref_idents=(
|
|
895
862
|
'__dataclass__init__fields__0__annotation',
|
|
863
|
+
'__dataclass__init__fields__0__default',
|
|
896
864
|
'__dataclass__init__fields__1__annotation',
|
|
897
|
-
'
|
|
898
|
-
'__dataclass__init__fields__2__default',
|
|
899
|
-
'__dataclass__init__fields__3__annotation',
|
|
865
|
+
'__dataclass__init__fields__1__default',
|
|
900
866
|
),
|
|
901
867
|
cls_names=(
|
|
902
|
-
('ommlds.backends.groq._marshal', '
|
|
868
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionChunk.Choice.Delta.ToolCall.Function'),
|
|
903
869
|
),
|
|
904
870
|
)
|
|
905
|
-
def
|
|
871
|
+
def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
906
872
|
def _process_dataclass(
|
|
907
873
|
*,
|
|
908
874
|
__dataclass__cls,
|
|
909
875
|
__dataclass__init__fields__0__annotation,
|
|
876
|
+
__dataclass__init__fields__0__default,
|
|
910
877
|
__dataclass__init__fields__1__annotation,
|
|
911
|
-
|
|
912
|
-
__dataclass__init__fields__2__default,
|
|
913
|
-
__dataclass__init__fields__3__annotation,
|
|
878
|
+
__dataclass__init__fields__1__default,
|
|
914
879
|
__dataclass__FieldFnValidationError, # noqa
|
|
915
880
|
__dataclass__FieldTypeValidationError, # noqa
|
|
916
881
|
__dataclass__FnValidationError, # noqa
|
|
@@ -929,10 +894,8 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
929
894
|
if self.__class__ is not __dataclass__cls:
|
|
930
895
|
raise TypeError(self)
|
|
931
896
|
return __dataclass__cls( # noqa
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
logprobs=self.logprobs,
|
|
935
|
-
message=self.message,
|
|
897
|
+
arguments=self.arguments,
|
|
898
|
+
name=self.name,
|
|
936
899
|
)
|
|
937
900
|
|
|
938
901
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -946,10 +909,8 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
946
909
|
if self.__class__ is not other.__class__:
|
|
947
910
|
return NotImplemented
|
|
948
911
|
return (
|
|
949
|
-
self.
|
|
950
|
-
self.
|
|
951
|
-
self.logprobs == other.logprobs and
|
|
952
|
-
self.message == other.message
|
|
912
|
+
self.arguments == other.arguments and
|
|
913
|
+
self.name == other.name
|
|
953
914
|
)
|
|
954
915
|
|
|
955
916
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -958,10 +919,8 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
958
919
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
959
920
|
|
|
960
921
|
__dataclass___setattr_frozen_fields = {
|
|
961
|
-
'
|
|
962
|
-
'
|
|
963
|
-
'logprobs',
|
|
964
|
-
'message',
|
|
922
|
+
'arguments',
|
|
923
|
+
'name',
|
|
965
924
|
}
|
|
966
925
|
|
|
967
926
|
def __setattr__(self, name, value):
|
|
@@ -978,10 +937,8 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
978
937
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
979
938
|
|
|
980
939
|
__dataclass___delattr_frozen_fields = {
|
|
981
|
-
'
|
|
982
|
-
'
|
|
983
|
-
'logprobs',
|
|
984
|
-
'message',
|
|
940
|
+
'arguments',
|
|
941
|
+
'name',
|
|
985
942
|
}
|
|
986
943
|
|
|
987
944
|
def __delattr__(self, name):
|
|
@@ -999,10 +956,8 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
999
956
|
|
|
1000
957
|
def __hash__(self):
|
|
1001
958
|
return hash((
|
|
1002
|
-
self.
|
|
1003
|
-
self.
|
|
1004
|
-
self.logprobs,
|
|
1005
|
-
self.message,
|
|
959
|
+
self.arguments,
|
|
960
|
+
self.name,
|
|
1006
961
|
))
|
|
1007
962
|
|
|
1008
963
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -1011,15 +966,11 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
1011
966
|
def __init__(
|
|
1012
967
|
self,
|
|
1013
968
|
*,
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
logprobs: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1017
|
-
message: __dataclass__init__fields__3__annotation,
|
|
969
|
+
arguments: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
970
|
+
name: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1018
971
|
) -> __dataclass__None:
|
|
1019
|
-
__dataclass__object_setattr(self, '
|
|
1020
|
-
__dataclass__object_setattr(self, '
|
|
1021
|
-
__dataclass__object_setattr(self, 'logprobs', logprobs)
|
|
1022
|
-
__dataclass__object_setattr(self, 'message', message)
|
|
972
|
+
__dataclass__object_setattr(self, 'arguments', arguments)
|
|
973
|
+
__dataclass__object_setattr(self, 'name', name)
|
|
1023
974
|
|
|
1024
975
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1025
976
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -1029,10 +980,8 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
1029
980
|
@__dataclass___recursive_repr()
|
|
1030
981
|
def __repr__(self):
|
|
1031
982
|
parts = []
|
|
1032
|
-
parts.append(f"
|
|
1033
|
-
parts.append(f"
|
|
1034
|
-
parts.append(f"logprobs={self.logprobs!r}")
|
|
1035
|
-
parts.append(f"message={self.message!r}")
|
|
983
|
+
parts.append(f"arguments={self.arguments!r}")
|
|
984
|
+
parts.append(f"name={self.name!r}")
|
|
1036
985
|
return (
|
|
1037
986
|
f"{self.__class__.__qualname__}("
|
|
1038
987
|
f"{', '.join(parts)}"
|
|
@@ -1049,47 +998,245 @@ def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
|
1049
998
|
|
|
1050
999
|
@_register(
|
|
1051
1000
|
plan_repr=(
|
|
1052
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
1053
|
-
"'
|
|
1054
|
-
"
|
|
1055
|
-
"
|
|
1056
|
-
"
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1059
|
-
"
|
|
1060
|
-
"
|
|
1061
|
-
"
|
|
1062
|
-
"
|
|
1063
|
-
"
|
|
1064
|
-
"
|
|
1065
|
-
"
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
1068
|
-
"
|
|
1069
|
-
|
|
1070
|
-
|
|
1001
|
+
"Plans(tup=(CopyPlan(fields=('messages', 'model', 'citation_options', 'compound_custom', 'disable_tool_validati"
|
|
1002
|
+
"on', 'documents', 'frequency_penalty', 'include_reasoning', 'logit_bias', 'logprobs', 'max_completion_tokens',"
|
|
1003
|
+
" 'n', 'parallel_tool_calls', 'presence_penalty', 'reasoning_effort', 'reasoning_format', 'response_format', 's"
|
|
1004
|
+
"earch_settings', 'seed', 'service_tier', 'stop', 'store', 'stream', 'stream_options', 'temperature', 'ool_choi"
|
|
1005
|
+
"ce', 'tools', 'top_logprobs', 'top_p', 'user')), EqPlan(fields=('messages', 'model', 'citation_options', 'comp"
|
|
1006
|
+
"ound_custom', 'disable_tool_validation', 'documents', 'frequency_penalty', 'include_reasoning', 'logit_bias', "
|
|
1007
|
+
"'logprobs', 'max_completion_tokens', 'n', 'parallel_tool_calls', 'presence_penalty', 'reasoning_effort', 'reas"
|
|
1008
|
+
"oning_format', 'response_format', 'search_settings', 'seed', 'service_tier', 'stop', 'store', 'stream', 'strea"
|
|
1009
|
+
"m_options', 'temperature', 'ool_choice', 'tools', 'top_logprobs', 'top_p', 'user')), FrozenPlan(fields=('messa"
|
|
1010
|
+
"ges', 'model', 'citation_options', 'compound_custom', 'disable_tool_validation', 'documents', 'frequency_penal"
|
|
1011
|
+
"ty', 'include_reasoning', 'logit_bias', 'logprobs', 'max_completion_tokens', 'n', 'parallel_tool_calls', 'pres"
|
|
1012
|
+
"ence_penalty', 'reasoning_effort', 'reasoning_format', 'response_format', 'search_settings', 'seed', 'service_"
|
|
1013
|
+
"tier', 'stop', 'store', 'stream', 'stream_options', 'temperature', 'ool_choice', 'tools', 'top_logprobs', 'top"
|
|
1014
|
+
"_p', 'user'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('messages', 'model', 'citation"
|
|
1015
|
+
"_options', 'compound_custom', 'disable_tool_validation', 'documents', 'frequency_penalty', 'include_reasoning'"
|
|
1016
|
+
", 'logit_bias', 'logprobs', 'max_completion_tokens', 'n', 'parallel_tool_calls', 'presence_penalty', 'reasonin"
|
|
1017
|
+
"g_effort', 'reasoning_format', 'response_format', 'search_settings', 'seed', 'service_tier', 'stop', 'store', "
|
|
1018
|
+
"'stream', 'stream_options', 'temperature', 'ool_choice', 'tools', 'top_logprobs', 'top_p', 'user'), cache=Fals"
|
|
1019
|
+
"e), InitPlan(fields=(InitPlan.Field(name='messages', annotation=OpRef(name='init.fields.0.annotation'), defaul"
|
|
1020
|
+
"t=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
1021
|
+
"None, check_type=None), InitPlan.Field(name='model', annotation=OpRef(name='init.fields.1.annotation'), defaul"
|
|
1022
|
+
"t=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
1023
|
+
"None, check_type=None), InitPlan.Field(name='citation_options', annotation=OpRef(name='init.fields.2.annotatio"
|
|
1024
|
+
"n'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False, field_type="
|
|
1025
|
+
"FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='compound_custom', annot"
|
|
1026
|
+
"ation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory=Non"
|
|
1027
|
+
"e, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), Ini"
|
|
1028
|
+
"tPlan.Field(name='disable_tool_validation', annotation=OpRef(name='init.fields.4.annotation'), default=OpRef(n"
|
|
1029
|
+
"ame='init.fields.4.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, "
|
|
1030
|
+
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='documents', annotation=OpRef(name='init.fie"
|
|
1031
|
+
"lds.5.annotation'), default=OpRef(name='init.fields.5.default'), default_factory=None, init=True, override=Fal"
|
|
1032
|
+
"se, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='frequenc"
|
|
1033
|
+
"y_penalty', annotation=OpRef(name='init.fields.6.annotation'), default=OpRef(name='init.fields.6.default'), de"
|
|
1034
|
+
"fault_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, chec"
|
|
1035
|
+
"k_type=None), InitPlan.Field(name='include_reasoning', annotation=OpRef(name='init.fields.7.annotation'), defa"
|
|
1036
|
+
"ult=OpRef(name='init.fields.7.default'), default_factory=None, init=True, override=False, field_type=FieldType"
|
|
1037
|
+
".INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='logit_bias', annotation=OpRef(na"
|
|
1038
|
+
"me='init.fields.8.annotation'), default=OpRef(name='init.fields.8.default'), default_factory=None, init=True, "
|
|
1039
|
+
"override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(na"
|
|
1040
|
+
"me='logprobs', annotation=OpRef(name='init.fields.9.annotation'), default=OpRef(name='init.fields.9.default'),"
|
|
1041
|
+
" default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, c"
|
|
1042
|
+
"heck_type=None), InitPlan.Field(name='max_completion_tokens', annotation=OpRef(name='init.fields.10.annotation"
|
|
1043
|
+
"'), default=OpRef(name='init.fields.10.default'), default_factory=None, init=True, override=False, field_type="
|
|
1044
|
+
"FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='n', annotation=OpRef(na"
|
|
1045
|
+
"me='init.fields.11.annotation'), default=OpRef(name='init.fields.11.default'), default_factory=None, init=True"
|
|
1046
|
+
", override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field("
|
|
1047
|
+
"name='parallel_tool_calls', annotation=OpRef(name='init.fields.12.annotation'), default=OpRef(name='init.field"
|
|
1048
|
+
"s.12.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, v"
|
|
1049
|
+
"alidate=None, check_type=None), InitPlan.Field(name='presence_penalty', annotation=OpRef(name='init.fields.13."
|
|
1050
|
+
"annotation'), default=OpRef(name='init.fields.13.default'), default_factory=None, init=True, override=False, f"
|
|
1051
|
+
"ield_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='reasoning_eff"
|
|
1052
|
+
"ort', annotation=OpRef(name='init.fields.14.annotation'), default=OpRef(name='init.fields.14.default'), defaul"
|
|
1053
|
+
"t_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_ty"
|
|
1054
|
+
"pe=None), InitPlan.Field(name='reasoning_format', annotation=OpRef(name='init.fields.15.annotation'), default="
|
|
1055
|
+
"OpRef(name='init.fields.15.default'), default_factory=None, init=True, override=False, field_type=FieldType.IN"
|
|
1056
|
+
"STANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='response_format', annotation=OpRef("
|
|
1057
|
+
"name='init.fields.16.annotation'), default=OpRef(name='init.fields.16.default'), default_factory=None, init=Tr"
|
|
1058
|
+
"ue, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Fiel"
|
|
1059
|
+
"d(name='search_settings', annotation=OpRef(name='init.fields.17.annotation'), default=OpRef(name='init.fields."
|
|
1060
|
+
"17.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, val"
|
|
1061
|
+
"idate=None, check_type=None), InitPlan.Field(name='seed', annotation=OpRef(name='init.fields.18.annotation'), "
|
|
1062
|
+
"default=OpRef(name='init.fields.18.default'), default_factory=None, init=True, override=False, field_type=Fiel"
|
|
1063
|
+
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='service_tier', annotation=O"
|
|
1064
|
+
"pRef(name='init.fields.19.annotation'), default=OpRef(name='init.fields.19.default'), default_factory=None, in"
|
|
1065
|
+
"it=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan"
|
|
1066
|
+
".Field(name='stop', annotation=OpRef(name='init.fields.20.annotation'), default=OpRef(name='init.fields.20.def"
|
|
1067
|
+
"ault'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
1068
|
+
"None, check_type=None), InitPlan.Field(name='store', annotation=OpRef(name='init.fields.21.annotation'), defau"
|
|
1069
|
+
"lt=OpRef(name='init.fields.21.default'), default_factory=None, init=True, override=False, field_type=FieldType"
|
|
1070
|
+
".INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='stream', annotation=OpRef(name='"
|
|
1071
|
+
"init.fields.22.annotation'), default=OpRef(name='init.fields.22.default'), default_factory=None, init=True, ov"
|
|
1072
|
+
"erride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name"
|
|
1073
|
+
"='stream_options', annotation=OpRef(name='init.fields.23.annotation'), default=OpRef(name='init.fields.23.defa"
|
|
1074
|
+
"ult'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
1075
|
+
"one, check_type=None), InitPlan.Field(name='temperature', annotation=OpRef(name='init.fields.24.annotation'), "
|
|
1076
|
+
"default=OpRef(name='init.fields.24.default'), default_factory=None, init=True, override=False, field_type=Fiel"
|
|
1077
|
+
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='ool_choice', annotation=OpR"
|
|
1078
|
+
"ef(name='init.fields.25.annotation'), default=OpRef(name='init.fields.25.default'), default_factory=None, init"
|
|
1079
|
+
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.F"
|
|
1080
|
+
"ield(name='tools', annotation=OpRef(name='init.fields.26.annotation'), default=OpRef(name='init.fields.26.defa"
|
|
1081
|
+
"ult'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
1082
|
+
"one, check_type=None), InitPlan.Field(name='top_logprobs', annotation=OpRef(name='init.fields.27.annotation'),"
|
|
1083
|
+
" default=OpRef(name='init.fields.27.default'), default_factory=None, init=True, override=False, field_type=Fie"
|
|
1084
|
+
"ldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='top_p', annotation=OpRef(n"
|
|
1085
|
+
"ame='init.fields.28.annotation'), default=OpRef(name='init.fields.28.default'), default_factory=None, init=Tru"
|
|
1086
|
+
"e, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field"
|
|
1087
|
+
"(name='user', annotation=OpRef(name='init.fields.29.annotation'), default=OpRef(name='init.fields.29.default')"
|
|
1088
|
+
", default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, "
|
|
1089
|
+
"check_type=None)), self_param='self', std_params=(), kw_only_params=('messages', 'model', 'citation_options', "
|
|
1090
|
+
"'compound_custom', 'disable_tool_validation', 'documents', 'frequency_penalty', 'include_reasoning', 'logit_bi"
|
|
1091
|
+
"as', 'logprobs', 'max_completion_tokens', 'n', 'parallel_tool_calls', 'presence_penalty', 'reasoning_effort', "
|
|
1092
|
+
"'reasoning_format', 'response_format', 'search_settings', 'seed', 'service_tier', 'stop', 'store', 'stream', '"
|
|
1093
|
+
"stream_options', 'temperature', 'ool_choice', 'tools', 'top_logprobs', 'top_p', 'user'), frozen=True, slots=Fa"
|
|
1094
|
+
"lse, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='messages', kw"
|
|
1095
|
+
"_only=True, fn=None), ReprPlan.Field(name='model', kw_only=True, fn=None), ReprPlan.Field(name='citation_optio"
|
|
1096
|
+
"ns', kw_only=True, fn=None), ReprPlan.Field(name='compound_custom', kw_only=True, fn=None), ReprPlan.Field(nam"
|
|
1097
|
+
"e='disable_tool_validation', kw_only=True, fn=None), ReprPlan.Field(name='documents', kw_only=True, fn=None), "
|
|
1098
|
+
"ReprPlan.Field(name='frequency_penalty', kw_only=True, fn=None), ReprPlan.Field(name='include_reasoning', kw_o"
|
|
1099
|
+
"nly=True, fn=None), ReprPlan.Field(name='logit_bias', kw_only=True, fn=None), ReprPlan.Field(name='logprobs', "
|
|
1100
|
+
"kw_only=True, fn=None), ReprPlan.Field(name='max_completion_tokens', kw_only=True, fn=None), ReprPlan.Field(na"
|
|
1101
|
+
"me='n', kw_only=True, fn=None), ReprPlan.Field(name='parallel_tool_calls', kw_only=True, fn=None), ReprPlan.Fi"
|
|
1102
|
+
"eld(name='presence_penalty', kw_only=True, fn=None), ReprPlan.Field(name='reasoning_effort', kw_only=True, fn="
|
|
1103
|
+
"None), ReprPlan.Field(name='reasoning_format', kw_only=True, fn=None), ReprPlan.Field(name='response_format', "
|
|
1104
|
+
"kw_only=True, fn=None), ReprPlan.Field(name='search_settings', kw_only=True, fn=None), ReprPlan.Field(name='se"
|
|
1105
|
+
"ed', kw_only=True, fn=None), ReprPlan.Field(name='service_tier', kw_only=True, fn=None), ReprPlan.Field(name='"
|
|
1106
|
+
"stop', kw_only=True, fn=None), ReprPlan.Field(name='store', kw_only=True, fn=None), ReprPlan.Field(name='strea"
|
|
1107
|
+
"m', kw_only=True, fn=None), ReprPlan.Field(name='stream_options', kw_only=True, fn=None), ReprPlan.Field(name="
|
|
1108
|
+
"'temperature', kw_only=True, fn=None), ReprPlan.Field(name='ool_choice', kw_only=True, fn=None), ReprPlan.Fiel"
|
|
1109
|
+
"d(name='tools', kw_only=True, fn=None), ReprPlan.Field(name='top_logprobs', kw_only=True, fn=None), ReprPlan.F"
|
|
1110
|
+
"ield(name='top_p', kw_only=True, fn=None), ReprPlan.Field(name='user', kw_only=True, fn=None)), id=False, ters"
|
|
1111
|
+
"e=False, default_fn=None)))"
|
|
1112
|
+
),
|
|
1113
|
+
plan_repr_sha1='e1491e80a9c22594a08c75d1ecf8caab2dd47a88',
|
|
1071
1114
|
op_ref_idents=(
|
|
1072
1115
|
'__dataclass__init__fields__0__annotation',
|
|
1116
|
+
'__dataclass__init__fields__10__annotation',
|
|
1117
|
+
'__dataclass__init__fields__10__default',
|
|
1118
|
+
'__dataclass__init__fields__11__annotation',
|
|
1119
|
+
'__dataclass__init__fields__11__default',
|
|
1120
|
+
'__dataclass__init__fields__12__annotation',
|
|
1121
|
+
'__dataclass__init__fields__12__default',
|
|
1122
|
+
'__dataclass__init__fields__13__annotation',
|
|
1123
|
+
'__dataclass__init__fields__13__default',
|
|
1124
|
+
'__dataclass__init__fields__14__annotation',
|
|
1125
|
+
'__dataclass__init__fields__14__default',
|
|
1126
|
+
'__dataclass__init__fields__15__annotation',
|
|
1127
|
+
'__dataclass__init__fields__15__default',
|
|
1128
|
+
'__dataclass__init__fields__16__annotation',
|
|
1129
|
+
'__dataclass__init__fields__16__default',
|
|
1130
|
+
'__dataclass__init__fields__17__annotation',
|
|
1131
|
+
'__dataclass__init__fields__17__default',
|
|
1132
|
+
'__dataclass__init__fields__18__annotation',
|
|
1133
|
+
'__dataclass__init__fields__18__default',
|
|
1134
|
+
'__dataclass__init__fields__19__annotation',
|
|
1135
|
+
'__dataclass__init__fields__19__default',
|
|
1073
1136
|
'__dataclass__init__fields__1__annotation',
|
|
1137
|
+
'__dataclass__init__fields__20__annotation',
|
|
1138
|
+
'__dataclass__init__fields__20__default',
|
|
1139
|
+
'__dataclass__init__fields__21__annotation',
|
|
1140
|
+
'__dataclass__init__fields__21__default',
|
|
1141
|
+
'__dataclass__init__fields__22__annotation',
|
|
1142
|
+
'__dataclass__init__fields__22__default',
|
|
1143
|
+
'__dataclass__init__fields__23__annotation',
|
|
1144
|
+
'__dataclass__init__fields__23__default',
|
|
1145
|
+
'__dataclass__init__fields__24__annotation',
|
|
1146
|
+
'__dataclass__init__fields__24__default',
|
|
1147
|
+
'__dataclass__init__fields__25__annotation',
|
|
1148
|
+
'__dataclass__init__fields__25__default',
|
|
1149
|
+
'__dataclass__init__fields__26__annotation',
|
|
1150
|
+
'__dataclass__init__fields__26__default',
|
|
1151
|
+
'__dataclass__init__fields__27__annotation',
|
|
1152
|
+
'__dataclass__init__fields__27__default',
|
|
1153
|
+
'__dataclass__init__fields__28__annotation',
|
|
1154
|
+
'__dataclass__init__fields__28__default',
|
|
1155
|
+
'__dataclass__init__fields__29__annotation',
|
|
1156
|
+
'__dataclass__init__fields__29__default',
|
|
1074
1157
|
'__dataclass__init__fields__2__annotation',
|
|
1075
1158
|
'__dataclass__init__fields__2__default',
|
|
1076
1159
|
'__dataclass__init__fields__3__annotation',
|
|
1077
1160
|
'__dataclass__init__fields__3__default',
|
|
1161
|
+
'__dataclass__init__fields__4__annotation',
|
|
1162
|
+
'__dataclass__init__fields__4__default',
|
|
1163
|
+
'__dataclass__init__fields__5__annotation',
|
|
1164
|
+
'__dataclass__init__fields__5__default',
|
|
1165
|
+
'__dataclass__init__fields__6__annotation',
|
|
1166
|
+
'__dataclass__init__fields__6__default',
|
|
1167
|
+
'__dataclass__init__fields__7__annotation',
|
|
1168
|
+
'__dataclass__init__fields__7__default',
|
|
1169
|
+
'__dataclass__init__fields__8__annotation',
|
|
1170
|
+
'__dataclass__init__fields__8__default',
|
|
1171
|
+
'__dataclass__init__fields__9__annotation',
|
|
1172
|
+
'__dataclass__init__fields__9__default',
|
|
1078
1173
|
),
|
|
1079
1174
|
cls_names=(
|
|
1080
|
-
('ommlds.backends.groq._marshal', '
|
|
1175
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest'),
|
|
1081
1176
|
),
|
|
1082
1177
|
)
|
|
1083
|
-
def
|
|
1178
|
+
def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
1084
1179
|
def _process_dataclass(
|
|
1085
1180
|
*,
|
|
1086
1181
|
__dataclass__cls,
|
|
1087
1182
|
__dataclass__init__fields__0__annotation,
|
|
1183
|
+
__dataclass__init__fields__10__annotation,
|
|
1184
|
+
__dataclass__init__fields__10__default,
|
|
1185
|
+
__dataclass__init__fields__11__annotation,
|
|
1186
|
+
__dataclass__init__fields__11__default,
|
|
1187
|
+
__dataclass__init__fields__12__annotation,
|
|
1188
|
+
__dataclass__init__fields__12__default,
|
|
1189
|
+
__dataclass__init__fields__13__annotation,
|
|
1190
|
+
__dataclass__init__fields__13__default,
|
|
1191
|
+
__dataclass__init__fields__14__annotation,
|
|
1192
|
+
__dataclass__init__fields__14__default,
|
|
1193
|
+
__dataclass__init__fields__15__annotation,
|
|
1194
|
+
__dataclass__init__fields__15__default,
|
|
1195
|
+
__dataclass__init__fields__16__annotation,
|
|
1196
|
+
__dataclass__init__fields__16__default,
|
|
1197
|
+
__dataclass__init__fields__17__annotation,
|
|
1198
|
+
__dataclass__init__fields__17__default,
|
|
1199
|
+
__dataclass__init__fields__18__annotation,
|
|
1200
|
+
__dataclass__init__fields__18__default,
|
|
1201
|
+
__dataclass__init__fields__19__annotation,
|
|
1202
|
+
__dataclass__init__fields__19__default,
|
|
1088
1203
|
__dataclass__init__fields__1__annotation,
|
|
1204
|
+
__dataclass__init__fields__20__annotation,
|
|
1205
|
+
__dataclass__init__fields__20__default,
|
|
1206
|
+
__dataclass__init__fields__21__annotation,
|
|
1207
|
+
__dataclass__init__fields__21__default,
|
|
1208
|
+
__dataclass__init__fields__22__annotation,
|
|
1209
|
+
__dataclass__init__fields__22__default,
|
|
1210
|
+
__dataclass__init__fields__23__annotation,
|
|
1211
|
+
__dataclass__init__fields__23__default,
|
|
1212
|
+
__dataclass__init__fields__24__annotation,
|
|
1213
|
+
__dataclass__init__fields__24__default,
|
|
1214
|
+
__dataclass__init__fields__25__annotation,
|
|
1215
|
+
__dataclass__init__fields__25__default,
|
|
1216
|
+
__dataclass__init__fields__26__annotation,
|
|
1217
|
+
__dataclass__init__fields__26__default,
|
|
1218
|
+
__dataclass__init__fields__27__annotation,
|
|
1219
|
+
__dataclass__init__fields__27__default,
|
|
1220
|
+
__dataclass__init__fields__28__annotation,
|
|
1221
|
+
__dataclass__init__fields__28__default,
|
|
1222
|
+
__dataclass__init__fields__29__annotation,
|
|
1223
|
+
__dataclass__init__fields__29__default,
|
|
1089
1224
|
__dataclass__init__fields__2__annotation,
|
|
1090
1225
|
__dataclass__init__fields__2__default,
|
|
1091
1226
|
__dataclass__init__fields__3__annotation,
|
|
1092
1227
|
__dataclass__init__fields__3__default,
|
|
1228
|
+
__dataclass__init__fields__4__annotation,
|
|
1229
|
+
__dataclass__init__fields__4__default,
|
|
1230
|
+
__dataclass__init__fields__5__annotation,
|
|
1231
|
+
__dataclass__init__fields__5__default,
|
|
1232
|
+
__dataclass__init__fields__6__annotation,
|
|
1233
|
+
__dataclass__init__fields__6__default,
|
|
1234
|
+
__dataclass__init__fields__7__annotation,
|
|
1235
|
+
__dataclass__init__fields__7__default,
|
|
1236
|
+
__dataclass__init__fields__8__annotation,
|
|
1237
|
+
__dataclass__init__fields__8__default,
|
|
1238
|
+
__dataclass__init__fields__9__annotation,
|
|
1239
|
+
__dataclass__init__fields__9__default,
|
|
1093
1240
|
__dataclass__FieldFnValidationError, # noqa
|
|
1094
1241
|
__dataclass__FieldTypeValidationError, # noqa
|
|
1095
1242
|
__dataclass__FnValidationError, # noqa
|
|
@@ -1108,10 +1255,36 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1108
1255
|
if self.__class__ is not __dataclass__cls:
|
|
1109
1256
|
raise TypeError(self)
|
|
1110
1257
|
return __dataclass__cls( # noqa
|
|
1111
|
-
|
|
1112
|
-
|
|
1258
|
+
messages=self.messages,
|
|
1259
|
+
model=self.model,
|
|
1260
|
+
citation_options=self.citation_options,
|
|
1261
|
+
compound_custom=self.compound_custom,
|
|
1262
|
+
disable_tool_validation=self.disable_tool_validation,
|
|
1263
|
+
documents=self.documents,
|
|
1264
|
+
frequency_penalty=self.frequency_penalty,
|
|
1265
|
+
include_reasoning=self.include_reasoning,
|
|
1266
|
+
logit_bias=self.logit_bias,
|
|
1113
1267
|
logprobs=self.logprobs,
|
|
1114
|
-
|
|
1268
|
+
max_completion_tokens=self.max_completion_tokens,
|
|
1269
|
+
n=self.n,
|
|
1270
|
+
parallel_tool_calls=self.parallel_tool_calls,
|
|
1271
|
+
presence_penalty=self.presence_penalty,
|
|
1272
|
+
reasoning_effort=self.reasoning_effort,
|
|
1273
|
+
reasoning_format=self.reasoning_format,
|
|
1274
|
+
response_format=self.response_format,
|
|
1275
|
+
search_settings=self.search_settings,
|
|
1276
|
+
seed=self.seed,
|
|
1277
|
+
service_tier=self.service_tier,
|
|
1278
|
+
stop=self.stop,
|
|
1279
|
+
store=self.store,
|
|
1280
|
+
stream=self.stream,
|
|
1281
|
+
stream_options=self.stream_options,
|
|
1282
|
+
temperature=self.temperature,
|
|
1283
|
+
ool_choice=self.ool_choice,
|
|
1284
|
+
tools=self.tools,
|
|
1285
|
+
top_logprobs=self.top_logprobs,
|
|
1286
|
+
top_p=self.top_p,
|
|
1287
|
+
user=self.user,
|
|
1115
1288
|
)
|
|
1116
1289
|
|
|
1117
1290
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -1125,10 +1298,36 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1125
1298
|
if self.__class__ is not other.__class__:
|
|
1126
1299
|
return NotImplemented
|
|
1127
1300
|
return (
|
|
1128
|
-
self.
|
|
1129
|
-
self.
|
|
1301
|
+
self.messages == other.messages and
|
|
1302
|
+
self.model == other.model and
|
|
1303
|
+
self.citation_options == other.citation_options and
|
|
1304
|
+
self.compound_custom == other.compound_custom and
|
|
1305
|
+
self.disable_tool_validation == other.disable_tool_validation and
|
|
1306
|
+
self.documents == other.documents and
|
|
1307
|
+
self.frequency_penalty == other.frequency_penalty and
|
|
1308
|
+
self.include_reasoning == other.include_reasoning and
|
|
1309
|
+
self.logit_bias == other.logit_bias and
|
|
1130
1310
|
self.logprobs == other.logprobs and
|
|
1131
|
-
self.
|
|
1311
|
+
self.max_completion_tokens == other.max_completion_tokens and
|
|
1312
|
+
self.n == other.n and
|
|
1313
|
+
self.parallel_tool_calls == other.parallel_tool_calls and
|
|
1314
|
+
self.presence_penalty == other.presence_penalty and
|
|
1315
|
+
self.reasoning_effort == other.reasoning_effort and
|
|
1316
|
+
self.reasoning_format == other.reasoning_format and
|
|
1317
|
+
self.response_format == other.response_format and
|
|
1318
|
+
self.search_settings == other.search_settings and
|
|
1319
|
+
self.seed == other.seed and
|
|
1320
|
+
self.service_tier == other.service_tier and
|
|
1321
|
+
self.stop == other.stop and
|
|
1322
|
+
self.store == other.store and
|
|
1323
|
+
self.stream == other.stream and
|
|
1324
|
+
self.stream_options == other.stream_options and
|
|
1325
|
+
self.temperature == other.temperature and
|
|
1326
|
+
self.ool_choice == other.ool_choice and
|
|
1327
|
+
self.tools == other.tools and
|
|
1328
|
+
self.top_logprobs == other.top_logprobs and
|
|
1329
|
+
self.top_p == other.top_p and
|
|
1330
|
+
self.user == other.user
|
|
1132
1331
|
)
|
|
1133
1332
|
|
|
1134
1333
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -1137,10 +1336,36 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1137
1336
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1138
1337
|
|
|
1139
1338
|
__dataclass___setattr_frozen_fields = {
|
|
1140
|
-
'
|
|
1141
|
-
'
|
|
1339
|
+
'messages',
|
|
1340
|
+
'model',
|
|
1341
|
+
'citation_options',
|
|
1342
|
+
'compound_custom',
|
|
1343
|
+
'disable_tool_validation',
|
|
1344
|
+
'documents',
|
|
1345
|
+
'frequency_penalty',
|
|
1346
|
+
'include_reasoning',
|
|
1347
|
+
'logit_bias',
|
|
1142
1348
|
'logprobs',
|
|
1143
|
-
'
|
|
1349
|
+
'max_completion_tokens',
|
|
1350
|
+
'n',
|
|
1351
|
+
'parallel_tool_calls',
|
|
1352
|
+
'presence_penalty',
|
|
1353
|
+
'reasoning_effort',
|
|
1354
|
+
'reasoning_format',
|
|
1355
|
+
'response_format',
|
|
1356
|
+
'search_settings',
|
|
1357
|
+
'seed',
|
|
1358
|
+
'service_tier',
|
|
1359
|
+
'stop',
|
|
1360
|
+
'store',
|
|
1361
|
+
'stream',
|
|
1362
|
+
'stream_options',
|
|
1363
|
+
'temperature',
|
|
1364
|
+
'ool_choice',
|
|
1365
|
+
'tools',
|
|
1366
|
+
'top_logprobs',
|
|
1367
|
+
'top_p',
|
|
1368
|
+
'user',
|
|
1144
1369
|
}
|
|
1145
1370
|
|
|
1146
1371
|
def __setattr__(self, name, value):
|
|
@@ -1157,10 +1382,36 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1157
1382
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1158
1383
|
|
|
1159
1384
|
__dataclass___delattr_frozen_fields = {
|
|
1160
|
-
'
|
|
1161
|
-
'
|
|
1385
|
+
'messages',
|
|
1386
|
+
'model',
|
|
1387
|
+
'citation_options',
|
|
1388
|
+
'compound_custom',
|
|
1389
|
+
'disable_tool_validation',
|
|
1390
|
+
'documents',
|
|
1391
|
+
'frequency_penalty',
|
|
1392
|
+
'include_reasoning',
|
|
1393
|
+
'logit_bias',
|
|
1162
1394
|
'logprobs',
|
|
1163
|
-
'
|
|
1395
|
+
'max_completion_tokens',
|
|
1396
|
+
'n',
|
|
1397
|
+
'parallel_tool_calls',
|
|
1398
|
+
'presence_penalty',
|
|
1399
|
+
'reasoning_effort',
|
|
1400
|
+
'reasoning_format',
|
|
1401
|
+
'response_format',
|
|
1402
|
+
'search_settings',
|
|
1403
|
+
'seed',
|
|
1404
|
+
'service_tier',
|
|
1405
|
+
'stop',
|
|
1406
|
+
'store',
|
|
1407
|
+
'stream',
|
|
1408
|
+
'stream_options',
|
|
1409
|
+
'temperature',
|
|
1410
|
+
'ool_choice',
|
|
1411
|
+
'tools',
|
|
1412
|
+
'top_logprobs',
|
|
1413
|
+
'top_p',
|
|
1414
|
+
'user',
|
|
1164
1415
|
}
|
|
1165
1416
|
|
|
1166
1417
|
def __delattr__(self, name):
|
|
@@ -1178,10 +1429,36 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1178
1429
|
|
|
1179
1430
|
def __hash__(self):
|
|
1180
1431
|
return hash((
|
|
1181
|
-
self.
|
|
1182
|
-
self.
|
|
1432
|
+
self.messages,
|
|
1433
|
+
self.model,
|
|
1434
|
+
self.citation_options,
|
|
1435
|
+
self.compound_custom,
|
|
1436
|
+
self.disable_tool_validation,
|
|
1437
|
+
self.documents,
|
|
1438
|
+
self.frequency_penalty,
|
|
1439
|
+
self.include_reasoning,
|
|
1440
|
+
self.logit_bias,
|
|
1183
1441
|
self.logprobs,
|
|
1184
|
-
self.
|
|
1442
|
+
self.max_completion_tokens,
|
|
1443
|
+
self.n,
|
|
1444
|
+
self.parallel_tool_calls,
|
|
1445
|
+
self.presence_penalty,
|
|
1446
|
+
self.reasoning_effort,
|
|
1447
|
+
self.reasoning_format,
|
|
1448
|
+
self.response_format,
|
|
1449
|
+
self.search_settings,
|
|
1450
|
+
self.seed,
|
|
1451
|
+
self.service_tier,
|
|
1452
|
+
self.stop,
|
|
1453
|
+
self.store,
|
|
1454
|
+
self.stream,
|
|
1455
|
+
self.stream_options,
|
|
1456
|
+
self.temperature,
|
|
1457
|
+
self.ool_choice,
|
|
1458
|
+
self.tools,
|
|
1459
|
+
self.top_logprobs,
|
|
1460
|
+
self.top_p,
|
|
1461
|
+
self.user,
|
|
1185
1462
|
))
|
|
1186
1463
|
|
|
1187
1464
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -1190,15 +1467,67 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1190
1467
|
def __init__(
|
|
1191
1468
|
self,
|
|
1192
1469
|
*,
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1470
|
+
messages: __dataclass__init__fields__0__annotation,
|
|
1471
|
+
model: __dataclass__init__fields__1__annotation,
|
|
1472
|
+
citation_options: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1473
|
+
compound_custom: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1474
|
+
disable_tool_validation: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1475
|
+
documents: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
1476
|
+
frequency_penalty: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
1477
|
+
include_reasoning: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
1478
|
+
logit_bias: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
1479
|
+
logprobs: __dataclass__init__fields__9__annotation = __dataclass__init__fields__9__default,
|
|
1480
|
+
max_completion_tokens: __dataclass__init__fields__10__annotation = __dataclass__init__fields__10__default,
|
|
1481
|
+
n: __dataclass__init__fields__11__annotation = __dataclass__init__fields__11__default,
|
|
1482
|
+
parallel_tool_calls: __dataclass__init__fields__12__annotation = __dataclass__init__fields__12__default,
|
|
1483
|
+
presence_penalty: __dataclass__init__fields__13__annotation = __dataclass__init__fields__13__default,
|
|
1484
|
+
reasoning_effort: __dataclass__init__fields__14__annotation = __dataclass__init__fields__14__default,
|
|
1485
|
+
reasoning_format: __dataclass__init__fields__15__annotation = __dataclass__init__fields__15__default,
|
|
1486
|
+
response_format: __dataclass__init__fields__16__annotation = __dataclass__init__fields__16__default,
|
|
1487
|
+
search_settings: __dataclass__init__fields__17__annotation = __dataclass__init__fields__17__default,
|
|
1488
|
+
seed: __dataclass__init__fields__18__annotation = __dataclass__init__fields__18__default,
|
|
1489
|
+
service_tier: __dataclass__init__fields__19__annotation = __dataclass__init__fields__19__default,
|
|
1490
|
+
stop: __dataclass__init__fields__20__annotation = __dataclass__init__fields__20__default,
|
|
1491
|
+
store: __dataclass__init__fields__21__annotation = __dataclass__init__fields__21__default,
|
|
1492
|
+
stream: __dataclass__init__fields__22__annotation = __dataclass__init__fields__22__default,
|
|
1493
|
+
stream_options: __dataclass__init__fields__23__annotation = __dataclass__init__fields__23__default,
|
|
1494
|
+
temperature: __dataclass__init__fields__24__annotation = __dataclass__init__fields__24__default,
|
|
1495
|
+
ool_choice: __dataclass__init__fields__25__annotation = __dataclass__init__fields__25__default,
|
|
1496
|
+
tools: __dataclass__init__fields__26__annotation = __dataclass__init__fields__26__default,
|
|
1497
|
+
top_logprobs: __dataclass__init__fields__27__annotation = __dataclass__init__fields__27__default,
|
|
1498
|
+
top_p: __dataclass__init__fields__28__annotation = __dataclass__init__fields__28__default,
|
|
1499
|
+
user: __dataclass__init__fields__29__annotation = __dataclass__init__fields__29__default,
|
|
1197
1500
|
) -> __dataclass__None:
|
|
1198
|
-
__dataclass__object_setattr(self, '
|
|
1199
|
-
__dataclass__object_setattr(self, '
|
|
1501
|
+
__dataclass__object_setattr(self, 'messages', messages)
|
|
1502
|
+
__dataclass__object_setattr(self, 'model', model)
|
|
1503
|
+
__dataclass__object_setattr(self, 'citation_options', citation_options)
|
|
1504
|
+
__dataclass__object_setattr(self, 'compound_custom', compound_custom)
|
|
1505
|
+
__dataclass__object_setattr(self, 'disable_tool_validation', disable_tool_validation)
|
|
1506
|
+
__dataclass__object_setattr(self, 'documents', documents)
|
|
1507
|
+
__dataclass__object_setattr(self, 'frequency_penalty', frequency_penalty)
|
|
1508
|
+
__dataclass__object_setattr(self, 'include_reasoning', include_reasoning)
|
|
1509
|
+
__dataclass__object_setattr(self, 'logit_bias', logit_bias)
|
|
1200
1510
|
__dataclass__object_setattr(self, 'logprobs', logprobs)
|
|
1201
|
-
__dataclass__object_setattr(self, '
|
|
1511
|
+
__dataclass__object_setattr(self, 'max_completion_tokens', max_completion_tokens)
|
|
1512
|
+
__dataclass__object_setattr(self, 'n', n)
|
|
1513
|
+
__dataclass__object_setattr(self, 'parallel_tool_calls', parallel_tool_calls)
|
|
1514
|
+
__dataclass__object_setattr(self, 'presence_penalty', presence_penalty)
|
|
1515
|
+
__dataclass__object_setattr(self, 'reasoning_effort', reasoning_effort)
|
|
1516
|
+
__dataclass__object_setattr(self, 'reasoning_format', reasoning_format)
|
|
1517
|
+
__dataclass__object_setattr(self, 'response_format', response_format)
|
|
1518
|
+
__dataclass__object_setattr(self, 'search_settings', search_settings)
|
|
1519
|
+
__dataclass__object_setattr(self, 'seed', seed)
|
|
1520
|
+
__dataclass__object_setattr(self, 'service_tier', service_tier)
|
|
1521
|
+
__dataclass__object_setattr(self, 'stop', stop)
|
|
1522
|
+
__dataclass__object_setattr(self, 'store', store)
|
|
1523
|
+
__dataclass__object_setattr(self, 'stream', stream)
|
|
1524
|
+
__dataclass__object_setattr(self, 'stream_options', stream_options)
|
|
1525
|
+
__dataclass__object_setattr(self, 'temperature', temperature)
|
|
1526
|
+
__dataclass__object_setattr(self, 'ool_choice', ool_choice)
|
|
1527
|
+
__dataclass__object_setattr(self, 'tools', tools)
|
|
1528
|
+
__dataclass__object_setattr(self, 'top_logprobs', top_logprobs)
|
|
1529
|
+
__dataclass__object_setattr(self, 'top_p', top_p)
|
|
1530
|
+
__dataclass__object_setattr(self, 'user', user)
|
|
1202
1531
|
|
|
1203
1532
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1204
1533
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -1208,10 +1537,36 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1208
1537
|
@__dataclass___recursive_repr()
|
|
1209
1538
|
def __repr__(self):
|
|
1210
1539
|
parts = []
|
|
1211
|
-
parts.append(f"
|
|
1212
|
-
parts.append(f"
|
|
1540
|
+
parts.append(f"messages={self.messages!r}")
|
|
1541
|
+
parts.append(f"model={self.model!r}")
|
|
1542
|
+
parts.append(f"citation_options={self.citation_options!r}")
|
|
1543
|
+
parts.append(f"compound_custom={self.compound_custom!r}")
|
|
1544
|
+
parts.append(f"disable_tool_validation={self.disable_tool_validation!r}")
|
|
1545
|
+
parts.append(f"documents={self.documents!r}")
|
|
1546
|
+
parts.append(f"frequency_penalty={self.frequency_penalty!r}")
|
|
1547
|
+
parts.append(f"include_reasoning={self.include_reasoning!r}")
|
|
1548
|
+
parts.append(f"logit_bias={self.logit_bias!r}")
|
|
1213
1549
|
parts.append(f"logprobs={self.logprobs!r}")
|
|
1214
|
-
parts.append(f"
|
|
1550
|
+
parts.append(f"max_completion_tokens={self.max_completion_tokens!r}")
|
|
1551
|
+
parts.append(f"n={self.n!r}")
|
|
1552
|
+
parts.append(f"parallel_tool_calls={self.parallel_tool_calls!r}")
|
|
1553
|
+
parts.append(f"presence_penalty={self.presence_penalty!r}")
|
|
1554
|
+
parts.append(f"reasoning_effort={self.reasoning_effort!r}")
|
|
1555
|
+
parts.append(f"reasoning_format={self.reasoning_format!r}")
|
|
1556
|
+
parts.append(f"response_format={self.response_format!r}")
|
|
1557
|
+
parts.append(f"search_settings={self.search_settings!r}")
|
|
1558
|
+
parts.append(f"seed={self.seed!r}")
|
|
1559
|
+
parts.append(f"service_tier={self.service_tier!r}")
|
|
1560
|
+
parts.append(f"stop={self.stop!r}")
|
|
1561
|
+
parts.append(f"store={self.store!r}")
|
|
1562
|
+
parts.append(f"stream={self.stream!r}")
|
|
1563
|
+
parts.append(f"stream_options={self.stream_options!r}")
|
|
1564
|
+
parts.append(f"temperature={self.temperature!r}")
|
|
1565
|
+
parts.append(f"ool_choice={self.ool_choice!r}")
|
|
1566
|
+
parts.append(f"tools={self.tools!r}")
|
|
1567
|
+
parts.append(f"top_logprobs={self.top_logprobs!r}")
|
|
1568
|
+
parts.append(f"top_p={self.top_p!r}")
|
|
1569
|
+
parts.append(f"user={self.user!r}")
|
|
1215
1570
|
return (
|
|
1216
1571
|
f"{self.__class__.__qualname__}("
|
|
1217
1572
|
f"{', '.join(parts)}"
|
|
@@ -1228,49 +1583,58 @@ def _process_dataclass__467d73fbbfc4ae23999c6b11c3b9336ff3fd0745():
|
|
|
1228
1583
|
|
|
1229
1584
|
@_register(
|
|
1230
1585
|
plan_repr=(
|
|
1231
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
1232
|
-
"
|
|
1233
|
-
"
|
|
1234
|
-
"
|
|
1235
|
-
"
|
|
1236
|
-
"
|
|
1237
|
-
"'init.fields.1.annotation'), default=
|
|
1238
|
-
"
|
|
1239
|
-
"name='
|
|
1240
|
-
", override=False, field_type=FieldType.INSTANCE, coerce=
|
|
1241
|
-
"
|
|
1242
|
-
" default_factory=None, init=True, override=False,
|
|
1243
|
-
"
|
|
1244
|
-
"
|
|
1245
|
-
"
|
|
1246
|
-
"
|
|
1247
|
-
"
|
|
1586
|
+
"Plans(tup=(CopyPlan(fields=('content', 'name', 'reasoning', 'role', 'tool_calls')), EqPlan(fields=('content', "
|
|
1587
|
+
"'name', 'reasoning', 'role', 'tool_calls')), FrozenPlan(fields=('content', 'name', 'reasoning', 'role', 'tool_"
|
|
1588
|
+
"calls'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('content', 'name', 'reasoning', 'ro"
|
|
1589
|
+
"le', 'tool_calls'), cache=False), InitPlan(fields=(InitPlan.Field(name='content', annotation=OpRef(name='init."
|
|
1590
|
+
"fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override="
|
|
1591
|
+
"False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='name'"
|
|
1592
|
+
", annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_fact"
|
|
1593
|
+
"ory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=Non"
|
|
1594
|
+
"e), InitPlan.Field(name='reasoning', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='in"
|
|
1595
|
+
"it.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce="
|
|
1596
|
+
"None, validate=None, check_type=None), InitPlan.Field(name='role', annotation=OpRef(name='init.fields.3.annota"
|
|
1597
|
+
"tion'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=False, field_ty"
|
|
1598
|
+
"pe=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='tool_calls', annotat"
|
|
1599
|
+
"ion=OpRef(name='init.fields.4.annotation'), default=OpRef(name='init.fields.4.default'), default_factory=None,"
|
|
1600
|
+
" init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self"
|
|
1601
|
+
"_param='self', std_params=(), kw_only_params=('content', 'name', 'reasoning', 'role', 'tool_calls'), frozen=Tr"
|
|
1602
|
+
"ue, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='c"
|
|
1603
|
+
"ontent', kw_only=True, fn=None), ReprPlan.Field(name='name', kw_only=True, fn=None), ReprPlan.Field(name='reas"
|
|
1604
|
+
"oning', kw_only=True, fn=None), ReprPlan.Field(name='role', kw_only=True, fn=None), ReprPlan.Field(name='tool_"
|
|
1605
|
+
"calls', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1248
1606
|
),
|
|
1249
|
-
plan_repr_sha1='
|
|
1607
|
+
plan_repr_sha1='2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29',
|
|
1250
1608
|
op_ref_idents=(
|
|
1251
1609
|
'__dataclass__init__fields__0__annotation',
|
|
1252
1610
|
'__dataclass__init__fields__0__default',
|
|
1253
1611
|
'__dataclass__init__fields__1__annotation',
|
|
1612
|
+
'__dataclass__init__fields__1__default',
|
|
1254
1613
|
'__dataclass__init__fields__2__annotation',
|
|
1255
1614
|
'__dataclass__init__fields__2__default',
|
|
1256
1615
|
'__dataclass__init__fields__3__annotation',
|
|
1257
1616
|
'__dataclass__init__fields__3__default',
|
|
1617
|
+
'__dataclass__init__fields__4__annotation',
|
|
1618
|
+
'__dataclass__init__fields__4__default',
|
|
1258
1619
|
),
|
|
1259
1620
|
cls_names=(
|
|
1260
|
-
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.
|
|
1621
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.AssistantMessage'),
|
|
1261
1622
|
),
|
|
1262
1623
|
)
|
|
1263
|
-
def
|
|
1624
|
+
def _process_dataclass__2de9ecb1f74a62bcebb0d3b0ecfb40da845e6d29():
|
|
1264
1625
|
def _process_dataclass(
|
|
1265
1626
|
*,
|
|
1266
1627
|
__dataclass__cls,
|
|
1267
1628
|
__dataclass__init__fields__0__annotation,
|
|
1268
1629
|
__dataclass__init__fields__0__default,
|
|
1269
1630
|
__dataclass__init__fields__1__annotation,
|
|
1631
|
+
__dataclass__init__fields__1__default,
|
|
1270
1632
|
__dataclass__init__fields__2__annotation,
|
|
1271
1633
|
__dataclass__init__fields__2__default,
|
|
1272
1634
|
__dataclass__init__fields__3__annotation,
|
|
1273
1635
|
__dataclass__init__fields__3__default,
|
|
1636
|
+
__dataclass__init__fields__4__annotation,
|
|
1637
|
+
__dataclass__init__fields__4__default,
|
|
1274
1638
|
__dataclass__FieldFnValidationError, # noqa
|
|
1275
1639
|
__dataclass__FieldTypeValidationError, # noqa
|
|
1276
1640
|
__dataclass__FnValidationError, # noqa
|
|
@@ -1289,10 +1653,11 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1289
1653
|
if self.__class__ is not __dataclass__cls:
|
|
1290
1654
|
raise TypeError(self)
|
|
1291
1655
|
return __dataclass__cls( # noqa
|
|
1292
|
-
|
|
1656
|
+
content=self.content,
|
|
1293
1657
|
name=self.name,
|
|
1294
|
-
|
|
1295
|
-
|
|
1658
|
+
reasoning=self.reasoning,
|
|
1659
|
+
role=self.role,
|
|
1660
|
+
tool_calls=self.tool_calls,
|
|
1296
1661
|
)
|
|
1297
1662
|
|
|
1298
1663
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -1306,10 +1671,11 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1306
1671
|
if self.__class__ is not other.__class__:
|
|
1307
1672
|
return NotImplemented
|
|
1308
1673
|
return (
|
|
1309
|
-
self.
|
|
1674
|
+
self.content == other.content and
|
|
1310
1675
|
self.name == other.name and
|
|
1311
|
-
self.
|
|
1312
|
-
self.
|
|
1676
|
+
self.reasoning == other.reasoning and
|
|
1677
|
+
self.role == other.role and
|
|
1678
|
+
self.tool_calls == other.tool_calls
|
|
1313
1679
|
)
|
|
1314
1680
|
|
|
1315
1681
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -1318,10 +1684,11 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1318
1684
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1319
1685
|
|
|
1320
1686
|
__dataclass___setattr_frozen_fields = {
|
|
1321
|
-
'
|
|
1687
|
+
'content',
|
|
1322
1688
|
'name',
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
1689
|
+
'reasoning',
|
|
1690
|
+
'role',
|
|
1691
|
+
'tool_calls',
|
|
1325
1692
|
}
|
|
1326
1693
|
|
|
1327
1694
|
def __setattr__(self, name, value):
|
|
@@ -1338,10 +1705,11 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1338
1705
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1339
1706
|
|
|
1340
1707
|
__dataclass___delattr_frozen_fields = {
|
|
1341
|
-
'
|
|
1708
|
+
'content',
|
|
1342
1709
|
'name',
|
|
1343
|
-
'
|
|
1344
|
-
'
|
|
1710
|
+
'reasoning',
|
|
1711
|
+
'role',
|
|
1712
|
+
'tool_calls',
|
|
1345
1713
|
}
|
|
1346
1714
|
|
|
1347
1715
|
def __delattr__(self, name):
|
|
@@ -1359,10 +1727,11 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1359
1727
|
|
|
1360
1728
|
def __hash__(self):
|
|
1361
1729
|
return hash((
|
|
1362
|
-
self.
|
|
1730
|
+
self.content,
|
|
1363
1731
|
self.name,
|
|
1364
|
-
self.
|
|
1365
|
-
self.
|
|
1732
|
+
self.reasoning,
|
|
1733
|
+
self.role,
|
|
1734
|
+
self.tool_calls,
|
|
1366
1735
|
))
|
|
1367
1736
|
|
|
1368
1737
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -1371,15 +1740,17 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1371
1740
|
def __init__(
|
|
1372
1741
|
self,
|
|
1373
1742
|
*,
|
|
1374
|
-
|
|
1375
|
-
name: __dataclass__init__fields__1__annotation,
|
|
1376
|
-
|
|
1377
|
-
|
|
1743
|
+
content: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1744
|
+
name: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1745
|
+
reasoning: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1746
|
+
role: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1747
|
+
tool_calls: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1378
1748
|
) -> __dataclass__None:
|
|
1379
|
-
__dataclass__object_setattr(self, '
|
|
1749
|
+
__dataclass__object_setattr(self, 'content', content)
|
|
1380
1750
|
__dataclass__object_setattr(self, 'name', name)
|
|
1381
|
-
__dataclass__object_setattr(self, '
|
|
1382
|
-
__dataclass__object_setattr(self, '
|
|
1751
|
+
__dataclass__object_setattr(self, 'reasoning', reasoning)
|
|
1752
|
+
__dataclass__object_setattr(self, 'role', role)
|
|
1753
|
+
__dataclass__object_setattr(self, 'tool_calls', tool_calls)
|
|
1383
1754
|
|
|
1384
1755
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1385
1756
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -1389,10 +1760,11 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1389
1760
|
@__dataclass___recursive_repr()
|
|
1390
1761
|
def __repr__(self):
|
|
1391
1762
|
parts = []
|
|
1392
|
-
parts.append(f"
|
|
1763
|
+
parts.append(f"content={self.content!r}")
|
|
1393
1764
|
parts.append(f"name={self.name!r}")
|
|
1394
|
-
parts.append(f"
|
|
1395
|
-
parts.append(f"
|
|
1765
|
+
parts.append(f"reasoning={self.reasoning!r}")
|
|
1766
|
+
parts.append(f"role={self.role!r}")
|
|
1767
|
+
parts.append(f"tool_calls={self.tool_calls!r}")
|
|
1396
1768
|
return (
|
|
1397
1769
|
f"{self.__class__.__qualname__}("
|
|
1398
1770
|
f"{', '.join(parts)}"
|
|
@@ -1409,48 +1781,39 @@ def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
|
1409
1781
|
|
|
1410
1782
|
@_register(
|
|
1411
1783
|
plan_repr=(
|
|
1412
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
1413
|
-
"
|
|
1414
|
-
"
|
|
1415
|
-
"
|
|
1416
|
-
"
|
|
1417
|
-
"
|
|
1418
|
-
"
|
|
1419
|
-
"
|
|
1420
|
-
".
|
|
1421
|
-
"
|
|
1422
|
-
"
|
|
1423
|
-
"=
|
|
1424
|
-
"
|
|
1425
|
-
"date_fns=()), ReprPlan(fields=(ReprPlan.Field(name='index', kw_only=True, fn=None), ReprPlan.Field(name='id', "
|
|
1426
|
-
"kw_only=True, fn=None), ReprPlan.Field(name='function', kw_only=True, fn=None), ReprPlan.Field(name='type', kw"
|
|
1427
|
-
"_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1784
|
+
"Plans(tup=(CopyPlan(fields=('function', 'id', 'type')), EqPlan(fields=('function', 'id', 'type')), FrozenPlan("
|
|
1785
|
+
"fields=('function', 'id', 'type'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('function"
|
|
1786
|
+
"', 'id', 'type'), cache=False), InitPlan(fields=(InitPlan.Field(name='function', annotation=OpRef(name='init.f"
|
|
1787
|
+
"ields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
1788
|
+
"ANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='id', annotation=OpRef(name='init.fiel"
|
|
1789
|
+
"ds.1.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANC"
|
|
1790
|
+
"E, coerce=None, validate=None, check_type=None), InitPlan.Field(name='type', annotation=OpRef(name='init.field"
|
|
1791
|
+
"s.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False"
|
|
1792
|
+
", field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params="
|
|
1793
|
+
"(), kw_only_params=('function', 'id', 'type'), frozen=True, slots=False, post_init_params=None, init_fns=(), v"
|
|
1794
|
+
"alidate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='function', kw_only=True, fn=None), ReprPlan.Field(name="
|
|
1795
|
+
"'id', kw_only=True, fn=None), ReprPlan.Field(name='type', kw_only=True, fn=None)), id=False, terse=False, defa"
|
|
1796
|
+
"ult_fn=None)))"
|
|
1428
1797
|
),
|
|
1429
|
-
plan_repr_sha1='
|
|
1798
|
+
plan_repr_sha1='9a547257d5667228bf1cc9153bb81540dd355566',
|
|
1430
1799
|
op_ref_idents=(
|
|
1431
1800
|
'__dataclass__init__fields__0__annotation',
|
|
1432
1801
|
'__dataclass__init__fields__1__annotation',
|
|
1433
|
-
'__dataclass__init__fields__1__default',
|
|
1434
1802
|
'__dataclass__init__fields__2__annotation',
|
|
1435
1803
|
'__dataclass__init__fields__2__default',
|
|
1436
|
-
'__dataclass__init__fields__3__annotation',
|
|
1437
|
-
'__dataclass__init__fields__3__default',
|
|
1438
1804
|
),
|
|
1439
1805
|
cls_names=(
|
|
1440
|
-
('ommlds.backends.groq._marshal', '
|
|
1806
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.AssistantMessage.ToolCall'),
|
|
1441
1807
|
),
|
|
1442
1808
|
)
|
|
1443
|
-
def
|
|
1809
|
+
def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
1444
1810
|
def _process_dataclass(
|
|
1445
1811
|
*,
|
|
1446
1812
|
__dataclass__cls,
|
|
1447
1813
|
__dataclass__init__fields__0__annotation,
|
|
1448
1814
|
__dataclass__init__fields__1__annotation,
|
|
1449
|
-
__dataclass__init__fields__1__default,
|
|
1450
1815
|
__dataclass__init__fields__2__annotation,
|
|
1451
1816
|
__dataclass__init__fields__2__default,
|
|
1452
|
-
__dataclass__init__fields__3__annotation,
|
|
1453
|
-
__dataclass__init__fields__3__default,
|
|
1454
1817
|
__dataclass__FieldFnValidationError, # noqa
|
|
1455
1818
|
__dataclass__FieldTypeValidationError, # noqa
|
|
1456
1819
|
__dataclass__FnValidationError, # noqa
|
|
@@ -1469,9 +1832,8 @@ def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
|
1469
1832
|
if self.__class__ is not __dataclass__cls:
|
|
1470
1833
|
raise TypeError(self)
|
|
1471
1834
|
return __dataclass__cls( # noqa
|
|
1472
|
-
index=self.index,
|
|
1473
|
-
id=self.id,
|
|
1474
1835
|
function=self.function,
|
|
1836
|
+
id=self.id,
|
|
1475
1837
|
type=self.type,
|
|
1476
1838
|
)
|
|
1477
1839
|
|
|
@@ -1486,9 +1848,8 @@ def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
|
1486
1848
|
if self.__class__ is not other.__class__:
|
|
1487
1849
|
return NotImplemented
|
|
1488
1850
|
return (
|
|
1489
|
-
self.index == other.index and
|
|
1490
|
-
self.id == other.id and
|
|
1491
1851
|
self.function == other.function and
|
|
1852
|
+
self.id == other.id and
|
|
1492
1853
|
self.type == other.type
|
|
1493
1854
|
)
|
|
1494
1855
|
|
|
@@ -1498,9 +1859,8 @@ def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
|
1498
1859
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1499
1860
|
|
|
1500
1861
|
__dataclass___setattr_frozen_fields = {
|
|
1501
|
-
'index',
|
|
1502
|
-
'id',
|
|
1503
1862
|
'function',
|
|
1863
|
+
'id',
|
|
1504
1864
|
'type',
|
|
1505
1865
|
}
|
|
1506
1866
|
|
|
@@ -1518,9 +1878,8 @@ def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
|
1518
1878
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1519
1879
|
|
|
1520
1880
|
__dataclass___delattr_frozen_fields = {
|
|
1521
|
-
'index',
|
|
1522
|
-
'id',
|
|
1523
1881
|
'function',
|
|
1882
|
+
'id',
|
|
1524
1883
|
'type',
|
|
1525
1884
|
}
|
|
1526
1885
|
|
|
@@ -1539,9 +1898,8 @@ def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
|
1539
1898
|
|
|
1540
1899
|
def __hash__(self):
|
|
1541
1900
|
return hash((
|
|
1542
|
-
self.index,
|
|
1543
|
-
self.id,
|
|
1544
1901
|
self.function,
|
|
1902
|
+
self.id,
|
|
1545
1903
|
self.type,
|
|
1546
1904
|
))
|
|
1547
1905
|
|
|
@@ -1551,14 +1909,12 @@ def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
|
1551
1909
|
def __init__(
|
|
1552
1910
|
self,
|
|
1553
1911
|
*,
|
|
1554
|
-
|
|
1555
|
-
id: __dataclass__init__fields__1__annotation
|
|
1556
|
-
|
|
1557
|
-
type: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1912
|
+
function: __dataclass__init__fields__0__annotation,
|
|
1913
|
+
id: __dataclass__init__fields__1__annotation,
|
|
1914
|
+
type: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1558
1915
|
) -> __dataclass__None:
|
|
1559
|
-
__dataclass__object_setattr(self, 'index', index)
|
|
1560
|
-
__dataclass__object_setattr(self, 'id', id)
|
|
1561
1916
|
__dataclass__object_setattr(self, 'function', function)
|
|
1917
|
+
__dataclass__object_setattr(self, 'id', id)
|
|
1562
1918
|
__dataclass__object_setattr(self, 'type', type)
|
|
1563
1919
|
|
|
1564
1920
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
@@ -1569,9 +1925,8 @@ def _process_dataclass__60dd172cc10b3281c0cf9cea0a9cccff26bad0f2():
|
|
|
1569
1925
|
@__dataclass___recursive_repr()
|
|
1570
1926
|
def __repr__(self):
|
|
1571
1927
|
parts = []
|
|
1572
|
-
parts.append(f"index={self.index!r}")
|
|
1573
|
-
parts.append(f"id={self.id!r}")
|
|
1574
1928
|
parts.append(f"function={self.function!r}")
|
|
1929
|
+
parts.append(f"id={self.id!r}")
|
|
1575
1930
|
parts.append(f"type={self.type!r}")
|
|
1576
1931
|
return (
|
|
1577
1932
|
f"{self.__class__.__qualname__}("
|
|
@@ -1738,39 +2093,21 @@ def _process_dataclass__74d1fa47dc3c867f85203a9e43e792c7b1202dab():
|
|
|
1738
2093
|
|
|
1739
2094
|
@_register(
|
|
1740
2095
|
plan_repr=(
|
|
1741
|
-
"Plans(tup=(CopyPlan(fields=(
|
|
1742
|
-
"
|
|
1743
|
-
"
|
|
1744
|
-
"
|
|
1745
|
-
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='function', annotation=OpRef(name='init.fiel"
|
|
1746
|
-
"ds.1.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANC"
|
|
1747
|
-
"E, coerce=None, validate=None, check_type=None), InitPlan.Field(name='type', annotation=OpRef(name='init.field"
|
|
1748
|
-
"s.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False"
|
|
1749
|
-
", field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params="
|
|
1750
|
-
"(), kw_only_params=('id', 'function', 'type'), frozen=True, slots=False, post_init_params=None, init_fns=(), v"
|
|
1751
|
-
"alidate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='id', kw_only=True, fn=None), ReprPlan.Field(name='funct"
|
|
1752
|
-
"ion', kw_only=True, fn=None), ReprPlan.Field(name='type', kw_only=True, fn=None)), id=False, terse=False, defa"
|
|
1753
|
-
"ult_fn=None)))"
|
|
1754
|
-
),
|
|
1755
|
-
plan_repr_sha1='7cd19137ccf16704c343ecf64cbb8bbbe65a626b',
|
|
1756
|
-
op_ref_idents=(
|
|
1757
|
-
'__dataclass__init__fields__0__annotation',
|
|
1758
|
-
'__dataclass__init__fields__1__annotation',
|
|
1759
|
-
'__dataclass__init__fields__2__annotation',
|
|
1760
|
-
'__dataclass__init__fields__2__default',
|
|
2096
|
+
"Plans(tup=(CopyPlan(fields=()), EqPlan(fields=()), FrozenPlan(fields=(), allow_dynamic_dunder_attrs=False), Ha"
|
|
2097
|
+
"shPlan(action='add', fields=(), cache=False), InitPlan(fields=(), self_param='self', std_params=(), kw_only_pa"
|
|
2098
|
+
"rams=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(), i"
|
|
2099
|
+
"d=False, terse=False, default_fn=None)))"
|
|
1761
2100
|
),
|
|
2101
|
+
plan_repr_sha1='e1f7edfe11f2b721d6a656c46e698fedc95461bb',
|
|
2102
|
+
op_ref_idents=(),
|
|
1762
2103
|
cls_names=(
|
|
1763
|
-
('ommlds.backends.groq._marshal', '
|
|
2104
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.Message'),
|
|
1764
2105
|
),
|
|
1765
2106
|
)
|
|
1766
|
-
def
|
|
2107
|
+
def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
1767
2108
|
def _process_dataclass(
|
|
1768
2109
|
*,
|
|
1769
2110
|
__dataclass__cls,
|
|
1770
|
-
__dataclass__init__fields__0__annotation,
|
|
1771
|
-
__dataclass__init__fields__1__annotation,
|
|
1772
|
-
__dataclass__init__fields__2__annotation,
|
|
1773
|
-
__dataclass__init__fields__2__default,
|
|
1774
2111
|
__dataclass__FieldFnValidationError, # noqa
|
|
1775
2112
|
__dataclass__FieldTypeValidationError, # noqa
|
|
1776
2113
|
__dataclass__FnValidationError, # noqa
|
|
@@ -1788,11 +2125,7 @@ def _process_dataclass__7cd19137ccf16704c343ecf64cbb8bbbe65a626b():
|
|
|
1788
2125
|
def __copy__(self):
|
|
1789
2126
|
if self.__class__ is not __dataclass__cls:
|
|
1790
2127
|
raise TypeError(self)
|
|
1791
|
-
return __dataclass__cls( # noqa
|
|
1792
|
-
id=self.id,
|
|
1793
|
-
function=self.function,
|
|
1794
|
-
type=self.type,
|
|
1795
|
-
)
|
|
2128
|
+
return __dataclass__cls() # noqa
|
|
1796
2129
|
|
|
1797
2130
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1798
2131
|
if '__copy__' in __dataclass__cls.__dict__:
|
|
@@ -1804,27 +2137,16 @@ def _process_dataclass__7cd19137ccf16704c343ecf64cbb8bbbe65a626b():
|
|
|
1804
2137
|
return True
|
|
1805
2138
|
if self.__class__ is not other.__class__:
|
|
1806
2139
|
return NotImplemented
|
|
1807
|
-
return
|
|
1808
|
-
self.id == other.id and
|
|
1809
|
-
self.function == other.function and
|
|
1810
|
-
self.type == other.type
|
|
1811
|
-
)
|
|
2140
|
+
return True
|
|
1812
2141
|
|
|
1813
2142
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1814
2143
|
if '__eq__' in __dataclass__cls.__dict__:
|
|
1815
2144
|
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1816
2145
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1817
2146
|
|
|
1818
|
-
__dataclass___setattr_frozen_fields = {
|
|
1819
|
-
'id',
|
|
1820
|
-
'function',
|
|
1821
|
-
'type',
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
2147
|
def __setattr__(self, name, value):
|
|
1825
2148
|
if (
|
|
1826
2149
|
type(self) is __dataclass__cls
|
|
1827
|
-
or name in __dataclass___setattr_frozen_fields
|
|
1828
2150
|
):
|
|
1829
2151
|
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1830
2152
|
super(__dataclass__cls, self).__setattr__(name, value)
|
|
@@ -1834,16 +2156,9 @@ def _process_dataclass__7cd19137ccf16704c343ecf64cbb8bbbe65a626b():
|
|
|
1834
2156
|
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1835
2157
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1836
2158
|
|
|
1837
|
-
__dataclass___delattr_frozen_fields = {
|
|
1838
|
-
'id',
|
|
1839
|
-
'function',
|
|
1840
|
-
'type',
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
2159
|
def __delattr__(self, name):
|
|
1844
2160
|
if (
|
|
1845
2161
|
type(self) is __dataclass__cls
|
|
1846
|
-
or name in __dataclass___delattr_frozen_fields
|
|
1847
2162
|
):
|
|
1848
2163
|
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1849
2164
|
super(__dataclass__cls, self).__delattr__(name)
|
|
@@ -1854,25 +2169,15 @@ def _process_dataclass__7cd19137ccf16704c343ecf64cbb8bbbe65a626b():
|
|
|
1854
2169
|
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1855
2170
|
|
|
1856
2171
|
def __hash__(self):
|
|
1857
|
-
return hash((
|
|
1858
|
-
self.id,
|
|
1859
|
-
self.function,
|
|
1860
|
-
self.type,
|
|
1861
|
-
))
|
|
2172
|
+
return hash(())
|
|
1862
2173
|
|
|
1863
2174
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1864
2175
|
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1865
2176
|
|
|
1866
2177
|
def __init__(
|
|
1867
2178
|
self,
|
|
1868
|
-
*,
|
|
1869
|
-
id: __dataclass__init__fields__0__annotation,
|
|
1870
|
-
function: __dataclass__init__fields__1__annotation,
|
|
1871
|
-
type: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1872
2179
|
) -> __dataclass__None:
|
|
1873
|
-
|
|
1874
|
-
__dataclass__object_setattr(self, 'function', function)
|
|
1875
|
-
__dataclass__object_setattr(self, 'type', type)
|
|
2180
|
+
pass
|
|
1876
2181
|
|
|
1877
2182
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1878
2183
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -1882,9 +2187,6 @@ def _process_dataclass__7cd19137ccf16704c343ecf64cbb8bbbe65a626b():
|
|
|
1882
2187
|
@__dataclass___recursive_repr()
|
|
1883
2188
|
def __repr__(self):
|
|
1884
2189
|
parts = []
|
|
1885
|
-
parts.append(f"id={self.id!r}")
|
|
1886
|
-
parts.append(f"function={self.function!r}")
|
|
1887
|
-
parts.append(f"type={self.type!r}")
|
|
1888
2190
|
return (
|
|
1889
2191
|
f"{self.__class__.__qualname__}("
|
|
1890
2192
|
f"{', '.join(parts)}"
|
|
@@ -1901,66 +2203,42 @@ def _process_dataclass__7cd19137ccf16704c343ecf64cbb8bbbe65a626b():
|
|
|
1901
2203
|
|
|
1902
2204
|
@_register(
|
|
1903
2205
|
plan_repr=(
|
|
1904
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
1905
|
-
"
|
|
1906
|
-
"
|
|
1907
|
-
"
|
|
1908
|
-
"
|
|
1909
|
-
".
|
|
1910
|
-
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='
|
|
1911
|
-
"
|
|
1912
|
-
"=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=
|
|
1913
|
-
"
|
|
1914
|
-
"
|
|
1915
|
-
"
|
|
1916
|
-
"
|
|
1917
|
-
"ield_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='role', annota"
|
|
1918
|
-
"tion=OpRef(name='init.fields.4.annotation'), default=OpRef(name='init.fields.4.default'), default_factory=None"
|
|
1919
|
-
", init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), Init"
|
|
1920
|
-
"Plan.Field(name='tool_calls', annotation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fiel"
|
|
1921
|
-
"ds.5.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, v"
|
|
1922
|
-
"alidate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('annotations', 'content', '"
|
|
1923
|
-
"executed_tools', 'reasoning', 'role', 'tool_calls'), frozen=True, slots=False, post_init_params=None, init_fns"
|
|
1924
|
-
"=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='annotations', kw_only=True, fn=None), ReprPlan.Fi"
|
|
1925
|
-
"eld(name='content', kw_only=True, fn=None), ReprPlan.Field(name='executed_tools', kw_only=True, fn=None), Repr"
|
|
1926
|
-
"Plan.Field(name='reasoning', kw_only=True, fn=None), ReprPlan.Field(name='role', kw_only=True, fn=None), ReprP"
|
|
1927
|
-
"lan.Field(name='tool_calls', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2206
|
+
"Plans(tup=(CopyPlan(fields=('content', 'name', 'role')), EqPlan(fields=('content', 'name', 'role')), FrozenPla"
|
|
2207
|
+
"n(fields=('content', 'name', 'role'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('conte"
|
|
2208
|
+
"nt', 'name', 'role'), cache=False), InitPlan(fields=(InitPlan.Field(name='content', annotation=OpRef(name='ini"
|
|
2209
|
+
"t.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.I"
|
|
2210
|
+
"NSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='name', annotation=OpRef(name='init"
|
|
2211
|
+
".fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True, override"
|
|
2212
|
+
"=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='role"
|
|
2213
|
+
"', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_fac"
|
|
2214
|
+
"tory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=No"
|
|
2215
|
+
"ne)), self_param='self', std_params=(), kw_only_params=('content', 'name', 'role'), frozen=True, slots=False, "
|
|
2216
|
+
"post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='content', kw_only="
|
|
2217
|
+
"True, fn=None), ReprPlan.Field(name='name', kw_only=True, fn=None), ReprPlan.Field(name='role', kw_only=True, "
|
|
2218
|
+
"fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1928
2219
|
),
|
|
1929
|
-
plan_repr_sha1='
|
|
2220
|
+
plan_repr_sha1='949874790b7bd392e18566e3aaeab60bc9f5b3ca',
|
|
1930
2221
|
op_ref_idents=(
|
|
1931
2222
|
'__dataclass__init__fields__0__annotation',
|
|
1932
|
-
'__dataclass__init__fields__0__default',
|
|
1933
2223
|
'__dataclass__init__fields__1__annotation',
|
|
1934
2224
|
'__dataclass__init__fields__1__default',
|
|
1935
2225
|
'__dataclass__init__fields__2__annotation',
|
|
1936
2226
|
'__dataclass__init__fields__2__default',
|
|
1937
|
-
'__dataclass__init__fields__3__annotation',
|
|
1938
|
-
'__dataclass__init__fields__3__default',
|
|
1939
|
-
'__dataclass__init__fields__4__annotation',
|
|
1940
|
-
'__dataclass__init__fields__4__default',
|
|
1941
|
-
'__dataclass__init__fields__5__annotation',
|
|
1942
|
-
'__dataclass__init__fields__5__default',
|
|
1943
2227
|
),
|
|
1944
2228
|
cls_names=(
|
|
1945
|
-
('ommlds.backends.groq._marshal', '
|
|
2229
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.SystemMessage'),
|
|
2230
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.UserMessage'),
|
|
1946
2231
|
),
|
|
1947
2232
|
)
|
|
1948
|
-
def
|
|
2233
|
+
def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
1949
2234
|
def _process_dataclass(
|
|
1950
2235
|
*,
|
|
1951
2236
|
__dataclass__cls,
|
|
1952
2237
|
__dataclass__init__fields__0__annotation,
|
|
1953
|
-
__dataclass__init__fields__0__default,
|
|
1954
2238
|
__dataclass__init__fields__1__annotation,
|
|
1955
2239
|
__dataclass__init__fields__1__default,
|
|
1956
2240
|
__dataclass__init__fields__2__annotation,
|
|
1957
2241
|
__dataclass__init__fields__2__default,
|
|
1958
|
-
__dataclass__init__fields__3__annotation,
|
|
1959
|
-
__dataclass__init__fields__3__default,
|
|
1960
|
-
__dataclass__init__fields__4__annotation,
|
|
1961
|
-
__dataclass__init__fields__4__default,
|
|
1962
|
-
__dataclass__init__fields__5__annotation,
|
|
1963
|
-
__dataclass__init__fields__5__default,
|
|
1964
2242
|
__dataclass__FieldFnValidationError, # noqa
|
|
1965
2243
|
__dataclass__FieldTypeValidationError, # noqa
|
|
1966
2244
|
__dataclass__FnValidationError, # noqa
|
|
@@ -1979,12 +2257,9 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
1979
2257
|
if self.__class__ is not __dataclass__cls:
|
|
1980
2258
|
raise TypeError(self)
|
|
1981
2259
|
return __dataclass__cls( # noqa
|
|
1982
|
-
annotations=self.annotations,
|
|
1983
2260
|
content=self.content,
|
|
1984
|
-
|
|
1985
|
-
reasoning=self.reasoning,
|
|
2261
|
+
name=self.name,
|
|
1986
2262
|
role=self.role,
|
|
1987
|
-
tool_calls=self.tool_calls,
|
|
1988
2263
|
)
|
|
1989
2264
|
|
|
1990
2265
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -1998,12 +2273,9 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
1998
2273
|
if self.__class__ is not other.__class__:
|
|
1999
2274
|
return NotImplemented
|
|
2000
2275
|
return (
|
|
2001
|
-
self.annotations == other.annotations and
|
|
2002
2276
|
self.content == other.content and
|
|
2003
|
-
self.
|
|
2004
|
-
self.
|
|
2005
|
-
self.role == other.role and
|
|
2006
|
-
self.tool_calls == other.tool_calls
|
|
2277
|
+
self.name == other.name and
|
|
2278
|
+
self.role == other.role
|
|
2007
2279
|
)
|
|
2008
2280
|
|
|
2009
2281
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2012,12 +2284,9 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
2012
2284
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2013
2285
|
|
|
2014
2286
|
__dataclass___setattr_frozen_fields = {
|
|
2015
|
-
'annotations',
|
|
2016
2287
|
'content',
|
|
2017
|
-
'
|
|
2018
|
-
'reasoning',
|
|
2288
|
+
'name',
|
|
2019
2289
|
'role',
|
|
2020
|
-
'tool_calls',
|
|
2021
2290
|
}
|
|
2022
2291
|
|
|
2023
2292
|
def __setattr__(self, name, value):
|
|
@@ -2034,12 +2303,9 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
2034
2303
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2035
2304
|
|
|
2036
2305
|
__dataclass___delattr_frozen_fields = {
|
|
2037
|
-
'annotations',
|
|
2038
2306
|
'content',
|
|
2039
|
-
'
|
|
2040
|
-
'reasoning',
|
|
2307
|
+
'name',
|
|
2041
2308
|
'role',
|
|
2042
|
-
'tool_calls',
|
|
2043
2309
|
}
|
|
2044
2310
|
|
|
2045
2311
|
def __delattr__(self, name):
|
|
@@ -2057,12 +2323,9 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
2057
2323
|
|
|
2058
2324
|
def __hash__(self):
|
|
2059
2325
|
return hash((
|
|
2060
|
-
self.annotations,
|
|
2061
2326
|
self.content,
|
|
2062
|
-
self.
|
|
2063
|
-
self.reasoning,
|
|
2327
|
+
self.name,
|
|
2064
2328
|
self.role,
|
|
2065
|
-
self.tool_calls,
|
|
2066
2329
|
))
|
|
2067
2330
|
|
|
2068
2331
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2071,19 +2334,13 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
2071
2334
|
def __init__(
|
|
2072
2335
|
self,
|
|
2073
2336
|
*,
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
reasoning: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
2078
|
-
role: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
2079
|
-
tool_calls: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
2337
|
+
content: __dataclass__init__fields__0__annotation,
|
|
2338
|
+
name: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
2339
|
+
role: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
2080
2340
|
) -> __dataclass__None:
|
|
2081
|
-
__dataclass__object_setattr(self, 'annotations', annotations)
|
|
2082
2341
|
__dataclass__object_setattr(self, 'content', content)
|
|
2083
|
-
__dataclass__object_setattr(self, '
|
|
2084
|
-
__dataclass__object_setattr(self, 'reasoning', reasoning)
|
|
2342
|
+
__dataclass__object_setattr(self, 'name', name)
|
|
2085
2343
|
__dataclass__object_setattr(self, 'role', role)
|
|
2086
|
-
__dataclass__object_setattr(self, 'tool_calls', tool_calls)
|
|
2087
2344
|
|
|
2088
2345
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2089
2346
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2093,12 +2350,9 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
2093
2350
|
@__dataclass___recursive_repr()
|
|
2094
2351
|
def __repr__(self):
|
|
2095
2352
|
parts = []
|
|
2096
|
-
parts.append(f"annotations={self.annotations!r}")
|
|
2097
2353
|
parts.append(f"content={self.content!r}")
|
|
2098
|
-
parts.append(f"
|
|
2099
|
-
parts.append(f"reasoning={self.reasoning!r}")
|
|
2354
|
+
parts.append(f"name={self.name!r}")
|
|
2100
2355
|
parts.append(f"role={self.role!r}")
|
|
2101
|
-
parts.append(f"tool_calls={self.tool_calls!r}")
|
|
2102
2356
|
return (
|
|
2103
2357
|
f"{self.__class__.__qualname__}("
|
|
2104
2358
|
f"{', '.join(parts)}"
|
|
@@ -2115,42 +2369,34 @@ def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
|
2115
2369
|
|
|
2116
2370
|
@_register(
|
|
2117
2371
|
plan_repr=(
|
|
2118
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2119
|
-
"
|
|
2120
|
-
"
|
|
2121
|
-
"
|
|
2122
|
-
"
|
|
2123
|
-
"
|
|
2124
|
-
"
|
|
2125
|
-
"',
|
|
2126
|
-
"
|
|
2127
|
-
"ne)),
|
|
2128
|
-
"post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='content', kw_only="
|
|
2129
|
-
"True, fn=None), ReprPlan.Field(name='name', kw_only=True, fn=None), ReprPlan.Field(name='role', kw_only=True, "
|
|
2130
|
-
"fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2372
|
+
"Plans(tup=(CopyPlan(fields=('function', 'type')), EqPlan(fields=('function', 'type')), FrozenPlan(fields=('fun"
|
|
2373
|
+
"ction', 'type'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('function', 'type'), cache="
|
|
2374
|
+
"False), InitPlan(fields=(InitPlan.Field(name='function', annotation=OpRef(name='init.fields.0.annotation'), de"
|
|
2375
|
+
"fault=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, valid"
|
|
2376
|
+
"ate=None, check_type=None), InitPlan.Field(name='type', annotation=OpRef(name='init.fields.1.annotation'), def"
|
|
2377
|
+
"ault=OpRef(name='init.fields.1.default'), default_factory=None, init=True, override=False, field_type=FieldTyp"
|
|
2378
|
+
"e.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('"
|
|
2379
|
+
"function', 'type'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(f"
|
|
2380
|
+
"ields=(ReprPlan.Field(name='function', kw_only=True, fn=None), ReprPlan.Field(name='type', kw_only=True, fn=No"
|
|
2381
|
+
"ne)), id=False, terse=False, default_fn=None)))"
|
|
2131
2382
|
),
|
|
2132
|
-
plan_repr_sha1='
|
|
2383
|
+
plan_repr_sha1='bd6ded8da6444356e49af8ebb589982d11d87580',
|
|
2133
2384
|
op_ref_idents=(
|
|
2134
2385
|
'__dataclass__init__fields__0__annotation',
|
|
2135
2386
|
'__dataclass__init__fields__1__annotation',
|
|
2136
2387
|
'__dataclass__init__fields__1__default',
|
|
2137
|
-
'__dataclass__init__fields__2__annotation',
|
|
2138
|
-
'__dataclass__init__fields__2__default',
|
|
2139
2388
|
),
|
|
2140
2389
|
cls_names=(
|
|
2141
|
-
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.
|
|
2142
|
-
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.UserMessage'),
|
|
2390
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.Tool'),
|
|
2143
2391
|
),
|
|
2144
2392
|
)
|
|
2145
|
-
def
|
|
2393
|
+
def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
2146
2394
|
def _process_dataclass(
|
|
2147
2395
|
*,
|
|
2148
2396
|
__dataclass__cls,
|
|
2149
2397
|
__dataclass__init__fields__0__annotation,
|
|
2150
2398
|
__dataclass__init__fields__1__annotation,
|
|
2151
2399
|
__dataclass__init__fields__1__default,
|
|
2152
|
-
__dataclass__init__fields__2__annotation,
|
|
2153
|
-
__dataclass__init__fields__2__default,
|
|
2154
2400
|
__dataclass__FieldFnValidationError, # noqa
|
|
2155
2401
|
__dataclass__FieldTypeValidationError, # noqa
|
|
2156
2402
|
__dataclass__FnValidationError, # noqa
|
|
@@ -2169,9 +2415,8 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2169
2415
|
if self.__class__ is not __dataclass__cls:
|
|
2170
2416
|
raise TypeError(self)
|
|
2171
2417
|
return __dataclass__cls( # noqa
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
role=self.role,
|
|
2418
|
+
function=self.function,
|
|
2419
|
+
type=self.type,
|
|
2175
2420
|
)
|
|
2176
2421
|
|
|
2177
2422
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2185,9 +2430,8 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2185
2430
|
if self.__class__ is not other.__class__:
|
|
2186
2431
|
return NotImplemented
|
|
2187
2432
|
return (
|
|
2188
|
-
self.
|
|
2189
|
-
self.
|
|
2190
|
-
self.role == other.role
|
|
2433
|
+
self.function == other.function and
|
|
2434
|
+
self.type == other.type
|
|
2191
2435
|
)
|
|
2192
2436
|
|
|
2193
2437
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2196,9 +2440,8 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2196
2440
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2197
2441
|
|
|
2198
2442
|
__dataclass___setattr_frozen_fields = {
|
|
2199
|
-
'
|
|
2200
|
-
'
|
|
2201
|
-
'role',
|
|
2443
|
+
'function',
|
|
2444
|
+
'type',
|
|
2202
2445
|
}
|
|
2203
2446
|
|
|
2204
2447
|
def __setattr__(self, name, value):
|
|
@@ -2215,9 +2458,8 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2215
2458
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2216
2459
|
|
|
2217
2460
|
__dataclass___delattr_frozen_fields = {
|
|
2218
|
-
'
|
|
2219
|
-
'
|
|
2220
|
-
'role',
|
|
2461
|
+
'function',
|
|
2462
|
+
'type',
|
|
2221
2463
|
}
|
|
2222
2464
|
|
|
2223
2465
|
def __delattr__(self, name):
|
|
@@ -2235,9 +2477,8 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2235
2477
|
|
|
2236
2478
|
def __hash__(self):
|
|
2237
2479
|
return hash((
|
|
2238
|
-
self.
|
|
2239
|
-
self.
|
|
2240
|
-
self.role,
|
|
2480
|
+
self.function,
|
|
2481
|
+
self.type,
|
|
2241
2482
|
))
|
|
2242
2483
|
|
|
2243
2484
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2246,13 +2487,11 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2246
2487
|
def __init__(
|
|
2247
2488
|
self,
|
|
2248
2489
|
*,
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
role: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
2490
|
+
function: __dataclass__init__fields__0__annotation,
|
|
2491
|
+
type: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
2252
2492
|
) -> __dataclass__None:
|
|
2253
|
-
__dataclass__object_setattr(self, '
|
|
2254
|
-
__dataclass__object_setattr(self, '
|
|
2255
|
-
__dataclass__object_setattr(self, 'role', role)
|
|
2493
|
+
__dataclass__object_setattr(self, 'function', function)
|
|
2494
|
+
__dataclass__object_setattr(self, 'type', type)
|
|
2256
2495
|
|
|
2257
2496
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2258
2497
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2262,9 +2501,8 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2262
2501
|
@__dataclass___recursive_repr()
|
|
2263
2502
|
def __repr__(self):
|
|
2264
2503
|
parts = []
|
|
2265
|
-
parts.append(f"
|
|
2266
|
-
parts.append(f"
|
|
2267
|
-
parts.append(f"role={self.role!r}")
|
|
2504
|
+
parts.append(f"function={self.function!r}")
|
|
2505
|
+
parts.append(f"type={self.type!r}")
|
|
2268
2506
|
return (
|
|
2269
2507
|
f"{self.__class__.__qualname__}("
|
|
2270
2508
|
f"{', '.join(parts)}"
|
|
@@ -2281,39 +2519,49 @@ def _process_dataclass__949874790b7bd392e18566e3aaeab60bc9f5b3ca():
|
|
|
2281
2519
|
|
|
2282
2520
|
@_register(
|
|
2283
2521
|
plan_repr=(
|
|
2284
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2285
|
-
"
|
|
2286
|
-
"', '
|
|
2287
|
-
"
|
|
2288
|
-
"
|
|
2289
|
-
"
|
|
2290
|
-
"
|
|
2291
|
-
"
|
|
2292
|
-
"
|
|
2293
|
-
"
|
|
2294
|
-
"
|
|
2295
|
-
"
|
|
2296
|
-
"
|
|
2522
|
+
"Plans(tup=(CopyPlan(fields=('description', 'name', 'parameters', 'strict')), EqPlan(fields=('description', 'na"
|
|
2523
|
+
"me', 'parameters', 'strict')), FrozenPlan(fields=('description', 'name', 'parameters', 'strict'), allow_dynami"
|
|
2524
|
+
"c_dunder_attrs=False), HashPlan(action='add', fields=('description', 'name', 'parameters', 'strict'), cache=Fa"
|
|
2525
|
+
"lse), InitPlan(fields=(InitPlan.Field(name='description', annotation=OpRef(name='init.fields.0.annotation'), d"
|
|
2526
|
+
"efault=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldT"
|
|
2527
|
+
"ype.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='name', annotation=OpRef(name="
|
|
2528
|
+
"'init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldTy"
|
|
2529
|
+
"pe.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='parameters', annotation=OpRef("
|
|
2530
|
+
"name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True"
|
|
2531
|
+
", override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field("
|
|
2532
|
+
"name='strict', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'),"
|
|
2533
|
+
" default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, c"
|
|
2534
|
+
"heck_type=None)), self_param='self', std_params=(), kw_only_params=('description', 'name', 'parameters', 'stri"
|
|
2535
|
+
"ct'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPla"
|
|
2536
|
+
"n.Field(name='description', kw_only=True, fn=None), ReprPlan.Field(name='name', kw_only=True, fn=None), ReprPl"
|
|
2537
|
+
"an.Field(name='parameters', kw_only=True, fn=None), ReprPlan.Field(name='strict', kw_only=True, fn=None)), id="
|
|
2538
|
+
"False, terse=False, default_fn=None)))"
|
|
2297
2539
|
),
|
|
2298
|
-
plan_repr_sha1='
|
|
2540
|
+
plan_repr_sha1='4ed9c56354a4cd79fa0c26411404bbac3a601050',
|
|
2299
2541
|
op_ref_idents=(
|
|
2300
2542
|
'__dataclass__init__fields__0__annotation',
|
|
2543
|
+
'__dataclass__init__fields__0__default',
|
|
2301
2544
|
'__dataclass__init__fields__1__annotation',
|
|
2302
2545
|
'__dataclass__init__fields__2__annotation',
|
|
2303
2546
|
'__dataclass__init__fields__2__default',
|
|
2547
|
+
'__dataclass__init__fields__3__annotation',
|
|
2548
|
+
'__dataclass__init__fields__3__default',
|
|
2304
2549
|
),
|
|
2305
2550
|
cls_names=(
|
|
2306
|
-
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.
|
|
2551
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.Tool.Function'),
|
|
2307
2552
|
),
|
|
2308
2553
|
)
|
|
2309
|
-
def
|
|
2554
|
+
def _process_dataclass__4ed9c56354a4cd79fa0c26411404bbac3a601050():
|
|
2310
2555
|
def _process_dataclass(
|
|
2311
2556
|
*,
|
|
2312
2557
|
__dataclass__cls,
|
|
2313
2558
|
__dataclass__init__fields__0__annotation,
|
|
2559
|
+
__dataclass__init__fields__0__default,
|
|
2314
2560
|
__dataclass__init__fields__1__annotation,
|
|
2315
2561
|
__dataclass__init__fields__2__annotation,
|
|
2316
2562
|
__dataclass__init__fields__2__default,
|
|
2563
|
+
__dataclass__init__fields__3__annotation,
|
|
2564
|
+
__dataclass__init__fields__3__default,
|
|
2317
2565
|
__dataclass__FieldFnValidationError, # noqa
|
|
2318
2566
|
__dataclass__FieldTypeValidationError, # noqa
|
|
2319
2567
|
__dataclass__FnValidationError, # noqa
|
|
@@ -2332,9 +2580,10 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2332
2580
|
if self.__class__ is not __dataclass__cls:
|
|
2333
2581
|
raise TypeError(self)
|
|
2334
2582
|
return __dataclass__cls( # noqa
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2583
|
+
description=self.description,
|
|
2584
|
+
name=self.name,
|
|
2585
|
+
parameters=self.parameters,
|
|
2586
|
+
strict=self.strict,
|
|
2338
2587
|
)
|
|
2339
2588
|
|
|
2340
2589
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2348,9 +2597,10 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2348
2597
|
if self.__class__ is not other.__class__:
|
|
2349
2598
|
return NotImplemented
|
|
2350
2599
|
return (
|
|
2351
|
-
self.
|
|
2352
|
-
self.
|
|
2353
|
-
self.
|
|
2600
|
+
self.description == other.description and
|
|
2601
|
+
self.name == other.name and
|
|
2602
|
+
self.parameters == other.parameters and
|
|
2603
|
+
self.strict == other.strict
|
|
2354
2604
|
)
|
|
2355
2605
|
|
|
2356
2606
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2359,9 +2609,10 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2359
2609
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2360
2610
|
|
|
2361
2611
|
__dataclass___setattr_frozen_fields = {
|
|
2362
|
-
'
|
|
2363
|
-
'
|
|
2364
|
-
'
|
|
2612
|
+
'description',
|
|
2613
|
+
'name',
|
|
2614
|
+
'parameters',
|
|
2615
|
+
'strict',
|
|
2365
2616
|
}
|
|
2366
2617
|
|
|
2367
2618
|
def __setattr__(self, name, value):
|
|
@@ -2378,9 +2629,10 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2378
2629
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2379
2630
|
|
|
2380
2631
|
__dataclass___delattr_frozen_fields = {
|
|
2381
|
-
'
|
|
2382
|
-
'
|
|
2383
|
-
'
|
|
2632
|
+
'description',
|
|
2633
|
+
'name',
|
|
2634
|
+
'parameters',
|
|
2635
|
+
'strict',
|
|
2384
2636
|
}
|
|
2385
2637
|
|
|
2386
2638
|
def __delattr__(self, name):
|
|
@@ -2398,9 +2650,10 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2398
2650
|
|
|
2399
2651
|
def __hash__(self):
|
|
2400
2652
|
return hash((
|
|
2401
|
-
self.
|
|
2402
|
-
self.
|
|
2403
|
-
self.
|
|
2653
|
+
self.description,
|
|
2654
|
+
self.name,
|
|
2655
|
+
self.parameters,
|
|
2656
|
+
self.strict,
|
|
2404
2657
|
))
|
|
2405
2658
|
|
|
2406
2659
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2409,13 +2662,15 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2409
2662
|
def __init__(
|
|
2410
2663
|
self,
|
|
2411
2664
|
*,
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2665
|
+
description: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
2666
|
+
name: __dataclass__init__fields__1__annotation,
|
|
2667
|
+
parameters: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
2668
|
+
strict: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
2415
2669
|
) -> __dataclass__None:
|
|
2416
|
-
__dataclass__object_setattr(self, '
|
|
2417
|
-
__dataclass__object_setattr(self, '
|
|
2418
|
-
__dataclass__object_setattr(self, '
|
|
2670
|
+
__dataclass__object_setattr(self, 'description', description)
|
|
2671
|
+
__dataclass__object_setattr(self, 'name', name)
|
|
2672
|
+
__dataclass__object_setattr(self, 'parameters', parameters)
|
|
2673
|
+
__dataclass__object_setattr(self, 'strict', strict)
|
|
2419
2674
|
|
|
2420
2675
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2421
2676
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2425,9 +2680,10 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2425
2680
|
@__dataclass___recursive_repr()
|
|
2426
2681
|
def __repr__(self):
|
|
2427
2682
|
parts = []
|
|
2428
|
-
parts.append(f"
|
|
2429
|
-
parts.append(f"
|
|
2430
|
-
parts.append(f"
|
|
2683
|
+
parts.append(f"description={self.description!r}")
|
|
2684
|
+
parts.append(f"name={self.name!r}")
|
|
2685
|
+
parts.append(f"parameters={self.parameters!r}")
|
|
2686
|
+
parts.append(f"strict={self.strict!r}")
|
|
2431
2687
|
return (
|
|
2432
2688
|
f"{self.__class__.__qualname__}("
|
|
2433
2689
|
f"{', '.join(parts)}"
|
|
@@ -2444,34 +2700,39 @@ def _process_dataclass__9a547257d5667228bf1cc9153bb81540dd355566():
|
|
|
2444
2700
|
|
|
2445
2701
|
@_register(
|
|
2446
2702
|
plan_repr=(
|
|
2447
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2448
|
-
"
|
|
2449
|
-
"False), InitPlan(fields=(InitPlan.Field(name='
|
|
2450
|
-
"
|
|
2451
|
-
"
|
|
2452
|
-
"
|
|
2453
|
-
"
|
|
2454
|
-
"
|
|
2455
|
-
"
|
|
2456
|
-
"
|
|
2703
|
+
"Plans(tup=(CopyPlan(fields=('content', 'role', 'tool_call_id')), EqPlan(fields=('content', 'role', 'tool_call_"
|
|
2704
|
+
"id')), FrozenPlan(fields=('content', 'role', 'tool_call_id'), allow_dynamic_dunder_attrs=False), HashPlan(acti"
|
|
2705
|
+
"on='add', fields=('content', 'role', 'tool_call_id'), cache=False), InitPlan(fields=(InitPlan.Field(name='cont"
|
|
2706
|
+
"ent', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, overri"
|
|
2707
|
+
"de=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='ro"
|
|
2708
|
+
"le', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_f"
|
|
2709
|
+
"actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
|
|
2710
|
+
"None), InitPlan.Field(name='tool_call_id', annotation=OpRef(name='init.fields.2.annotation'), default=None, de"
|
|
2711
|
+
"fault_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, chec"
|
|
2712
|
+
"k_type=None)), self_param='self', std_params=(), kw_only_params=('content', 'role', 'tool_call_id'), frozen=Tr"
|
|
2713
|
+
"ue, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='c"
|
|
2714
|
+
"ontent', kw_only=True, fn=None), ReprPlan.Field(name='role', kw_only=True, fn=None), ReprPlan.Field(name='tool"
|
|
2715
|
+
"_call_id', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2457
2716
|
),
|
|
2458
|
-
plan_repr_sha1='
|
|
2717
|
+
plan_repr_sha1='18ba47404a1fa13e445ea63b3aea366cf6d89a2f',
|
|
2459
2718
|
op_ref_idents=(
|
|
2460
2719
|
'__dataclass__init__fields__0__annotation',
|
|
2461
2720
|
'__dataclass__init__fields__1__annotation',
|
|
2462
2721
|
'__dataclass__init__fields__1__default',
|
|
2722
|
+
'__dataclass__init__fields__2__annotation',
|
|
2463
2723
|
),
|
|
2464
2724
|
cls_names=(
|
|
2465
|
-
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.
|
|
2725
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionRequest.ToolMessage'),
|
|
2466
2726
|
),
|
|
2467
2727
|
)
|
|
2468
|
-
def
|
|
2728
|
+
def _process_dataclass__18ba47404a1fa13e445ea63b3aea366cf6d89a2f():
|
|
2469
2729
|
def _process_dataclass(
|
|
2470
2730
|
*,
|
|
2471
2731
|
__dataclass__cls,
|
|
2472
2732
|
__dataclass__init__fields__0__annotation,
|
|
2473
2733
|
__dataclass__init__fields__1__annotation,
|
|
2474
2734
|
__dataclass__init__fields__1__default,
|
|
2735
|
+
__dataclass__init__fields__2__annotation,
|
|
2475
2736
|
__dataclass__FieldFnValidationError, # noqa
|
|
2476
2737
|
__dataclass__FieldTypeValidationError, # noqa
|
|
2477
2738
|
__dataclass__FnValidationError, # noqa
|
|
@@ -2490,8 +2751,9 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2490
2751
|
if self.__class__ is not __dataclass__cls:
|
|
2491
2752
|
raise TypeError(self)
|
|
2492
2753
|
return __dataclass__cls( # noqa
|
|
2493
|
-
|
|
2494
|
-
|
|
2754
|
+
content=self.content,
|
|
2755
|
+
role=self.role,
|
|
2756
|
+
tool_call_id=self.tool_call_id,
|
|
2495
2757
|
)
|
|
2496
2758
|
|
|
2497
2759
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2505,8 +2767,9 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2505
2767
|
if self.__class__ is not other.__class__:
|
|
2506
2768
|
return NotImplemented
|
|
2507
2769
|
return (
|
|
2508
|
-
self.
|
|
2509
|
-
self.
|
|
2770
|
+
self.content == other.content and
|
|
2771
|
+
self.role == other.role and
|
|
2772
|
+
self.tool_call_id == other.tool_call_id
|
|
2510
2773
|
)
|
|
2511
2774
|
|
|
2512
2775
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2515,8 +2778,9 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2515
2778
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2516
2779
|
|
|
2517
2780
|
__dataclass___setattr_frozen_fields = {
|
|
2518
|
-
'
|
|
2519
|
-
'
|
|
2781
|
+
'content',
|
|
2782
|
+
'role',
|
|
2783
|
+
'tool_call_id',
|
|
2520
2784
|
}
|
|
2521
2785
|
|
|
2522
2786
|
def __setattr__(self, name, value):
|
|
@@ -2533,8 +2797,9 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2533
2797
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2534
2798
|
|
|
2535
2799
|
__dataclass___delattr_frozen_fields = {
|
|
2536
|
-
'
|
|
2537
|
-
'
|
|
2800
|
+
'content',
|
|
2801
|
+
'role',
|
|
2802
|
+
'tool_call_id',
|
|
2538
2803
|
}
|
|
2539
2804
|
|
|
2540
2805
|
def __delattr__(self, name):
|
|
@@ -2552,8 +2817,9 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2552
2817
|
|
|
2553
2818
|
def __hash__(self):
|
|
2554
2819
|
return hash((
|
|
2555
|
-
self.
|
|
2556
|
-
self.
|
|
2820
|
+
self.content,
|
|
2821
|
+
self.role,
|
|
2822
|
+
self.tool_call_id,
|
|
2557
2823
|
))
|
|
2558
2824
|
|
|
2559
2825
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2562,11 +2828,13 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2562
2828
|
def __init__(
|
|
2563
2829
|
self,
|
|
2564
2830
|
*,
|
|
2565
|
-
|
|
2566
|
-
|
|
2831
|
+
content: __dataclass__init__fields__0__annotation,
|
|
2832
|
+
role: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
2833
|
+
tool_call_id: __dataclass__init__fields__2__annotation,
|
|
2567
2834
|
) -> __dataclass__None:
|
|
2568
|
-
__dataclass__object_setattr(self, '
|
|
2569
|
-
__dataclass__object_setattr(self, '
|
|
2835
|
+
__dataclass__object_setattr(self, 'content', content)
|
|
2836
|
+
__dataclass__object_setattr(self, 'role', role)
|
|
2837
|
+
__dataclass__object_setattr(self, 'tool_call_id', tool_call_id)
|
|
2570
2838
|
|
|
2571
2839
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2572
2840
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2576,8 +2844,9 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2576
2844
|
@__dataclass___recursive_repr()
|
|
2577
2845
|
def __repr__(self):
|
|
2578
2846
|
parts = []
|
|
2579
|
-
parts.append(f"
|
|
2580
|
-
parts.append(f"
|
|
2847
|
+
parts.append(f"content={self.content!r}")
|
|
2848
|
+
parts.append(f"role={self.role!r}")
|
|
2849
|
+
parts.append(f"tool_call_id={self.tool_call_id!r}")
|
|
2581
2850
|
return (
|
|
2582
2851
|
f"{self.__class__.__qualname__}("
|
|
2583
2852
|
f"{', '.join(parts)}"
|
|
@@ -2594,36 +2863,84 @@ def _process_dataclass__bd6ded8da6444356e49af8ebb589982d11d87580():
|
|
|
2594
2863
|
|
|
2595
2864
|
@_register(
|
|
2596
2865
|
plan_repr=(
|
|
2597
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2598
|
-
"
|
|
2599
|
-
"
|
|
2600
|
-
"
|
|
2601
|
-
"
|
|
2602
|
-
"
|
|
2603
|
-
"
|
|
2604
|
-
"
|
|
2605
|
-
"
|
|
2606
|
-
"
|
|
2866
|
+
"Plans(tup=(CopyPlan(fields=('choices', 'created', 'id', 'model', 'object', 'system_fingerprint', 'usage', 'usa"
|
|
2867
|
+
"ge_breakdown', 'x_groq', 'service_tier')), EqPlan(fields=('choices', 'created', 'id', 'model', 'object', 'syst"
|
|
2868
|
+
"em_fingerprint', 'usage', 'usage_breakdown', 'x_groq', 'service_tier')), FrozenPlan(fields=('choices', 'create"
|
|
2869
|
+
"d', 'id', 'model', 'object', 'system_fingerprint', 'usage', 'usage_breakdown', 'x_groq', 'service_tier'), allo"
|
|
2870
|
+
"w_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('choices', 'created', 'id', 'model', 'object', '"
|
|
2871
|
+
"system_fingerprint', 'usage', 'usage_breakdown', 'x_groq', 'service_tier'), cache=False), InitPlan(fields=(Ini"
|
|
2872
|
+
"tPlan.Field(name='choices', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=N"
|
|
2873
|
+
"one, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), I"
|
|
2874
|
+
"nitPlan.Field(name='created', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory"
|
|
2875
|
+
"=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),"
|
|
2876
|
+
" InitPlan.Field(name='id', annotation=OpRef(name='init.fields.2.annotation'), default=None, default_factory=No"
|
|
2877
|
+
"ne, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), In"
|
|
2878
|
+
"itPlan.Field(name='model', annotation=OpRef(name='init.fields.3.annotation'), default=None, default_factory=No"
|
|
2879
|
+
"ne, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), In"
|
|
2880
|
+
"itPlan.Field(name='object', annotation=OpRef(name='init.fields.4.annotation'), default=OpRef(name='init.fields"
|
|
2881
|
+
".4.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, val"
|
|
2882
|
+
"idate=None, check_type=None), InitPlan.Field(name='system_fingerprint', annotation=OpRef(name='init.fields.5.a"
|
|
2883
|
+
"nnotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coe"
|
|
2884
|
+
"rce=None, validate=None, check_type=None), InitPlan.Field(name='usage', annotation=OpRef(name='init.fields.6.a"
|
|
2885
|
+
"nnotation'), default=OpRef(name='init.fields.6.default'), default_factory=None, init=True, override=False, fie"
|
|
2886
|
+
"ld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='usage_breakdown"
|
|
2887
|
+
"', annotation=OpRef(name='init.fields.7.annotation'), default=OpRef(name='init.fields.7.default'), default_fac"
|
|
2888
|
+
"tory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=No"
|
|
2889
|
+
"ne), InitPlan.Field(name='x_groq', annotation=OpRef(name='init.fields.8.annotation'), default=OpRef(name='init"
|
|
2890
|
+
".fields.8.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=No"
|
|
2891
|
+
"ne, validate=None, check_type=None), InitPlan.Field(name='service_tier', annotation=OpRef(name='init.fields.9."
|
|
2892
|
+
"annotation'), default=OpRef(name='init.fields.9.default'), default_factory=None, init=True, override=False, fi"
|
|
2893
|
+
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), "
|
|
2894
|
+
"kw_only_params=('choices', 'created', 'id', 'model', 'object', 'system_fingerprint', 'usage', 'usage_breakdown"
|
|
2895
|
+
"', 'x_groq', 'service_tier'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), "
|
|
2896
|
+
"ReprPlan(fields=(ReprPlan.Field(name='choices', kw_only=True, fn=None), ReprPlan.Field(name='created', kw_only"
|
|
2897
|
+
"=True, fn=None), ReprPlan.Field(name='id', kw_only=True, fn=None), ReprPlan.Field(name='model', kw_only=True, "
|
|
2898
|
+
"fn=None), ReprPlan.Field(name='object', kw_only=True, fn=None), ReprPlan.Field(name='system_fingerprint', kw_o"
|
|
2899
|
+
"nly=True, fn=None), ReprPlan.Field(name='usage', kw_only=True, fn=None), ReprPlan.Field(name='usage_breakdown'"
|
|
2900
|
+
", kw_only=True, fn=None), ReprPlan.Field(name='x_groq', kw_only=True, fn=None), ReprPlan.Field(name='service_t"
|
|
2901
|
+
"ier', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2607
2902
|
),
|
|
2608
|
-
plan_repr_sha1='
|
|
2903
|
+
plan_repr_sha1='22f83c20a81ad41b49ccfde5256b25d3df3dd90c',
|
|
2609
2904
|
op_ref_idents=(
|
|
2610
2905
|
'__dataclass__init__fields__0__annotation',
|
|
2611
|
-
'__dataclass__init__fields__0__default',
|
|
2612
2906
|
'__dataclass__init__fields__1__annotation',
|
|
2613
|
-
'
|
|
2907
|
+
'__dataclass__init__fields__2__annotation',
|
|
2908
|
+
'__dataclass__init__fields__3__annotation',
|
|
2909
|
+
'__dataclass__init__fields__4__annotation',
|
|
2910
|
+
'__dataclass__init__fields__4__default',
|
|
2911
|
+
'__dataclass__init__fields__5__annotation',
|
|
2912
|
+
'__dataclass__init__fields__6__annotation',
|
|
2913
|
+
'__dataclass__init__fields__6__default',
|
|
2914
|
+
'__dataclass__init__fields__7__annotation',
|
|
2915
|
+
'__dataclass__init__fields__7__default',
|
|
2916
|
+
'__dataclass__init__fields__8__annotation',
|
|
2917
|
+
'__dataclass__init__fields__8__default',
|
|
2918
|
+
'__dataclass__init__fields__9__annotation',
|
|
2919
|
+
'__dataclass__init__fields__9__default',
|
|
2614
2920
|
),
|
|
2615
2921
|
cls_names=(
|
|
2616
|
-
('ommlds.backends.groq._marshal', '
|
|
2922
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionResponse'),
|
|
2617
2923
|
),
|
|
2618
2924
|
)
|
|
2619
|
-
def
|
|
2925
|
+
def _process_dataclass__22f83c20a81ad41b49ccfde5256b25d3df3dd90c():
|
|
2620
2926
|
def _process_dataclass(
|
|
2621
2927
|
*,
|
|
2622
2928
|
__dataclass__cls,
|
|
2623
2929
|
__dataclass__init__fields__0__annotation,
|
|
2624
|
-
__dataclass__init__fields__0__default,
|
|
2625
2930
|
__dataclass__init__fields__1__annotation,
|
|
2626
|
-
|
|
2931
|
+
__dataclass__init__fields__2__annotation,
|
|
2932
|
+
__dataclass__init__fields__3__annotation,
|
|
2933
|
+
__dataclass__init__fields__4__annotation,
|
|
2934
|
+
__dataclass__init__fields__4__default,
|
|
2935
|
+
__dataclass__init__fields__5__annotation,
|
|
2936
|
+
__dataclass__init__fields__6__annotation,
|
|
2937
|
+
__dataclass__init__fields__6__default,
|
|
2938
|
+
__dataclass__init__fields__7__annotation,
|
|
2939
|
+
__dataclass__init__fields__7__default,
|
|
2940
|
+
__dataclass__init__fields__8__annotation,
|
|
2941
|
+
__dataclass__init__fields__8__default,
|
|
2942
|
+
__dataclass__init__fields__9__annotation,
|
|
2943
|
+
__dataclass__init__fields__9__default,
|
|
2627
2944
|
__dataclass__FieldFnValidationError, # noqa
|
|
2628
2945
|
__dataclass__FieldTypeValidationError, # noqa
|
|
2629
2946
|
__dataclass__FnValidationError, # noqa
|
|
@@ -2642,8 +2959,16 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2642
2959
|
if self.__class__ is not __dataclass__cls:
|
|
2643
2960
|
raise TypeError(self)
|
|
2644
2961
|
return __dataclass__cls( # noqa
|
|
2645
|
-
|
|
2646
|
-
|
|
2962
|
+
choices=self.choices,
|
|
2963
|
+
created=self.created,
|
|
2964
|
+
id=self.id,
|
|
2965
|
+
model=self.model,
|
|
2966
|
+
object=self.object,
|
|
2967
|
+
system_fingerprint=self.system_fingerprint,
|
|
2968
|
+
usage=self.usage,
|
|
2969
|
+
usage_breakdown=self.usage_breakdown,
|
|
2970
|
+
x_groq=self.x_groq,
|
|
2971
|
+
service_tier=self.service_tier,
|
|
2647
2972
|
)
|
|
2648
2973
|
|
|
2649
2974
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2657,8 +2982,16 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2657
2982
|
if self.__class__ is not other.__class__:
|
|
2658
2983
|
return NotImplemented
|
|
2659
2984
|
return (
|
|
2660
|
-
self.
|
|
2661
|
-
self.
|
|
2985
|
+
self.choices == other.choices and
|
|
2986
|
+
self.created == other.created and
|
|
2987
|
+
self.id == other.id and
|
|
2988
|
+
self.model == other.model and
|
|
2989
|
+
self.object == other.object and
|
|
2990
|
+
self.system_fingerprint == other.system_fingerprint and
|
|
2991
|
+
self.usage == other.usage and
|
|
2992
|
+
self.usage_breakdown == other.usage_breakdown and
|
|
2993
|
+
self.x_groq == other.x_groq and
|
|
2994
|
+
self.service_tier == other.service_tier
|
|
2662
2995
|
)
|
|
2663
2996
|
|
|
2664
2997
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2667,8 +3000,16 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2667
3000
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2668
3001
|
|
|
2669
3002
|
__dataclass___setattr_frozen_fields = {
|
|
2670
|
-
'
|
|
2671
|
-
'
|
|
3003
|
+
'choices',
|
|
3004
|
+
'created',
|
|
3005
|
+
'id',
|
|
3006
|
+
'model',
|
|
3007
|
+
'object',
|
|
3008
|
+
'system_fingerprint',
|
|
3009
|
+
'usage',
|
|
3010
|
+
'usage_breakdown',
|
|
3011
|
+
'x_groq',
|
|
3012
|
+
'service_tier',
|
|
2672
3013
|
}
|
|
2673
3014
|
|
|
2674
3015
|
def __setattr__(self, name, value):
|
|
@@ -2685,8 +3026,16 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2685
3026
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2686
3027
|
|
|
2687
3028
|
__dataclass___delattr_frozen_fields = {
|
|
2688
|
-
'
|
|
2689
|
-
'
|
|
3029
|
+
'choices',
|
|
3030
|
+
'created',
|
|
3031
|
+
'id',
|
|
3032
|
+
'model',
|
|
3033
|
+
'object',
|
|
3034
|
+
'system_fingerprint',
|
|
3035
|
+
'usage',
|
|
3036
|
+
'usage_breakdown',
|
|
3037
|
+
'x_groq',
|
|
3038
|
+
'service_tier',
|
|
2690
3039
|
}
|
|
2691
3040
|
|
|
2692
3041
|
def __delattr__(self, name):
|
|
@@ -2704,8 +3053,16 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2704
3053
|
|
|
2705
3054
|
def __hash__(self):
|
|
2706
3055
|
return hash((
|
|
2707
|
-
self.
|
|
2708
|
-
self.
|
|
3056
|
+
self.choices,
|
|
3057
|
+
self.created,
|
|
3058
|
+
self.id,
|
|
3059
|
+
self.model,
|
|
3060
|
+
self.object,
|
|
3061
|
+
self.system_fingerprint,
|
|
3062
|
+
self.usage,
|
|
3063
|
+
self.usage_breakdown,
|
|
3064
|
+
self.x_groq,
|
|
3065
|
+
self.service_tier,
|
|
2709
3066
|
))
|
|
2710
3067
|
|
|
2711
3068
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2714,11 +3071,27 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2714
3071
|
def __init__(
|
|
2715
3072
|
self,
|
|
2716
3073
|
*,
|
|
2717
|
-
|
|
2718
|
-
|
|
3074
|
+
choices: __dataclass__init__fields__0__annotation,
|
|
3075
|
+
created: __dataclass__init__fields__1__annotation,
|
|
3076
|
+
id: __dataclass__init__fields__2__annotation,
|
|
3077
|
+
model: __dataclass__init__fields__3__annotation,
|
|
3078
|
+
object: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
3079
|
+
system_fingerprint: __dataclass__init__fields__5__annotation,
|
|
3080
|
+
usage: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
3081
|
+
usage_breakdown: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
3082
|
+
x_groq: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
3083
|
+
service_tier: __dataclass__init__fields__9__annotation = __dataclass__init__fields__9__default,
|
|
2719
3084
|
) -> __dataclass__None:
|
|
2720
|
-
__dataclass__object_setattr(self, '
|
|
2721
|
-
__dataclass__object_setattr(self, '
|
|
3085
|
+
__dataclass__object_setattr(self, 'choices', choices)
|
|
3086
|
+
__dataclass__object_setattr(self, 'created', created)
|
|
3087
|
+
__dataclass__object_setattr(self, 'id', id)
|
|
3088
|
+
__dataclass__object_setattr(self, 'model', model)
|
|
3089
|
+
__dataclass__object_setattr(self, 'object', object)
|
|
3090
|
+
__dataclass__object_setattr(self, 'system_fingerprint', system_fingerprint)
|
|
3091
|
+
__dataclass__object_setattr(self, 'usage', usage)
|
|
3092
|
+
__dataclass__object_setattr(self, 'usage_breakdown', usage_breakdown)
|
|
3093
|
+
__dataclass__object_setattr(self, 'x_groq', x_groq)
|
|
3094
|
+
__dataclass__object_setattr(self, 'service_tier', service_tier)
|
|
2722
3095
|
|
|
2723
3096
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2724
3097
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2728,8 +3101,16 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2728
3101
|
@__dataclass___recursive_repr()
|
|
2729
3102
|
def __repr__(self):
|
|
2730
3103
|
parts = []
|
|
2731
|
-
parts.append(f"
|
|
2732
|
-
parts.append(f"
|
|
3104
|
+
parts.append(f"choices={self.choices!r}")
|
|
3105
|
+
parts.append(f"created={self.created!r}")
|
|
3106
|
+
parts.append(f"id={self.id!r}")
|
|
3107
|
+
parts.append(f"model={self.model!r}")
|
|
3108
|
+
parts.append(f"object={self.object!r}")
|
|
3109
|
+
parts.append(f"system_fingerprint={self.system_fingerprint!r}")
|
|
3110
|
+
parts.append(f"usage={self.usage!r}")
|
|
3111
|
+
parts.append(f"usage_breakdown={self.usage_breakdown!r}")
|
|
3112
|
+
parts.append(f"x_groq={self.x_groq!r}")
|
|
3113
|
+
parts.append(f"service_tier={self.service_tier!r}")
|
|
2733
3114
|
return (
|
|
2734
3115
|
f"{self.__class__.__qualname__}("
|
|
2735
3116
|
f"{', '.join(parts)}"
|
|
@@ -2746,245 +3127,44 @@ def _process_dataclass__ca1d4dad922b4f93571cc14b86fcfb93e4c5f278():
|
|
|
2746
3127
|
|
|
2747
3128
|
@_register(
|
|
2748
3129
|
plan_repr=(
|
|
2749
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2750
|
-
"
|
|
2751
|
-
"
|
|
2752
|
-
"
|
|
2753
|
-
"
|
|
2754
|
-
"
|
|
2755
|
-
"'
|
|
2756
|
-
"
|
|
2757
|
-
"
|
|
2758
|
-
"
|
|
2759
|
-
"
|
|
2760
|
-
"
|
|
2761
|
-
"
|
|
2762
|
-
"
|
|
2763
|
-
"
|
|
2764
|
-
", '
|
|
2765
|
-
"g_effort', 'reasoning_format', 'response_format', 'search_settings', 'seed', 'service_tier', 'stop', 'store', "
|
|
2766
|
-
"'stream', 'stream_options', 'temperature', 'ool_choice', 'tools', 'top_logprobs', 'top_p', 'user'), cache=Fals"
|
|
2767
|
-
"e), InitPlan(fields=(InitPlan.Field(name='messages', annotation=OpRef(name='init.fields.0.annotation'), defaul"
|
|
2768
|
-
"t=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
2769
|
-
"None, check_type=None), InitPlan.Field(name='model', annotation=OpRef(name='init.fields.1.annotation'), defaul"
|
|
2770
|
-
"t=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
2771
|
-
"None, check_type=None), InitPlan.Field(name='citation_options', annotation=OpRef(name='init.fields.2.annotatio"
|
|
2772
|
-
"n'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False, field_type="
|
|
2773
|
-
"FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='compound_custom', annot"
|
|
2774
|
-
"ation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory=Non"
|
|
2775
|
-
"e, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), Ini"
|
|
2776
|
-
"tPlan.Field(name='disable_tool_validation', annotation=OpRef(name='init.fields.4.annotation'), default=OpRef(n"
|
|
2777
|
-
"ame='init.fields.4.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, "
|
|
2778
|
-
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='documents', annotation=OpRef(name='init.fie"
|
|
2779
|
-
"lds.5.annotation'), default=OpRef(name='init.fields.5.default'), default_factory=None, init=True, override=Fal"
|
|
2780
|
-
"se, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='frequenc"
|
|
2781
|
-
"y_penalty', annotation=OpRef(name='init.fields.6.annotation'), default=OpRef(name='init.fields.6.default'), de"
|
|
2782
|
-
"fault_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, chec"
|
|
2783
|
-
"k_type=None), InitPlan.Field(name='include_reasoning', annotation=OpRef(name='init.fields.7.annotation'), defa"
|
|
2784
|
-
"ult=OpRef(name='init.fields.7.default'), default_factory=None, init=True, override=False, field_type=FieldType"
|
|
2785
|
-
".INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='logit_bias', annotation=OpRef(na"
|
|
2786
|
-
"me='init.fields.8.annotation'), default=OpRef(name='init.fields.8.default'), default_factory=None, init=True, "
|
|
2787
|
-
"override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(na"
|
|
2788
|
-
"me='logprobs', annotation=OpRef(name='init.fields.9.annotation'), default=OpRef(name='init.fields.9.default'),"
|
|
2789
|
-
" default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, c"
|
|
2790
|
-
"heck_type=None), InitPlan.Field(name='max_completion_tokens', annotation=OpRef(name='init.fields.10.annotation"
|
|
2791
|
-
"'), default=OpRef(name='init.fields.10.default'), default_factory=None, init=True, override=False, field_type="
|
|
2792
|
-
"FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='n', annotation=OpRef(na"
|
|
2793
|
-
"me='init.fields.11.annotation'), default=OpRef(name='init.fields.11.default'), default_factory=None, init=True"
|
|
2794
|
-
", override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field("
|
|
2795
|
-
"name='parallel_tool_calls', annotation=OpRef(name='init.fields.12.annotation'), default=OpRef(name='init.field"
|
|
2796
|
-
"s.12.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, v"
|
|
2797
|
-
"alidate=None, check_type=None), InitPlan.Field(name='presence_penalty', annotation=OpRef(name='init.fields.13."
|
|
2798
|
-
"annotation'), default=OpRef(name='init.fields.13.default'), default_factory=None, init=True, override=False, f"
|
|
2799
|
-
"ield_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='reasoning_eff"
|
|
2800
|
-
"ort', annotation=OpRef(name='init.fields.14.annotation'), default=OpRef(name='init.fields.14.default'), defaul"
|
|
2801
|
-
"t_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_ty"
|
|
2802
|
-
"pe=None), InitPlan.Field(name='reasoning_format', annotation=OpRef(name='init.fields.15.annotation'), default="
|
|
2803
|
-
"OpRef(name='init.fields.15.default'), default_factory=None, init=True, override=False, field_type=FieldType.IN"
|
|
2804
|
-
"STANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='response_format', annotation=OpRef("
|
|
2805
|
-
"name='init.fields.16.annotation'), default=OpRef(name='init.fields.16.default'), default_factory=None, init=Tr"
|
|
2806
|
-
"ue, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Fiel"
|
|
2807
|
-
"d(name='search_settings', annotation=OpRef(name='init.fields.17.annotation'), default=OpRef(name='init.fields."
|
|
2808
|
-
"17.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, val"
|
|
2809
|
-
"idate=None, check_type=None), InitPlan.Field(name='seed', annotation=OpRef(name='init.fields.18.annotation'), "
|
|
2810
|
-
"default=OpRef(name='init.fields.18.default'), default_factory=None, init=True, override=False, field_type=Fiel"
|
|
2811
|
-
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='service_tier', annotation=O"
|
|
2812
|
-
"pRef(name='init.fields.19.annotation'), default=OpRef(name='init.fields.19.default'), default_factory=None, in"
|
|
2813
|
-
"it=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan"
|
|
2814
|
-
".Field(name='stop', annotation=OpRef(name='init.fields.20.annotation'), default=OpRef(name='init.fields.20.def"
|
|
2815
|
-
"ault'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
2816
|
-
"None, check_type=None), InitPlan.Field(name='store', annotation=OpRef(name='init.fields.21.annotation'), defau"
|
|
2817
|
-
"lt=OpRef(name='init.fields.21.default'), default_factory=None, init=True, override=False, field_type=FieldType"
|
|
2818
|
-
".INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='stream', annotation=OpRef(name='"
|
|
2819
|
-
"init.fields.22.annotation'), default=OpRef(name='init.fields.22.default'), default_factory=None, init=True, ov"
|
|
2820
|
-
"erride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name"
|
|
2821
|
-
"='stream_options', annotation=OpRef(name='init.fields.23.annotation'), default=OpRef(name='init.fields.23.defa"
|
|
2822
|
-
"ult'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
2823
|
-
"one, check_type=None), InitPlan.Field(name='temperature', annotation=OpRef(name='init.fields.24.annotation'), "
|
|
2824
|
-
"default=OpRef(name='init.fields.24.default'), default_factory=None, init=True, override=False, field_type=Fiel"
|
|
2825
|
-
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='ool_choice', annotation=OpR"
|
|
2826
|
-
"ef(name='init.fields.25.annotation'), default=OpRef(name='init.fields.25.default'), default_factory=None, init"
|
|
2827
|
-
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.F"
|
|
2828
|
-
"ield(name='tools', annotation=OpRef(name='init.fields.26.annotation'), default=OpRef(name='init.fields.26.defa"
|
|
2829
|
-
"ult'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
2830
|
-
"one, check_type=None), InitPlan.Field(name='top_logprobs', annotation=OpRef(name='init.fields.27.annotation'),"
|
|
2831
|
-
" default=OpRef(name='init.fields.27.default'), default_factory=None, init=True, override=False, field_type=Fie"
|
|
2832
|
-
"ldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='top_p', annotation=OpRef(n"
|
|
2833
|
-
"ame='init.fields.28.annotation'), default=OpRef(name='init.fields.28.default'), default_factory=None, init=Tru"
|
|
2834
|
-
"e, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field"
|
|
2835
|
-
"(name='user', annotation=OpRef(name='init.fields.29.annotation'), default=OpRef(name='init.fields.29.default')"
|
|
2836
|
-
", default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, "
|
|
2837
|
-
"check_type=None)), self_param='self', std_params=(), kw_only_params=('messages', 'model', 'citation_options', "
|
|
2838
|
-
"'compound_custom', 'disable_tool_validation', 'documents', 'frequency_penalty', 'include_reasoning', 'logit_bi"
|
|
2839
|
-
"as', 'logprobs', 'max_completion_tokens', 'n', 'parallel_tool_calls', 'presence_penalty', 'reasoning_effort', "
|
|
2840
|
-
"'reasoning_format', 'response_format', 'search_settings', 'seed', 'service_tier', 'stop', 'store', 'stream', '"
|
|
2841
|
-
"stream_options', 'temperature', 'ool_choice', 'tools', 'top_logprobs', 'top_p', 'user'), frozen=True, slots=Fa"
|
|
2842
|
-
"lse, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='messages', kw"
|
|
2843
|
-
"_only=True, fn=None), ReprPlan.Field(name='model', kw_only=True, fn=None), ReprPlan.Field(name='citation_optio"
|
|
2844
|
-
"ns', kw_only=True, fn=None), ReprPlan.Field(name='compound_custom', kw_only=True, fn=None), ReprPlan.Field(nam"
|
|
2845
|
-
"e='disable_tool_validation', kw_only=True, fn=None), ReprPlan.Field(name='documents', kw_only=True, fn=None), "
|
|
2846
|
-
"ReprPlan.Field(name='frequency_penalty', kw_only=True, fn=None), ReprPlan.Field(name='include_reasoning', kw_o"
|
|
2847
|
-
"nly=True, fn=None), ReprPlan.Field(name='logit_bias', kw_only=True, fn=None), ReprPlan.Field(name='logprobs', "
|
|
2848
|
-
"kw_only=True, fn=None), ReprPlan.Field(name='max_completion_tokens', kw_only=True, fn=None), ReprPlan.Field(na"
|
|
2849
|
-
"me='n', kw_only=True, fn=None), ReprPlan.Field(name='parallel_tool_calls', kw_only=True, fn=None), ReprPlan.Fi"
|
|
2850
|
-
"eld(name='presence_penalty', kw_only=True, fn=None), ReprPlan.Field(name='reasoning_effort', kw_only=True, fn="
|
|
2851
|
-
"None), ReprPlan.Field(name='reasoning_format', kw_only=True, fn=None), ReprPlan.Field(name='response_format', "
|
|
2852
|
-
"kw_only=True, fn=None), ReprPlan.Field(name='search_settings', kw_only=True, fn=None), ReprPlan.Field(name='se"
|
|
2853
|
-
"ed', kw_only=True, fn=None), ReprPlan.Field(name='service_tier', kw_only=True, fn=None), ReprPlan.Field(name='"
|
|
2854
|
-
"stop', kw_only=True, fn=None), ReprPlan.Field(name='store', kw_only=True, fn=None), ReprPlan.Field(name='strea"
|
|
2855
|
-
"m', kw_only=True, fn=None), ReprPlan.Field(name='stream_options', kw_only=True, fn=None), ReprPlan.Field(name="
|
|
2856
|
-
"'temperature', kw_only=True, fn=None), ReprPlan.Field(name='ool_choice', kw_only=True, fn=None), ReprPlan.Fiel"
|
|
2857
|
-
"d(name='tools', kw_only=True, fn=None), ReprPlan.Field(name='top_logprobs', kw_only=True, fn=None), ReprPlan.F"
|
|
2858
|
-
"ield(name='top_p', kw_only=True, fn=None), ReprPlan.Field(name='user', kw_only=True, fn=None)), id=False, ters"
|
|
2859
|
-
"e=False, default_fn=None)))"
|
|
3130
|
+
"Plans(tup=(CopyPlan(fields=('finish_reason', 'index', 'logprobs', 'message')), EqPlan(fields=('finish_reason',"
|
|
3131
|
+
" 'index', 'logprobs', 'message')), FrozenPlan(fields=('finish_reason', 'index', 'logprobs', 'message'), allow_"
|
|
3132
|
+
"dynamic_dunder_attrs=False), HashPlan(action='add', fields=('finish_reason', 'index', 'logprobs', 'message'), "
|
|
3133
|
+
"cache=False), InitPlan(fields=(InitPlan.Field(name='finish_reason', annotation=OpRef(name='init.fields.0.annot"
|
|
3134
|
+
"ation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce="
|
|
3135
|
+
"None, validate=None, check_type=None), InitPlan.Field(name='index', annotation=OpRef(name='init.fields.1.annot"
|
|
3136
|
+
"ation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce="
|
|
3137
|
+
"None, validate=None, check_type=None), InitPlan.Field(name='logprobs', annotation=OpRef(name='init.fields.2.an"
|
|
3138
|
+
"notation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False, fiel"
|
|
3139
|
+
"d_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='message', annota"
|
|
3140
|
+
"tion=OpRef(name='init.fields.3.annotation'), default=None, default_factory=None, init=True, override=False, fi"
|
|
3141
|
+
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), "
|
|
3142
|
+
"kw_only_params=('finish_reason', 'index', 'logprobs', 'message'), frozen=True, slots=False, post_init_params=N"
|
|
3143
|
+
"one, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='finish_reason', kw_only=True, fn=Non"
|
|
3144
|
+
"e), ReprPlan.Field(name='index', kw_only=True, fn=None), ReprPlan.Field(name='logprobs', kw_only=True, fn=None"
|
|
3145
|
+
"), ReprPlan.Field(name='message', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2860
3146
|
),
|
|
2861
|
-
plan_repr_sha1='
|
|
3147
|
+
plan_repr_sha1='44b10f936c3932df17be0708f2449a883036da63',
|
|
2862
3148
|
op_ref_idents=(
|
|
2863
3149
|
'__dataclass__init__fields__0__annotation',
|
|
2864
|
-
'__dataclass__init__fields__10__annotation',
|
|
2865
|
-
'__dataclass__init__fields__10__default',
|
|
2866
|
-
'__dataclass__init__fields__11__annotation',
|
|
2867
|
-
'__dataclass__init__fields__11__default',
|
|
2868
|
-
'__dataclass__init__fields__12__annotation',
|
|
2869
|
-
'__dataclass__init__fields__12__default',
|
|
2870
|
-
'__dataclass__init__fields__13__annotation',
|
|
2871
|
-
'__dataclass__init__fields__13__default',
|
|
2872
|
-
'__dataclass__init__fields__14__annotation',
|
|
2873
|
-
'__dataclass__init__fields__14__default',
|
|
2874
|
-
'__dataclass__init__fields__15__annotation',
|
|
2875
|
-
'__dataclass__init__fields__15__default',
|
|
2876
|
-
'__dataclass__init__fields__16__annotation',
|
|
2877
|
-
'__dataclass__init__fields__16__default',
|
|
2878
|
-
'__dataclass__init__fields__17__annotation',
|
|
2879
|
-
'__dataclass__init__fields__17__default',
|
|
2880
|
-
'__dataclass__init__fields__18__annotation',
|
|
2881
|
-
'__dataclass__init__fields__18__default',
|
|
2882
|
-
'__dataclass__init__fields__19__annotation',
|
|
2883
|
-
'__dataclass__init__fields__19__default',
|
|
2884
3150
|
'__dataclass__init__fields__1__annotation',
|
|
2885
|
-
'__dataclass__init__fields__20__annotation',
|
|
2886
|
-
'__dataclass__init__fields__20__default',
|
|
2887
|
-
'__dataclass__init__fields__21__annotation',
|
|
2888
|
-
'__dataclass__init__fields__21__default',
|
|
2889
|
-
'__dataclass__init__fields__22__annotation',
|
|
2890
|
-
'__dataclass__init__fields__22__default',
|
|
2891
|
-
'__dataclass__init__fields__23__annotation',
|
|
2892
|
-
'__dataclass__init__fields__23__default',
|
|
2893
|
-
'__dataclass__init__fields__24__annotation',
|
|
2894
|
-
'__dataclass__init__fields__24__default',
|
|
2895
|
-
'__dataclass__init__fields__25__annotation',
|
|
2896
|
-
'__dataclass__init__fields__25__default',
|
|
2897
|
-
'__dataclass__init__fields__26__annotation',
|
|
2898
|
-
'__dataclass__init__fields__26__default',
|
|
2899
|
-
'__dataclass__init__fields__27__annotation',
|
|
2900
|
-
'__dataclass__init__fields__27__default',
|
|
2901
|
-
'__dataclass__init__fields__28__annotation',
|
|
2902
|
-
'__dataclass__init__fields__28__default',
|
|
2903
|
-
'__dataclass__init__fields__29__annotation',
|
|
2904
|
-
'__dataclass__init__fields__29__default',
|
|
2905
3151
|
'__dataclass__init__fields__2__annotation',
|
|
2906
3152
|
'__dataclass__init__fields__2__default',
|
|
2907
3153
|
'__dataclass__init__fields__3__annotation',
|
|
2908
|
-
'__dataclass__init__fields__3__default',
|
|
2909
|
-
'__dataclass__init__fields__4__annotation',
|
|
2910
|
-
'__dataclass__init__fields__4__default',
|
|
2911
|
-
'__dataclass__init__fields__5__annotation',
|
|
2912
|
-
'__dataclass__init__fields__5__default',
|
|
2913
|
-
'__dataclass__init__fields__6__annotation',
|
|
2914
|
-
'__dataclass__init__fields__6__default',
|
|
2915
|
-
'__dataclass__init__fields__7__annotation',
|
|
2916
|
-
'__dataclass__init__fields__7__default',
|
|
2917
|
-
'__dataclass__init__fields__8__annotation',
|
|
2918
|
-
'__dataclass__init__fields__8__default',
|
|
2919
|
-
'__dataclass__init__fields__9__annotation',
|
|
2920
|
-
'__dataclass__init__fields__9__default',
|
|
2921
3154
|
),
|
|
2922
3155
|
cls_names=(
|
|
2923
|
-
('ommlds.backends.groq._marshal', '
|
|
3156
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionResponse.Choice'),
|
|
2924
3157
|
),
|
|
2925
3158
|
)
|
|
2926
|
-
def
|
|
3159
|
+
def _process_dataclass__44b10f936c3932df17be0708f2449a883036da63():
|
|
2927
3160
|
def _process_dataclass(
|
|
2928
3161
|
*,
|
|
2929
3162
|
__dataclass__cls,
|
|
2930
3163
|
__dataclass__init__fields__0__annotation,
|
|
2931
|
-
__dataclass__init__fields__10__annotation,
|
|
2932
|
-
__dataclass__init__fields__10__default,
|
|
2933
|
-
__dataclass__init__fields__11__annotation,
|
|
2934
|
-
__dataclass__init__fields__11__default,
|
|
2935
|
-
__dataclass__init__fields__12__annotation,
|
|
2936
|
-
__dataclass__init__fields__12__default,
|
|
2937
|
-
__dataclass__init__fields__13__annotation,
|
|
2938
|
-
__dataclass__init__fields__13__default,
|
|
2939
|
-
__dataclass__init__fields__14__annotation,
|
|
2940
|
-
__dataclass__init__fields__14__default,
|
|
2941
|
-
__dataclass__init__fields__15__annotation,
|
|
2942
|
-
__dataclass__init__fields__15__default,
|
|
2943
|
-
__dataclass__init__fields__16__annotation,
|
|
2944
|
-
__dataclass__init__fields__16__default,
|
|
2945
|
-
__dataclass__init__fields__17__annotation,
|
|
2946
|
-
__dataclass__init__fields__17__default,
|
|
2947
|
-
__dataclass__init__fields__18__annotation,
|
|
2948
|
-
__dataclass__init__fields__18__default,
|
|
2949
|
-
__dataclass__init__fields__19__annotation,
|
|
2950
|
-
__dataclass__init__fields__19__default,
|
|
2951
3164
|
__dataclass__init__fields__1__annotation,
|
|
2952
|
-
__dataclass__init__fields__20__annotation,
|
|
2953
|
-
__dataclass__init__fields__20__default,
|
|
2954
|
-
__dataclass__init__fields__21__annotation,
|
|
2955
|
-
__dataclass__init__fields__21__default,
|
|
2956
|
-
__dataclass__init__fields__22__annotation,
|
|
2957
|
-
__dataclass__init__fields__22__default,
|
|
2958
|
-
__dataclass__init__fields__23__annotation,
|
|
2959
|
-
__dataclass__init__fields__23__default,
|
|
2960
|
-
__dataclass__init__fields__24__annotation,
|
|
2961
|
-
__dataclass__init__fields__24__default,
|
|
2962
|
-
__dataclass__init__fields__25__annotation,
|
|
2963
|
-
__dataclass__init__fields__25__default,
|
|
2964
|
-
__dataclass__init__fields__26__annotation,
|
|
2965
|
-
__dataclass__init__fields__26__default,
|
|
2966
|
-
__dataclass__init__fields__27__annotation,
|
|
2967
|
-
__dataclass__init__fields__27__default,
|
|
2968
|
-
__dataclass__init__fields__28__annotation,
|
|
2969
|
-
__dataclass__init__fields__28__default,
|
|
2970
|
-
__dataclass__init__fields__29__annotation,
|
|
2971
|
-
__dataclass__init__fields__29__default,
|
|
2972
3165
|
__dataclass__init__fields__2__annotation,
|
|
2973
3166
|
__dataclass__init__fields__2__default,
|
|
2974
3167
|
__dataclass__init__fields__3__annotation,
|
|
2975
|
-
__dataclass__init__fields__3__default,
|
|
2976
|
-
__dataclass__init__fields__4__annotation,
|
|
2977
|
-
__dataclass__init__fields__4__default,
|
|
2978
|
-
__dataclass__init__fields__5__annotation,
|
|
2979
|
-
__dataclass__init__fields__5__default,
|
|
2980
|
-
__dataclass__init__fields__6__annotation,
|
|
2981
|
-
__dataclass__init__fields__6__default,
|
|
2982
|
-
__dataclass__init__fields__7__annotation,
|
|
2983
|
-
__dataclass__init__fields__7__default,
|
|
2984
|
-
__dataclass__init__fields__8__annotation,
|
|
2985
|
-
__dataclass__init__fields__8__default,
|
|
2986
|
-
__dataclass__init__fields__9__annotation,
|
|
2987
|
-
__dataclass__init__fields__9__default,
|
|
2988
3168
|
__dataclass__FieldFnValidationError, # noqa
|
|
2989
3169
|
__dataclass__FieldTypeValidationError, # noqa
|
|
2990
3170
|
__dataclass__FnValidationError, # noqa
|
|
@@ -3003,36 +3183,10 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3003
3183
|
if self.__class__ is not __dataclass__cls:
|
|
3004
3184
|
raise TypeError(self)
|
|
3005
3185
|
return __dataclass__cls( # noqa
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
citation_options=self.citation_options,
|
|
3009
|
-
compound_custom=self.compound_custom,
|
|
3010
|
-
disable_tool_validation=self.disable_tool_validation,
|
|
3011
|
-
documents=self.documents,
|
|
3012
|
-
frequency_penalty=self.frequency_penalty,
|
|
3013
|
-
include_reasoning=self.include_reasoning,
|
|
3014
|
-
logit_bias=self.logit_bias,
|
|
3186
|
+
finish_reason=self.finish_reason,
|
|
3187
|
+
index=self.index,
|
|
3015
3188
|
logprobs=self.logprobs,
|
|
3016
|
-
|
|
3017
|
-
n=self.n,
|
|
3018
|
-
parallel_tool_calls=self.parallel_tool_calls,
|
|
3019
|
-
presence_penalty=self.presence_penalty,
|
|
3020
|
-
reasoning_effort=self.reasoning_effort,
|
|
3021
|
-
reasoning_format=self.reasoning_format,
|
|
3022
|
-
response_format=self.response_format,
|
|
3023
|
-
search_settings=self.search_settings,
|
|
3024
|
-
seed=self.seed,
|
|
3025
|
-
service_tier=self.service_tier,
|
|
3026
|
-
stop=self.stop,
|
|
3027
|
-
store=self.store,
|
|
3028
|
-
stream=self.stream,
|
|
3029
|
-
stream_options=self.stream_options,
|
|
3030
|
-
temperature=self.temperature,
|
|
3031
|
-
ool_choice=self.ool_choice,
|
|
3032
|
-
tools=self.tools,
|
|
3033
|
-
top_logprobs=self.top_logprobs,
|
|
3034
|
-
top_p=self.top_p,
|
|
3035
|
-
user=self.user,
|
|
3189
|
+
message=self.message,
|
|
3036
3190
|
)
|
|
3037
3191
|
|
|
3038
3192
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -3046,36 +3200,10 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3046
3200
|
if self.__class__ is not other.__class__:
|
|
3047
3201
|
return NotImplemented
|
|
3048
3202
|
return (
|
|
3049
|
-
self.
|
|
3050
|
-
self.
|
|
3051
|
-
self.citation_options == other.citation_options and
|
|
3052
|
-
self.compound_custom == other.compound_custom and
|
|
3053
|
-
self.disable_tool_validation == other.disable_tool_validation and
|
|
3054
|
-
self.documents == other.documents and
|
|
3055
|
-
self.frequency_penalty == other.frequency_penalty and
|
|
3056
|
-
self.include_reasoning == other.include_reasoning and
|
|
3057
|
-
self.logit_bias == other.logit_bias and
|
|
3203
|
+
self.finish_reason == other.finish_reason and
|
|
3204
|
+
self.index == other.index and
|
|
3058
3205
|
self.logprobs == other.logprobs and
|
|
3059
|
-
self.
|
|
3060
|
-
self.n == other.n and
|
|
3061
|
-
self.parallel_tool_calls == other.parallel_tool_calls and
|
|
3062
|
-
self.presence_penalty == other.presence_penalty and
|
|
3063
|
-
self.reasoning_effort == other.reasoning_effort and
|
|
3064
|
-
self.reasoning_format == other.reasoning_format and
|
|
3065
|
-
self.response_format == other.response_format and
|
|
3066
|
-
self.search_settings == other.search_settings and
|
|
3067
|
-
self.seed == other.seed and
|
|
3068
|
-
self.service_tier == other.service_tier and
|
|
3069
|
-
self.stop == other.stop and
|
|
3070
|
-
self.store == other.store and
|
|
3071
|
-
self.stream == other.stream and
|
|
3072
|
-
self.stream_options == other.stream_options and
|
|
3073
|
-
self.temperature == other.temperature and
|
|
3074
|
-
self.ool_choice == other.ool_choice and
|
|
3075
|
-
self.tools == other.tools and
|
|
3076
|
-
self.top_logprobs == other.top_logprobs and
|
|
3077
|
-
self.top_p == other.top_p and
|
|
3078
|
-
self.user == other.user
|
|
3206
|
+
self.message == other.message
|
|
3079
3207
|
)
|
|
3080
3208
|
|
|
3081
3209
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -3084,36 +3212,10 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3084
3212
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3085
3213
|
|
|
3086
3214
|
__dataclass___setattr_frozen_fields = {
|
|
3087
|
-
'
|
|
3088
|
-
'
|
|
3089
|
-
'citation_options',
|
|
3090
|
-
'compound_custom',
|
|
3091
|
-
'disable_tool_validation',
|
|
3092
|
-
'documents',
|
|
3093
|
-
'frequency_penalty',
|
|
3094
|
-
'include_reasoning',
|
|
3095
|
-
'logit_bias',
|
|
3215
|
+
'finish_reason',
|
|
3216
|
+
'index',
|
|
3096
3217
|
'logprobs',
|
|
3097
|
-
'
|
|
3098
|
-
'n',
|
|
3099
|
-
'parallel_tool_calls',
|
|
3100
|
-
'presence_penalty',
|
|
3101
|
-
'reasoning_effort',
|
|
3102
|
-
'reasoning_format',
|
|
3103
|
-
'response_format',
|
|
3104
|
-
'search_settings',
|
|
3105
|
-
'seed',
|
|
3106
|
-
'service_tier',
|
|
3107
|
-
'stop',
|
|
3108
|
-
'store',
|
|
3109
|
-
'stream',
|
|
3110
|
-
'stream_options',
|
|
3111
|
-
'temperature',
|
|
3112
|
-
'ool_choice',
|
|
3113
|
-
'tools',
|
|
3114
|
-
'top_logprobs',
|
|
3115
|
-
'top_p',
|
|
3116
|
-
'user',
|
|
3218
|
+
'message',
|
|
3117
3219
|
}
|
|
3118
3220
|
|
|
3119
3221
|
def __setattr__(self, name, value):
|
|
@@ -3130,36 +3232,10 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3130
3232
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3131
3233
|
|
|
3132
3234
|
__dataclass___delattr_frozen_fields = {
|
|
3133
|
-
'
|
|
3134
|
-
'
|
|
3135
|
-
'citation_options',
|
|
3136
|
-
'compound_custom',
|
|
3137
|
-
'disable_tool_validation',
|
|
3138
|
-
'documents',
|
|
3139
|
-
'frequency_penalty',
|
|
3140
|
-
'include_reasoning',
|
|
3141
|
-
'logit_bias',
|
|
3235
|
+
'finish_reason',
|
|
3236
|
+
'index',
|
|
3142
3237
|
'logprobs',
|
|
3143
|
-
'
|
|
3144
|
-
'n',
|
|
3145
|
-
'parallel_tool_calls',
|
|
3146
|
-
'presence_penalty',
|
|
3147
|
-
'reasoning_effort',
|
|
3148
|
-
'reasoning_format',
|
|
3149
|
-
'response_format',
|
|
3150
|
-
'search_settings',
|
|
3151
|
-
'seed',
|
|
3152
|
-
'service_tier',
|
|
3153
|
-
'stop',
|
|
3154
|
-
'store',
|
|
3155
|
-
'stream',
|
|
3156
|
-
'stream_options',
|
|
3157
|
-
'temperature',
|
|
3158
|
-
'ool_choice',
|
|
3159
|
-
'tools',
|
|
3160
|
-
'top_logprobs',
|
|
3161
|
-
'top_p',
|
|
3162
|
-
'user',
|
|
3238
|
+
'message',
|
|
3163
3239
|
}
|
|
3164
3240
|
|
|
3165
3241
|
def __delattr__(self, name):
|
|
@@ -3177,36 +3253,10 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3177
3253
|
|
|
3178
3254
|
def __hash__(self):
|
|
3179
3255
|
return hash((
|
|
3180
|
-
self.
|
|
3181
|
-
self.
|
|
3182
|
-
self.citation_options,
|
|
3183
|
-
self.compound_custom,
|
|
3184
|
-
self.disable_tool_validation,
|
|
3185
|
-
self.documents,
|
|
3186
|
-
self.frequency_penalty,
|
|
3187
|
-
self.include_reasoning,
|
|
3188
|
-
self.logit_bias,
|
|
3256
|
+
self.finish_reason,
|
|
3257
|
+
self.index,
|
|
3189
3258
|
self.logprobs,
|
|
3190
|
-
self.
|
|
3191
|
-
self.n,
|
|
3192
|
-
self.parallel_tool_calls,
|
|
3193
|
-
self.presence_penalty,
|
|
3194
|
-
self.reasoning_effort,
|
|
3195
|
-
self.reasoning_format,
|
|
3196
|
-
self.response_format,
|
|
3197
|
-
self.search_settings,
|
|
3198
|
-
self.seed,
|
|
3199
|
-
self.service_tier,
|
|
3200
|
-
self.stop,
|
|
3201
|
-
self.store,
|
|
3202
|
-
self.stream,
|
|
3203
|
-
self.stream_options,
|
|
3204
|
-
self.temperature,
|
|
3205
|
-
self.ool_choice,
|
|
3206
|
-
self.tools,
|
|
3207
|
-
self.top_logprobs,
|
|
3208
|
-
self.top_p,
|
|
3209
|
-
self.user,
|
|
3259
|
+
self.message,
|
|
3210
3260
|
))
|
|
3211
3261
|
|
|
3212
3262
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -3215,67 +3265,15 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3215
3265
|
def __init__(
|
|
3216
3266
|
self,
|
|
3217
3267
|
*,
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
disable_tool_validation: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
3223
|
-
documents: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
3224
|
-
frequency_penalty: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
3225
|
-
include_reasoning: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
3226
|
-
logit_bias: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
3227
|
-
logprobs: __dataclass__init__fields__9__annotation = __dataclass__init__fields__9__default,
|
|
3228
|
-
max_completion_tokens: __dataclass__init__fields__10__annotation = __dataclass__init__fields__10__default,
|
|
3229
|
-
n: __dataclass__init__fields__11__annotation = __dataclass__init__fields__11__default,
|
|
3230
|
-
parallel_tool_calls: __dataclass__init__fields__12__annotation = __dataclass__init__fields__12__default,
|
|
3231
|
-
presence_penalty: __dataclass__init__fields__13__annotation = __dataclass__init__fields__13__default,
|
|
3232
|
-
reasoning_effort: __dataclass__init__fields__14__annotation = __dataclass__init__fields__14__default,
|
|
3233
|
-
reasoning_format: __dataclass__init__fields__15__annotation = __dataclass__init__fields__15__default,
|
|
3234
|
-
response_format: __dataclass__init__fields__16__annotation = __dataclass__init__fields__16__default,
|
|
3235
|
-
search_settings: __dataclass__init__fields__17__annotation = __dataclass__init__fields__17__default,
|
|
3236
|
-
seed: __dataclass__init__fields__18__annotation = __dataclass__init__fields__18__default,
|
|
3237
|
-
service_tier: __dataclass__init__fields__19__annotation = __dataclass__init__fields__19__default,
|
|
3238
|
-
stop: __dataclass__init__fields__20__annotation = __dataclass__init__fields__20__default,
|
|
3239
|
-
store: __dataclass__init__fields__21__annotation = __dataclass__init__fields__21__default,
|
|
3240
|
-
stream: __dataclass__init__fields__22__annotation = __dataclass__init__fields__22__default,
|
|
3241
|
-
stream_options: __dataclass__init__fields__23__annotation = __dataclass__init__fields__23__default,
|
|
3242
|
-
temperature: __dataclass__init__fields__24__annotation = __dataclass__init__fields__24__default,
|
|
3243
|
-
ool_choice: __dataclass__init__fields__25__annotation = __dataclass__init__fields__25__default,
|
|
3244
|
-
tools: __dataclass__init__fields__26__annotation = __dataclass__init__fields__26__default,
|
|
3245
|
-
top_logprobs: __dataclass__init__fields__27__annotation = __dataclass__init__fields__27__default,
|
|
3246
|
-
top_p: __dataclass__init__fields__28__annotation = __dataclass__init__fields__28__default,
|
|
3247
|
-
user: __dataclass__init__fields__29__annotation = __dataclass__init__fields__29__default,
|
|
3268
|
+
finish_reason: __dataclass__init__fields__0__annotation,
|
|
3269
|
+
index: __dataclass__init__fields__1__annotation,
|
|
3270
|
+
logprobs: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
3271
|
+
message: __dataclass__init__fields__3__annotation,
|
|
3248
3272
|
) -> __dataclass__None:
|
|
3249
|
-
__dataclass__object_setattr(self, '
|
|
3250
|
-
__dataclass__object_setattr(self, '
|
|
3251
|
-
__dataclass__object_setattr(self, 'citation_options', citation_options)
|
|
3252
|
-
__dataclass__object_setattr(self, 'compound_custom', compound_custom)
|
|
3253
|
-
__dataclass__object_setattr(self, 'disable_tool_validation', disable_tool_validation)
|
|
3254
|
-
__dataclass__object_setattr(self, 'documents', documents)
|
|
3255
|
-
__dataclass__object_setattr(self, 'frequency_penalty', frequency_penalty)
|
|
3256
|
-
__dataclass__object_setattr(self, 'include_reasoning', include_reasoning)
|
|
3257
|
-
__dataclass__object_setattr(self, 'logit_bias', logit_bias)
|
|
3273
|
+
__dataclass__object_setattr(self, 'finish_reason', finish_reason)
|
|
3274
|
+
__dataclass__object_setattr(self, 'index', index)
|
|
3258
3275
|
__dataclass__object_setattr(self, 'logprobs', logprobs)
|
|
3259
|
-
__dataclass__object_setattr(self, '
|
|
3260
|
-
__dataclass__object_setattr(self, 'n', n)
|
|
3261
|
-
__dataclass__object_setattr(self, 'parallel_tool_calls', parallel_tool_calls)
|
|
3262
|
-
__dataclass__object_setattr(self, 'presence_penalty', presence_penalty)
|
|
3263
|
-
__dataclass__object_setattr(self, 'reasoning_effort', reasoning_effort)
|
|
3264
|
-
__dataclass__object_setattr(self, 'reasoning_format', reasoning_format)
|
|
3265
|
-
__dataclass__object_setattr(self, 'response_format', response_format)
|
|
3266
|
-
__dataclass__object_setattr(self, 'search_settings', search_settings)
|
|
3267
|
-
__dataclass__object_setattr(self, 'seed', seed)
|
|
3268
|
-
__dataclass__object_setattr(self, 'service_tier', service_tier)
|
|
3269
|
-
__dataclass__object_setattr(self, 'stop', stop)
|
|
3270
|
-
__dataclass__object_setattr(self, 'store', store)
|
|
3271
|
-
__dataclass__object_setattr(self, 'stream', stream)
|
|
3272
|
-
__dataclass__object_setattr(self, 'stream_options', stream_options)
|
|
3273
|
-
__dataclass__object_setattr(self, 'temperature', temperature)
|
|
3274
|
-
__dataclass__object_setattr(self, 'ool_choice', ool_choice)
|
|
3275
|
-
__dataclass__object_setattr(self, 'tools', tools)
|
|
3276
|
-
__dataclass__object_setattr(self, 'top_logprobs', top_logprobs)
|
|
3277
|
-
__dataclass__object_setattr(self, 'top_p', top_p)
|
|
3278
|
-
__dataclass__object_setattr(self, 'user', user)
|
|
3276
|
+
__dataclass__object_setattr(self, 'message', message)
|
|
3279
3277
|
|
|
3280
3278
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3281
3279
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -3285,36 +3283,10 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3285
3283
|
@__dataclass___recursive_repr()
|
|
3286
3284
|
def __repr__(self):
|
|
3287
3285
|
parts = []
|
|
3288
|
-
parts.append(f"
|
|
3289
|
-
parts.append(f"
|
|
3290
|
-
parts.append(f"citation_options={self.citation_options!r}")
|
|
3291
|
-
parts.append(f"compound_custom={self.compound_custom!r}")
|
|
3292
|
-
parts.append(f"disable_tool_validation={self.disable_tool_validation!r}")
|
|
3293
|
-
parts.append(f"documents={self.documents!r}")
|
|
3294
|
-
parts.append(f"frequency_penalty={self.frequency_penalty!r}")
|
|
3295
|
-
parts.append(f"include_reasoning={self.include_reasoning!r}")
|
|
3296
|
-
parts.append(f"logit_bias={self.logit_bias!r}")
|
|
3286
|
+
parts.append(f"finish_reason={self.finish_reason!r}")
|
|
3287
|
+
parts.append(f"index={self.index!r}")
|
|
3297
3288
|
parts.append(f"logprobs={self.logprobs!r}")
|
|
3298
|
-
parts.append(f"
|
|
3299
|
-
parts.append(f"n={self.n!r}")
|
|
3300
|
-
parts.append(f"parallel_tool_calls={self.parallel_tool_calls!r}")
|
|
3301
|
-
parts.append(f"presence_penalty={self.presence_penalty!r}")
|
|
3302
|
-
parts.append(f"reasoning_effort={self.reasoning_effort!r}")
|
|
3303
|
-
parts.append(f"reasoning_format={self.reasoning_format!r}")
|
|
3304
|
-
parts.append(f"response_format={self.response_format!r}")
|
|
3305
|
-
parts.append(f"search_settings={self.search_settings!r}")
|
|
3306
|
-
parts.append(f"seed={self.seed!r}")
|
|
3307
|
-
parts.append(f"service_tier={self.service_tier!r}")
|
|
3308
|
-
parts.append(f"stop={self.stop!r}")
|
|
3309
|
-
parts.append(f"store={self.store!r}")
|
|
3310
|
-
parts.append(f"stream={self.stream!r}")
|
|
3311
|
-
parts.append(f"stream_options={self.stream_options!r}")
|
|
3312
|
-
parts.append(f"temperature={self.temperature!r}")
|
|
3313
|
-
parts.append(f"ool_choice={self.ool_choice!r}")
|
|
3314
|
-
parts.append(f"tools={self.tools!r}")
|
|
3315
|
-
parts.append(f"top_logprobs={self.top_logprobs!r}")
|
|
3316
|
-
parts.append(f"top_p={self.top_p!r}")
|
|
3317
|
-
parts.append(f"user={self.user!r}")
|
|
3289
|
+
parts.append(f"message={self.message!r}")
|
|
3318
3290
|
return (
|
|
3319
3291
|
f"{self.__class__.__qualname__}("
|
|
3320
3292
|
f"{', '.join(parts)}"
|
|
@@ -3331,32 +3303,32 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3331
3303
|
|
|
3332
3304
|
@_register(
|
|
3333
3305
|
plan_repr=(
|
|
3334
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
3335
|
-
"
|
|
3336
|
-
"
|
|
3337
|
-
"
|
|
3338
|
-
"False), InitPlan(fields=(InitPlan.Field(name='
|
|
3339
|
-
"
|
|
3340
|
-
"
|
|
3341
|
-
"
|
|
3342
|
-
"
|
|
3343
|
-
"
|
|
3344
|
-
"
|
|
3345
|
-
"
|
|
3346
|
-
"
|
|
3347
|
-
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='
|
|
3348
|
-
"
|
|
3349
|
-
"
|
|
3350
|
-
"
|
|
3351
|
-
"
|
|
3352
|
-
"
|
|
3353
|
-
"
|
|
3354
|
-
"
|
|
3355
|
-
"
|
|
3356
|
-
"
|
|
3357
|
-
" kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
3306
|
+
"Plans(tup=(CopyPlan(fields=('annotations', 'content', 'executed_tools', 'reasoning', 'role', 'tool_calls')), E"
|
|
3307
|
+
"qPlan(fields=('annotations', 'content', 'executed_tools', 'reasoning', 'role', 'tool_calls')), FrozenPlan(fiel"
|
|
3308
|
+
"ds=('annotations', 'content', 'executed_tools', 'reasoning', 'role', 'tool_calls'), allow_dynamic_dunder_attrs"
|
|
3309
|
+
"=False), HashPlan(action='add', fields=('annotations', 'content', 'executed_tools', 'reasoning', 'role', 'tool"
|
|
3310
|
+
"_calls'), cache=False), InitPlan(fields=(InitPlan.Field(name='annotations', annotation=OpRef(name='init.fields"
|
|
3311
|
+
".0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False,"
|
|
3312
|
+
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='content', a"
|
|
3313
|
+
"nnotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory"
|
|
3314
|
+
"=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),"
|
|
3315
|
+
" InitPlan.Field(name='executed_tools', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='"
|
|
3316
|
+
"init.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerc"
|
|
3317
|
+
"e=None, validate=None, check_type=None), InitPlan.Field(name='reasoning', annotation=OpRef(name='init.fields.3"
|
|
3318
|
+
".annotation'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=False, f"
|
|
3319
|
+
"ield_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='role', annota"
|
|
3320
|
+
"tion=OpRef(name='init.fields.4.annotation'), default=OpRef(name='init.fields.4.default'), default_factory=None"
|
|
3321
|
+
", init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), Init"
|
|
3322
|
+
"Plan.Field(name='tool_calls', annotation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fiel"
|
|
3323
|
+
"ds.5.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, v"
|
|
3324
|
+
"alidate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('annotations', 'content', '"
|
|
3325
|
+
"executed_tools', 'reasoning', 'role', 'tool_calls'), frozen=True, slots=False, post_init_params=None, init_fns"
|
|
3326
|
+
"=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='annotations', kw_only=True, fn=None), ReprPlan.Fi"
|
|
3327
|
+
"eld(name='content', kw_only=True, fn=None), ReprPlan.Field(name='executed_tools', kw_only=True, fn=None), Repr"
|
|
3328
|
+
"Plan.Field(name='reasoning', kw_only=True, fn=None), ReprPlan.Field(name='role', kw_only=True, fn=None), ReprP"
|
|
3329
|
+
"lan.Field(name='tool_calls', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
3358
3330
|
),
|
|
3359
|
-
plan_repr_sha1='
|
|
3331
|
+
plan_repr_sha1='9130d639b5468f8ff473adfc8b544dc6ef79a71a',
|
|
3360
3332
|
op_ref_idents=(
|
|
3361
3333
|
'__dataclass__init__fields__0__annotation',
|
|
3362
3334
|
'__dataclass__init__fields__0__default',
|
|
@@ -3372,10 +3344,10 @@ def _process_dataclass__e1491e80a9c22594a08c75d1ecf8caab2dd47a88():
|
|
|
3372
3344
|
'__dataclass__init__fields__5__default',
|
|
3373
3345
|
),
|
|
3374
3346
|
cls_names=(
|
|
3375
|
-
('ommlds.backends.groq._marshal', '
|
|
3347
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionResponse.Choice.Message'),
|
|
3376
3348
|
),
|
|
3377
3349
|
)
|
|
3378
|
-
def
|
|
3350
|
+
def _process_dataclass__9130d639b5468f8ff473adfc8b544dc6ef79a71a():
|
|
3379
3351
|
def _process_dataclass(
|
|
3380
3352
|
*,
|
|
3381
3353
|
__dataclass__cls,
|
|
@@ -3409,12 +3381,12 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3409
3381
|
if self.__class__ is not __dataclass__cls:
|
|
3410
3382
|
raise TypeError(self)
|
|
3411
3383
|
return __dataclass__cls( # noqa
|
|
3412
|
-
|
|
3384
|
+
annotations=self.annotations,
|
|
3413
3385
|
content=self.content,
|
|
3414
|
-
|
|
3386
|
+
executed_tools=self.executed_tools,
|
|
3415
3387
|
reasoning=self.reasoning,
|
|
3388
|
+
role=self.role,
|
|
3416
3389
|
tool_calls=self.tool_calls,
|
|
3417
|
-
executed_tools=self.executed_tools,
|
|
3418
3390
|
)
|
|
3419
3391
|
|
|
3420
3392
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -3428,12 +3400,12 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3428
3400
|
if self.__class__ is not other.__class__:
|
|
3429
3401
|
return NotImplemented
|
|
3430
3402
|
return (
|
|
3431
|
-
self.
|
|
3403
|
+
self.annotations == other.annotations and
|
|
3432
3404
|
self.content == other.content and
|
|
3433
|
-
self.
|
|
3405
|
+
self.executed_tools == other.executed_tools and
|
|
3434
3406
|
self.reasoning == other.reasoning and
|
|
3435
|
-
self.
|
|
3436
|
-
self.
|
|
3407
|
+
self.role == other.role and
|
|
3408
|
+
self.tool_calls == other.tool_calls
|
|
3437
3409
|
)
|
|
3438
3410
|
|
|
3439
3411
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -3442,12 +3414,12 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3442
3414
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3443
3415
|
|
|
3444
3416
|
__dataclass___setattr_frozen_fields = {
|
|
3445
|
-
'
|
|
3417
|
+
'annotations',
|
|
3446
3418
|
'content',
|
|
3447
|
-
'
|
|
3419
|
+
'executed_tools',
|
|
3448
3420
|
'reasoning',
|
|
3421
|
+
'role',
|
|
3449
3422
|
'tool_calls',
|
|
3450
|
-
'executed_tools',
|
|
3451
3423
|
}
|
|
3452
3424
|
|
|
3453
3425
|
def __setattr__(self, name, value):
|
|
@@ -3464,12 +3436,12 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3464
3436
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3465
3437
|
|
|
3466
3438
|
__dataclass___delattr_frozen_fields = {
|
|
3467
|
-
'
|
|
3439
|
+
'annotations',
|
|
3468
3440
|
'content',
|
|
3469
|
-
'
|
|
3441
|
+
'executed_tools',
|
|
3470
3442
|
'reasoning',
|
|
3443
|
+
'role',
|
|
3471
3444
|
'tool_calls',
|
|
3472
|
-
'executed_tools',
|
|
3473
3445
|
}
|
|
3474
3446
|
|
|
3475
3447
|
def __delattr__(self, name):
|
|
@@ -3487,12 +3459,12 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3487
3459
|
|
|
3488
3460
|
def __hash__(self):
|
|
3489
3461
|
return hash((
|
|
3490
|
-
self.
|
|
3462
|
+
self.annotations,
|
|
3491
3463
|
self.content,
|
|
3492
|
-
self.
|
|
3464
|
+
self.executed_tools,
|
|
3493
3465
|
self.reasoning,
|
|
3466
|
+
self.role,
|
|
3494
3467
|
self.tool_calls,
|
|
3495
|
-
self.executed_tools,
|
|
3496
3468
|
))
|
|
3497
3469
|
|
|
3498
3470
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -3501,19 +3473,19 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3501
3473
|
def __init__(
|
|
3502
3474
|
self,
|
|
3503
3475
|
*,
|
|
3504
|
-
|
|
3476
|
+
annotations: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
3505
3477
|
content: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
3506
|
-
|
|
3478
|
+
executed_tools: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
3507
3479
|
reasoning: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
3508
|
-
|
|
3509
|
-
|
|
3480
|
+
role: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
3481
|
+
tool_calls: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
3510
3482
|
) -> __dataclass__None:
|
|
3511
|
-
__dataclass__object_setattr(self, '
|
|
3483
|
+
__dataclass__object_setattr(self, 'annotations', annotations)
|
|
3512
3484
|
__dataclass__object_setattr(self, 'content', content)
|
|
3513
|
-
__dataclass__object_setattr(self, '
|
|
3485
|
+
__dataclass__object_setattr(self, 'executed_tools', executed_tools)
|
|
3514
3486
|
__dataclass__object_setattr(self, 'reasoning', reasoning)
|
|
3487
|
+
__dataclass__object_setattr(self, 'role', role)
|
|
3515
3488
|
__dataclass__object_setattr(self, 'tool_calls', tool_calls)
|
|
3516
|
-
__dataclass__object_setattr(self, 'executed_tools', executed_tools)
|
|
3517
3489
|
|
|
3518
3490
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3519
3491
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -3523,12 +3495,12 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3523
3495
|
@__dataclass___recursive_repr()
|
|
3524
3496
|
def __repr__(self):
|
|
3525
3497
|
parts = []
|
|
3526
|
-
parts.append(f"
|
|
3498
|
+
parts.append(f"annotations={self.annotations!r}")
|
|
3527
3499
|
parts.append(f"content={self.content!r}")
|
|
3528
|
-
parts.append(f"
|
|
3500
|
+
parts.append(f"executed_tools={self.executed_tools!r}")
|
|
3529
3501
|
parts.append(f"reasoning={self.reasoning!r}")
|
|
3502
|
+
parts.append(f"role={self.role!r}")
|
|
3530
3503
|
parts.append(f"tool_calls={self.tool_calls!r}")
|
|
3531
|
-
parts.append(f"executed_tools={self.executed_tools!r}")
|
|
3532
3504
|
return (
|
|
3533
3505
|
f"{self.__class__.__qualname__}("
|
|
3534
3506
|
f"{', '.join(parts)}"
|
|
@@ -3545,21 +3517,39 @@ def _process_dataclass__e17f86dab4d47b211aac3e6e4afe0442050a7a86():
|
|
|
3545
3517
|
|
|
3546
3518
|
@_register(
|
|
3547
3519
|
plan_repr=(
|
|
3548
|
-
"Plans(tup=(CopyPlan(fields=()), EqPlan(fields=(
|
|
3549
|
-
"
|
|
3550
|
-
"
|
|
3551
|
-
"
|
|
3520
|
+
"Plans(tup=(CopyPlan(fields=('id', 'function', 'type')), EqPlan(fields=('id', 'function', 'type')), FrozenPlan("
|
|
3521
|
+
"fields=('id', 'function', 'type'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('id', 'fu"
|
|
3522
|
+
"nction', 'type'), cache=False), InitPlan(fields=(InitPlan.Field(name='id', annotation=OpRef(name='init.fields."
|
|
3523
|
+
"0.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, "
|
|
3524
|
+
"coerce=None, validate=None, check_type=None), InitPlan.Field(name='function', annotation=OpRef(name='init.fiel"
|
|
3525
|
+
"ds.1.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANC"
|
|
3526
|
+
"E, coerce=None, validate=None, check_type=None), InitPlan.Field(name='type', annotation=OpRef(name='init.field"
|
|
3527
|
+
"s.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False"
|
|
3528
|
+
", field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params="
|
|
3529
|
+
"(), kw_only_params=('id', 'function', 'type'), frozen=True, slots=False, post_init_params=None, init_fns=(), v"
|
|
3530
|
+
"alidate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='id', kw_only=True, fn=None), ReprPlan.Field(name='funct"
|
|
3531
|
+
"ion', kw_only=True, fn=None), ReprPlan.Field(name='type', kw_only=True, fn=None)), id=False, terse=False, defa"
|
|
3532
|
+
"ult_fn=None)))"
|
|
3533
|
+
),
|
|
3534
|
+
plan_repr_sha1='7cd19137ccf16704c343ecf64cbb8bbbe65a626b',
|
|
3535
|
+
op_ref_idents=(
|
|
3536
|
+
'__dataclass__init__fields__0__annotation',
|
|
3537
|
+
'__dataclass__init__fields__1__annotation',
|
|
3538
|
+
'__dataclass__init__fields__2__annotation',
|
|
3539
|
+
'__dataclass__init__fields__2__default',
|
|
3552
3540
|
),
|
|
3553
|
-
plan_repr_sha1='e1f7edfe11f2b721d6a656c46e698fedc95461bb',
|
|
3554
|
-
op_ref_idents=(),
|
|
3555
3541
|
cls_names=(
|
|
3556
|
-
('ommlds.backends.groq._marshal', '
|
|
3542
|
+
('ommlds.backends.groq._marshal', 'ChatCompletionResponse.Choice.Message.ToolCall'),
|
|
3557
3543
|
),
|
|
3558
3544
|
)
|
|
3559
|
-
def
|
|
3545
|
+
def _process_dataclass__7cd19137ccf16704c343ecf64cbb8bbbe65a626b():
|
|
3560
3546
|
def _process_dataclass(
|
|
3561
3547
|
*,
|
|
3562
3548
|
__dataclass__cls,
|
|
3549
|
+
__dataclass__init__fields__0__annotation,
|
|
3550
|
+
__dataclass__init__fields__1__annotation,
|
|
3551
|
+
__dataclass__init__fields__2__annotation,
|
|
3552
|
+
__dataclass__init__fields__2__default,
|
|
3563
3553
|
__dataclass__FieldFnValidationError, # noqa
|
|
3564
3554
|
__dataclass__FieldTypeValidationError, # noqa
|
|
3565
3555
|
__dataclass__FnValidationError, # noqa
|
|
@@ -3577,7 +3567,11 @@ def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
|
3577
3567
|
def __copy__(self):
|
|
3578
3568
|
if self.__class__ is not __dataclass__cls:
|
|
3579
3569
|
raise TypeError(self)
|
|
3580
|
-
return __dataclass__cls(
|
|
3570
|
+
return __dataclass__cls( # noqa
|
|
3571
|
+
id=self.id,
|
|
3572
|
+
function=self.function,
|
|
3573
|
+
type=self.type,
|
|
3574
|
+
)
|
|
3581
3575
|
|
|
3582
3576
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
3583
3577
|
if '__copy__' in __dataclass__cls.__dict__:
|
|
@@ -3589,16 +3583,27 @@ def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
|
3589
3583
|
return True
|
|
3590
3584
|
if self.__class__ is not other.__class__:
|
|
3591
3585
|
return NotImplemented
|
|
3592
|
-
return
|
|
3586
|
+
return (
|
|
3587
|
+
self.id == other.id and
|
|
3588
|
+
self.function == other.function and
|
|
3589
|
+
self.type == other.type
|
|
3590
|
+
)
|
|
3593
3591
|
|
|
3594
3592
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
3595
3593
|
if '__eq__' in __dataclass__cls.__dict__:
|
|
3596
3594
|
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
3597
3595
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3598
3596
|
|
|
3597
|
+
__dataclass___setattr_frozen_fields = {
|
|
3598
|
+
'id',
|
|
3599
|
+
'function',
|
|
3600
|
+
'type',
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3599
3603
|
def __setattr__(self, name, value):
|
|
3600
3604
|
if (
|
|
3601
3605
|
type(self) is __dataclass__cls
|
|
3606
|
+
or name in __dataclass___setattr_frozen_fields
|
|
3602
3607
|
):
|
|
3603
3608
|
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
3604
3609
|
super(__dataclass__cls, self).__setattr__(name, value)
|
|
@@ -3608,9 +3613,16 @@ def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
|
3608
3613
|
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
3609
3614
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3610
3615
|
|
|
3616
|
+
__dataclass___delattr_frozen_fields = {
|
|
3617
|
+
'id',
|
|
3618
|
+
'function',
|
|
3619
|
+
'type',
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3611
3622
|
def __delattr__(self, name):
|
|
3612
3623
|
if (
|
|
3613
3624
|
type(self) is __dataclass__cls
|
|
3625
|
+
or name in __dataclass___delattr_frozen_fields
|
|
3614
3626
|
):
|
|
3615
3627
|
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
3616
3628
|
super(__dataclass__cls, self).__delattr__(name)
|
|
@@ -3621,15 +3633,25 @@ def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
|
3621
3633
|
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
3622
3634
|
|
|
3623
3635
|
def __hash__(self):
|
|
3624
|
-
return hash((
|
|
3636
|
+
return hash((
|
|
3637
|
+
self.id,
|
|
3638
|
+
self.function,
|
|
3639
|
+
self.type,
|
|
3640
|
+
))
|
|
3625
3641
|
|
|
3626
3642
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
3627
3643
|
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
3628
3644
|
|
|
3629
3645
|
def __init__(
|
|
3630
3646
|
self,
|
|
3647
|
+
*,
|
|
3648
|
+
id: __dataclass__init__fields__0__annotation,
|
|
3649
|
+
function: __dataclass__init__fields__1__annotation,
|
|
3650
|
+
type: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
3631
3651
|
) -> __dataclass__None:
|
|
3632
|
-
|
|
3652
|
+
__dataclass__object_setattr(self, 'id', id)
|
|
3653
|
+
__dataclass__object_setattr(self, 'function', function)
|
|
3654
|
+
__dataclass__object_setattr(self, 'type', type)
|
|
3633
3655
|
|
|
3634
3656
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3635
3657
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -3639,6 +3661,9 @@ def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
|
3639
3661
|
@__dataclass___recursive_repr()
|
|
3640
3662
|
def __repr__(self):
|
|
3641
3663
|
parts = []
|
|
3664
|
+
parts.append(f"id={self.id!r}")
|
|
3665
|
+
parts.append(f"function={self.function!r}")
|
|
3666
|
+
parts.append(f"type={self.type!r}")
|
|
3642
3667
|
return (
|
|
3643
3668
|
f"{self.__class__.__qualname__}("
|
|
3644
3669
|
f"{', '.join(parts)}"
|
|
@@ -3655,76 +3680,67 @@ def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
|
3655
3680
|
|
|
3656
3681
|
@_register(
|
|
3657
3682
|
plan_repr=(
|
|
3658
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
3659
|
-
"
|
|
3660
|
-
"
|
|
3661
|
-
"
|
|
3662
|
-
"
|
|
3663
|
-
"
|
|
3664
|
-
"
|
|
3665
|
-
"
|
|
3666
|
-
"
|
|
3667
|
-
"
|
|
3668
|
-
"
|
|
3669
|
-
"
|
|
3670
|
-
"
|
|
3671
|
-
"
|
|
3672
|
-
"tion=OpRef(name='init.fields.4.
|
|
3673
|
-
"
|
|
3674
|
-
"
|
|
3675
|
-
"field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.
|
|
3676
|
-
"
|
|
3677
|
-
"
|
|
3678
|
-
"
|
|
3679
|
-
"
|
|
3680
|
-
"
|
|
3681
|
-
"
|
|
3682
|
-
"
|
|
3683
|
-
"
|
|
3684
|
-
"
|
|
3685
|
-
"Field(name='id', kw_only=True, fn=None), ReprPlan.Field(name='object', kw_only=True, fn=None), ReprPlan.Field("
|
|
3686
|
-
"name='created', kw_only=True, fn=None), ReprPlan.Field(name='model', kw_only=True, fn=None), ReprPlan.Field(na"
|
|
3687
|
-
"me='system_fingerprint', kw_only=True, fn=None), ReprPlan.Field(name='choices', kw_only=True, fn=None), ReprPl"
|
|
3688
|
-
"an.Field(name='x_groq', kw_only=True, fn=None), ReprPlan.Field(name='service_tier', kw_only=True, fn=None), Re"
|
|
3689
|
-
"prPlan.Field(name='usage', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
3683
|
+
"Plans(tup=(CopyPlan(fields=('arguments', 'index', 'type', 'browser_results', 'code_results', 'output', 'search"
|
|
3684
|
+
"_results')), EqPlan(fields=('arguments', 'index', 'type', 'browser_results', 'code_results', 'output', 'search"
|
|
3685
|
+
"_results')), FrozenPlan(fields=('arguments', 'index', 'type', 'browser_results', 'code_results', 'output', 'se"
|
|
3686
|
+
"arch_results'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('arguments', 'index', 'type'"
|
|
3687
|
+
", 'browser_results', 'code_results', 'output', 'search_results'), cache=False), InitPlan(fields=(InitPlan.Fiel"
|
|
3688
|
+
"d(name='arguments', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, ini"
|
|
3689
|
+
"t=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan."
|
|
3690
|
+
"Field(name='index', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, ini"
|
|
3691
|
+
"t=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan."
|
|
3692
|
+
"Field(name='type', annotation=OpRef(name='init.fields.2.annotation'), default=None, default_factory=None, init"
|
|
3693
|
+
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.F"
|
|
3694
|
+
"ield(name='browser_results', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.field"
|
|
3695
|
+
"s.3.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, va"
|
|
3696
|
+
"lidate=None, check_type=None), InitPlan.Field(name='code_results', annotation=OpRef(name='init.fields.4.annota"
|
|
3697
|
+
"tion'), default=OpRef(name='init.fields.4.default'), default_factory=None, init=True, override=False, field_ty"
|
|
3698
|
+
"pe=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='output', annotation="
|
|
3699
|
+
"OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fields.5.default'), default_factory=None, ini"
|
|
3700
|
+
"t=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan."
|
|
3701
|
+
"Field(name='search_results', annotation=OpRef(name='init.fields.6.annotation'), default=OpRef(name='init.field"
|
|
3702
|
+
"s.6.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, va"
|
|
3703
|
+
"lidate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('arguments', 'index', 'type'"
|
|
3704
|
+
", 'browser_results', 'code_results', 'output', 'search_results'), frozen=True, slots=False, post_init_params=N"
|
|
3705
|
+
"one, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='arguments', kw_only=True, fn=None), "
|
|
3706
|
+
"ReprPlan.Field(name='index', kw_only=True, fn=None), ReprPlan.Field(name='type', kw_only=True, fn=None), ReprP"
|
|
3707
|
+
"lan.Field(name='browser_results', kw_only=True, fn=None), ReprPlan.Field(name='code_results', kw_only=True, fn"
|
|
3708
|
+
"=None), ReprPlan.Field(name='output', kw_only=True, fn=None), ReprPlan.Field(name='search_results', kw_only=Tr"
|
|
3709
|
+
"ue, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
3690
3710
|
),
|
|
3691
|
-
plan_repr_sha1='
|
|
3711
|
+
plan_repr_sha1='0af7551195bca061ad193c49ddcf78305ce3d840',
|
|
3692
3712
|
op_ref_idents=(
|
|
3693
3713
|
'__dataclass__init__fields__0__annotation',
|
|
3694
3714
|
'__dataclass__init__fields__1__annotation',
|
|
3695
|
-
'__dataclass__init__fields__1__default',
|
|
3696
3715
|
'__dataclass__init__fields__2__annotation',
|
|
3697
3716
|
'__dataclass__init__fields__3__annotation',
|
|
3717
|
+
'__dataclass__init__fields__3__default',
|
|
3698
3718
|
'__dataclass__init__fields__4__annotation',
|
|
3719
|
+
'__dataclass__init__fields__4__default',
|
|
3699
3720
|
'__dataclass__init__fields__5__annotation',
|
|
3721
|
+
'__dataclass__init__fields__5__default',
|
|
3700
3722
|
'__dataclass__init__fields__6__annotation',
|
|
3701
3723
|
'__dataclass__init__fields__6__default',
|
|
3702
|
-
'__dataclass__init__fields__7__annotation',
|
|
3703
|
-
'__dataclass__init__fields__7__default',
|
|
3704
|
-
'__dataclass__init__fields__8__annotation',
|
|
3705
|
-
'__dataclass__init__fields__8__default',
|
|
3706
3724
|
),
|
|
3707
3725
|
cls_names=(
|
|
3708
|
-
('ommlds.backends.groq._marshal', '
|
|
3726
|
+
('ommlds.backends.groq._marshal', 'ExecutedTool'),
|
|
3709
3727
|
),
|
|
3710
3728
|
)
|
|
3711
|
-
def
|
|
3729
|
+
def _process_dataclass__0af7551195bca061ad193c49ddcf78305ce3d840():
|
|
3712
3730
|
def _process_dataclass(
|
|
3713
3731
|
*,
|
|
3714
3732
|
__dataclass__cls,
|
|
3715
3733
|
__dataclass__init__fields__0__annotation,
|
|
3716
3734
|
__dataclass__init__fields__1__annotation,
|
|
3717
|
-
__dataclass__init__fields__1__default,
|
|
3718
3735
|
__dataclass__init__fields__2__annotation,
|
|
3719
3736
|
__dataclass__init__fields__3__annotation,
|
|
3737
|
+
__dataclass__init__fields__3__default,
|
|
3720
3738
|
__dataclass__init__fields__4__annotation,
|
|
3739
|
+
__dataclass__init__fields__4__default,
|
|
3721
3740
|
__dataclass__init__fields__5__annotation,
|
|
3741
|
+
__dataclass__init__fields__5__default,
|
|
3722
3742
|
__dataclass__init__fields__6__annotation,
|
|
3723
3743
|
__dataclass__init__fields__6__default,
|
|
3724
|
-
__dataclass__init__fields__7__annotation,
|
|
3725
|
-
__dataclass__init__fields__7__default,
|
|
3726
|
-
__dataclass__init__fields__8__annotation,
|
|
3727
|
-
__dataclass__init__fields__8__default,
|
|
3728
3744
|
__dataclass__FieldFnValidationError, # noqa
|
|
3729
3745
|
__dataclass__FieldTypeValidationError, # noqa
|
|
3730
3746
|
__dataclass__FnValidationError, # noqa
|
|
@@ -3743,15 +3759,13 @@ def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
|
3743
3759
|
if self.__class__ is not __dataclass__cls:
|
|
3744
3760
|
raise TypeError(self)
|
|
3745
3761
|
return __dataclass__cls( # noqa
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
service_tier=self.service_tier,
|
|
3754
|
-
usage=self.usage,
|
|
3762
|
+
arguments=self.arguments,
|
|
3763
|
+
index=self.index,
|
|
3764
|
+
type=self.type,
|
|
3765
|
+
browser_results=self.browser_results,
|
|
3766
|
+
code_results=self.code_results,
|
|
3767
|
+
output=self.output,
|
|
3768
|
+
search_results=self.search_results,
|
|
3755
3769
|
)
|
|
3756
3770
|
|
|
3757
3771
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -3765,15 +3779,13 @@ def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
|
3765
3779
|
if self.__class__ is not other.__class__:
|
|
3766
3780
|
return NotImplemented
|
|
3767
3781
|
return (
|
|
3768
|
-
self.
|
|
3769
|
-
self.
|
|
3770
|
-
self.
|
|
3771
|
-
self.
|
|
3772
|
-
self.
|
|
3773
|
-
self.
|
|
3774
|
-
self.
|
|
3775
|
-
self.service_tier == other.service_tier and
|
|
3776
|
-
self.usage == other.usage
|
|
3782
|
+
self.arguments == other.arguments and
|
|
3783
|
+
self.index == other.index and
|
|
3784
|
+
self.type == other.type and
|
|
3785
|
+
self.browser_results == other.browser_results and
|
|
3786
|
+
self.code_results == other.code_results and
|
|
3787
|
+
self.output == other.output and
|
|
3788
|
+
self.search_results == other.search_results
|
|
3777
3789
|
)
|
|
3778
3790
|
|
|
3779
3791
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -3782,15 +3794,13 @@ def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
|
3782
3794
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3783
3795
|
|
|
3784
3796
|
__dataclass___setattr_frozen_fields = {
|
|
3785
|
-
'
|
|
3786
|
-
'
|
|
3787
|
-
'
|
|
3788
|
-
'
|
|
3789
|
-
'
|
|
3790
|
-
'
|
|
3791
|
-
'
|
|
3792
|
-
'service_tier',
|
|
3793
|
-
'usage',
|
|
3797
|
+
'arguments',
|
|
3798
|
+
'index',
|
|
3799
|
+
'type',
|
|
3800
|
+
'browser_results',
|
|
3801
|
+
'code_results',
|
|
3802
|
+
'output',
|
|
3803
|
+
'search_results',
|
|
3794
3804
|
}
|
|
3795
3805
|
|
|
3796
3806
|
def __setattr__(self, name, value):
|
|
@@ -3807,15 +3817,13 @@ def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
|
3807
3817
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3808
3818
|
|
|
3809
3819
|
__dataclass___delattr_frozen_fields = {
|
|
3810
|
-
'
|
|
3811
|
-
'
|
|
3812
|
-
'
|
|
3813
|
-
'
|
|
3814
|
-
'
|
|
3815
|
-
'
|
|
3816
|
-
'
|
|
3817
|
-
'service_tier',
|
|
3818
|
-
'usage',
|
|
3820
|
+
'arguments',
|
|
3821
|
+
'index',
|
|
3822
|
+
'type',
|
|
3823
|
+
'browser_results',
|
|
3824
|
+
'code_results',
|
|
3825
|
+
'output',
|
|
3826
|
+
'search_results',
|
|
3819
3827
|
}
|
|
3820
3828
|
|
|
3821
3829
|
def __delattr__(self, name):
|
|
@@ -3833,15 +3841,13 @@ def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
|
3833
3841
|
|
|
3834
3842
|
def __hash__(self):
|
|
3835
3843
|
return hash((
|
|
3836
|
-
self.
|
|
3837
|
-
self.
|
|
3838
|
-
self.
|
|
3839
|
-
self.
|
|
3840
|
-
self.
|
|
3841
|
-
self.
|
|
3842
|
-
self.
|
|
3843
|
-
self.service_tier,
|
|
3844
|
-
self.usage,
|
|
3844
|
+
self.arguments,
|
|
3845
|
+
self.index,
|
|
3846
|
+
self.type,
|
|
3847
|
+
self.browser_results,
|
|
3848
|
+
self.code_results,
|
|
3849
|
+
self.output,
|
|
3850
|
+
self.search_results,
|
|
3845
3851
|
))
|
|
3846
3852
|
|
|
3847
3853
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -3850,25 +3856,21 @@ def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
|
3850
3856
|
def __init__(
|
|
3851
3857
|
self,
|
|
3852
3858
|
*,
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
service_tier: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
3861
|
-
usage: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
3859
|
+
arguments: __dataclass__init__fields__0__annotation,
|
|
3860
|
+
index: __dataclass__init__fields__1__annotation,
|
|
3861
|
+
type: __dataclass__init__fields__2__annotation,
|
|
3862
|
+
browser_results: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
3863
|
+
code_results: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
3864
|
+
output: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
3865
|
+
search_results: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
3862
3866
|
) -> __dataclass__None:
|
|
3863
|
-
__dataclass__object_setattr(self, '
|
|
3864
|
-
__dataclass__object_setattr(self, '
|
|
3865
|
-
__dataclass__object_setattr(self, '
|
|
3866
|
-
__dataclass__object_setattr(self, '
|
|
3867
|
-
__dataclass__object_setattr(self, '
|
|
3868
|
-
__dataclass__object_setattr(self, '
|
|
3869
|
-
__dataclass__object_setattr(self, '
|
|
3870
|
-
__dataclass__object_setattr(self, 'service_tier', service_tier)
|
|
3871
|
-
__dataclass__object_setattr(self, 'usage', usage)
|
|
3867
|
+
__dataclass__object_setattr(self, 'arguments', arguments)
|
|
3868
|
+
__dataclass__object_setattr(self, 'index', index)
|
|
3869
|
+
__dataclass__object_setattr(self, 'type', type)
|
|
3870
|
+
__dataclass__object_setattr(self, 'browser_results', browser_results)
|
|
3871
|
+
__dataclass__object_setattr(self, 'code_results', code_results)
|
|
3872
|
+
__dataclass__object_setattr(self, 'output', output)
|
|
3873
|
+
__dataclass__object_setattr(self, 'search_results', search_results)
|
|
3872
3874
|
|
|
3873
3875
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3874
3876
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -3878,15 +3880,13 @@ def _process_dataclass__e9fd011b88dd09b9d07234a0bed31c70cc048544():
|
|
|
3878
3880
|
@__dataclass___recursive_repr()
|
|
3879
3881
|
def __repr__(self):
|
|
3880
3882
|
parts = []
|
|
3881
|
-
parts.append(f"
|
|
3882
|
-
parts.append(f"
|
|
3883
|
-
parts.append(f"
|
|
3884
|
-
parts.append(f"
|
|
3885
|
-
parts.append(f"
|
|
3886
|
-
parts.append(f"
|
|
3887
|
-
parts.append(f"
|
|
3888
|
-
parts.append(f"service_tier={self.service_tier!r}")
|
|
3889
|
-
parts.append(f"usage={self.usage!r}")
|
|
3883
|
+
parts.append(f"arguments={self.arguments!r}")
|
|
3884
|
+
parts.append(f"index={self.index!r}")
|
|
3885
|
+
parts.append(f"type={self.type!r}")
|
|
3886
|
+
parts.append(f"browser_results={self.browser_results!r}")
|
|
3887
|
+
parts.append(f"code_results={self.code_results!r}")
|
|
3888
|
+
parts.append(f"output={self.output!r}")
|
|
3889
|
+
parts.append(f"search_results={self.search_results!r}")
|
|
3890
3890
|
return (
|
|
3891
3891
|
f"{self.__class__.__qualname__}("
|
|
3892
3892
|
f"{', '.join(parts)}"
|