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,34 +25,34 @@ def _register(**kwargs):
|
|
|
25
25
|
|
|
26
26
|
@_register(
|
|
27
27
|
plan_repr=(
|
|
28
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"validate=None, check_type=None), InitPlan.Field
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
28
|
+
"Plans(tup=(CopyPlan(fields=('urls', 'include_images', 'include_favicon', 'extract_depth', 'format', 'timeout')"
|
|
29
|
+
"), EqPlan(fields=('urls', 'include_images', 'include_favicon', 'extract_depth', 'format', 'timeout')), FrozenP"
|
|
30
|
+
"lan(fields=('urls', 'include_images', 'include_favicon', 'extract_depth', 'format', 'timeout'), allow_dynamic_"
|
|
31
|
+
"dunder_attrs=False), HashPlan(action='add', fields=('urls', 'include_images', 'include_favicon', 'extract_dept"
|
|
32
|
+
"h', 'format', 'timeout'), cache=False), InitPlan(fields=(InitPlan.Field(name='urls', annotation=OpRef(name='in"
|
|
33
|
+
"it.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType."
|
|
34
|
+
"INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='include_images', annotation=OpRef"
|
|
35
|
+
"(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=Tru"
|
|
36
|
+
"e, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field"
|
|
37
|
+
"(name='include_favicon', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2."
|
|
38
|
+
"default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, valida"
|
|
39
|
+
"te=None, check_type=None), InitPlan.Field(name='extract_depth', annotation=OpRef(name='init.fields.3.annotatio"
|
|
40
|
+
"n'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=False, field_type="
|
|
41
|
+
"FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='format', annotation=OpR"
|
|
42
|
+
"ef(name='init.fields.4.annotation'), default=OpRef(name='init.fields.4.default'), default_factory=None, init=T"
|
|
43
|
+
"rue, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Fie"
|
|
44
|
+
"ld(name='timeout', annotation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fields.5.defaul"
|
|
45
|
+
"t'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=Non"
|
|
46
|
+
"e, check_type=None)), self_param='self', std_params=(), kw_only_params=('urls', 'include_images', 'include_fav"
|
|
47
|
+
"icon', 'extract_depth', 'format', 'timeout'), frozen=True, slots=False, post_init_params=None, init_fns=(), va"
|
|
48
|
+
"lidate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='urls', kw_only=True, fn=None), ReprPlan.Field(name='incl"
|
|
49
|
+
"ude_images', kw_only=True, fn=None), ReprPlan.Field(name='include_favicon', kw_only=True, fn=None), ReprPlan.F"
|
|
50
|
+
"ield(name='extract_depth', kw_only=True, fn=None), ReprPlan.Field(name='format', kw_only=True, fn=None), ReprP"
|
|
51
|
+
"lan.Field(name='timeout', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
51
52
|
),
|
|
52
|
-
plan_repr_sha1='
|
|
53
|
+
plan_repr_sha1='6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b',
|
|
53
54
|
op_ref_idents=(
|
|
54
55
|
'__dataclass__init__fields__0__annotation',
|
|
55
|
-
'__dataclass__init__fields__0__default',
|
|
56
56
|
'__dataclass__init__fields__1__annotation',
|
|
57
57
|
'__dataclass__init__fields__1__default',
|
|
58
58
|
'__dataclass__init__fields__2__annotation',
|
|
@@ -65,15 +65,14 @@ def _register(**kwargs):
|
|
|
65
65
|
'__dataclass__init__fields__5__default',
|
|
66
66
|
),
|
|
67
67
|
cls_names=(
|
|
68
|
-
('ommlds.backends.tavily.protocol', '
|
|
68
|
+
('ommlds.backends.tavily.protocol', 'ExtractRequest'),
|
|
69
69
|
),
|
|
70
70
|
)
|
|
71
|
-
def
|
|
71
|
+
def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
72
72
|
def _process_dataclass(
|
|
73
73
|
*,
|
|
74
74
|
__dataclass__cls,
|
|
75
75
|
__dataclass__init__fields__0__annotation,
|
|
76
|
-
__dataclass__init__fields__0__default,
|
|
77
76
|
__dataclass__init__fields__1__annotation,
|
|
78
77
|
__dataclass__init__fields__1__default,
|
|
79
78
|
__dataclass__init__fields__2__annotation,
|
|
@@ -102,12 +101,12 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
102
101
|
if self.__class__ is not __dataclass__cls:
|
|
103
102
|
raise TypeError(self)
|
|
104
103
|
return __dataclass__cls( # noqa
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
urls=self.urls,
|
|
105
|
+
include_images=self.include_images,
|
|
106
|
+
include_favicon=self.include_favicon,
|
|
107
|
+
extract_depth=self.extract_depth,
|
|
108
|
+
format=self.format,
|
|
109
|
+
timeout=self.timeout,
|
|
111
110
|
)
|
|
112
111
|
|
|
113
112
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -121,12 +120,12 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
121
120
|
if self.__class__ is not other.__class__:
|
|
122
121
|
return NotImplemented
|
|
123
122
|
return (
|
|
124
|
-
self.
|
|
125
|
-
self.
|
|
126
|
-
self.
|
|
127
|
-
self.
|
|
128
|
-
self.
|
|
129
|
-
self.
|
|
123
|
+
self.urls == other.urls and
|
|
124
|
+
self.include_images == other.include_images and
|
|
125
|
+
self.include_favicon == other.include_favicon and
|
|
126
|
+
self.extract_depth == other.extract_depth and
|
|
127
|
+
self.format == other.format and
|
|
128
|
+
self.timeout == other.timeout
|
|
130
129
|
)
|
|
131
130
|
|
|
132
131
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -135,12 +134,12 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
135
134
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
136
135
|
|
|
137
136
|
__dataclass___setattr_frozen_fields = {
|
|
138
|
-
'
|
|
139
|
-
'
|
|
140
|
-
'
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
137
|
+
'urls',
|
|
138
|
+
'include_images',
|
|
139
|
+
'include_favicon',
|
|
140
|
+
'extract_depth',
|
|
141
|
+
'format',
|
|
142
|
+
'timeout',
|
|
144
143
|
}
|
|
145
144
|
|
|
146
145
|
def __setattr__(self, name, value):
|
|
@@ -157,12 +156,12 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
157
156
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
158
157
|
|
|
159
158
|
__dataclass___delattr_frozen_fields = {
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
159
|
+
'urls',
|
|
160
|
+
'include_images',
|
|
161
|
+
'include_favicon',
|
|
162
|
+
'extract_depth',
|
|
163
|
+
'format',
|
|
164
|
+
'timeout',
|
|
166
165
|
}
|
|
167
166
|
|
|
168
167
|
def __delattr__(self, name):
|
|
@@ -180,12 +179,12 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
180
179
|
|
|
181
180
|
def __hash__(self):
|
|
182
181
|
return hash((
|
|
183
|
-
self.
|
|
184
|
-
self.
|
|
185
|
-
self.
|
|
186
|
-
self.
|
|
187
|
-
self.
|
|
188
|
-
self.
|
|
182
|
+
self.urls,
|
|
183
|
+
self.include_images,
|
|
184
|
+
self.include_favicon,
|
|
185
|
+
self.extract_depth,
|
|
186
|
+
self.format,
|
|
187
|
+
self.timeout,
|
|
189
188
|
))
|
|
190
189
|
|
|
191
190
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -194,19 +193,19 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
194
193
|
def __init__(
|
|
195
194
|
self,
|
|
196
195
|
*,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
196
|
+
urls: __dataclass__init__fields__0__annotation,
|
|
197
|
+
include_images: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
198
|
+
include_favicon: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
199
|
+
extract_depth: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
200
|
+
format: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
201
|
+
timeout: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
203
202
|
) -> __dataclass__None:
|
|
204
|
-
__dataclass__object_setattr(self, '
|
|
205
|
-
__dataclass__object_setattr(self, '
|
|
206
|
-
__dataclass__object_setattr(self, '
|
|
207
|
-
__dataclass__object_setattr(self, '
|
|
208
|
-
__dataclass__object_setattr(self, '
|
|
209
|
-
__dataclass__object_setattr(self, '
|
|
203
|
+
__dataclass__object_setattr(self, 'urls', urls)
|
|
204
|
+
__dataclass__object_setattr(self, 'include_images', include_images)
|
|
205
|
+
__dataclass__object_setattr(self, 'include_favicon', include_favicon)
|
|
206
|
+
__dataclass__object_setattr(self, 'extract_depth', extract_depth)
|
|
207
|
+
__dataclass__object_setattr(self, 'format', format)
|
|
208
|
+
__dataclass__object_setattr(self, 'timeout', timeout)
|
|
210
209
|
|
|
211
210
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
212
211
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -216,12 +215,12 @@ def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
|
216
215
|
@__dataclass___recursive_repr()
|
|
217
216
|
def __repr__(self):
|
|
218
217
|
parts = []
|
|
219
|
-
parts.append(f"
|
|
220
|
-
parts.append(f"
|
|
221
|
-
parts.append(f"
|
|
222
|
-
parts.append(f"
|
|
223
|
-
parts.append(f"
|
|
224
|
-
parts.append(f"
|
|
218
|
+
parts.append(f"urls={self.urls!r}")
|
|
219
|
+
parts.append(f"include_images={self.include_images!r}")
|
|
220
|
+
parts.append(f"include_favicon={self.include_favicon!r}")
|
|
221
|
+
parts.append(f"extract_depth={self.extract_depth!r}")
|
|
222
|
+
parts.append(f"format={self.format!r}")
|
|
223
|
+
parts.append(f"timeout={self.timeout!r}")
|
|
225
224
|
return (
|
|
226
225
|
f"{self.__class__.__qualname__}("
|
|
227
226
|
f"{', '.join(parts)}"
|
|
@@ -420,77 +419,31 @@ def _process_dataclass__3f646ce22fdfdf2263a93ac28fa615a485690a8c():
|
|
|
420
419
|
|
|
421
420
|
@_register(
|
|
422
421
|
plan_repr=(
|
|
423
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
424
|
-
"'
|
|
425
|
-
"
|
|
426
|
-
",
|
|
427
|
-
"
|
|
428
|
-
"
|
|
429
|
-
"
|
|
430
|
-
"=
|
|
431
|
-
"
|
|
432
|
-
"e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='images', annotation=O"
|
|
433
|
-
"pRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init"
|
|
434
|
-
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.F"
|
|
435
|
-
"ield(name='results', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.defa"
|
|
436
|
-
"ult'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
437
|
-
"one, check_type=None), InitPlan.Field(name='follow_up_questions', annotation=OpRef(name='init.fields.4.annotat"
|
|
438
|
-
"ion'), default=OpRef(name='init.fields.4.default'), default_factory=None, init=True, override=False, field_typ"
|
|
439
|
-
"e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='auto_parameters', ann"
|
|
440
|
-
"otation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fields.5.default'), default_factory=N"
|
|
441
|
-
"one, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), I"
|
|
442
|
-
"nitPlan.Field(name='response_time', annotation=OpRef(name='init.fields.6.annotation'), default=OpRef(name='ini"
|
|
443
|
-
"t.fields.6.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=N"
|
|
444
|
-
"one, validate=None, check_type=None), InitPlan.Field(name='request_id', annotation=OpRef(name='init.fields.7.a"
|
|
445
|
-
"nnotation'), default=OpRef(name='init.fields.7.default'), default_factory=None, init=True, override=False, fie"
|
|
446
|
-
"ld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), k"
|
|
447
|
-
"w_only_params=('query', 'answer', 'images', 'results', 'follow_up_questions', 'auto_parameters', 'response_tim"
|
|
448
|
-
"e', 'request_id'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fi"
|
|
449
|
-
"elds=(ReprPlan.Field(name='query', kw_only=True, fn=None), ReprPlan.Field(name='answer', kw_only=True, fn=None"
|
|
450
|
-
"), ReprPlan.Field(name='images', kw_only=True, fn=None), ReprPlan.Field(name='results', kw_only=True, fn=None)"
|
|
451
|
-
", ReprPlan.Field(name='follow_up_questions', kw_only=True, fn=None), ReprPlan.Field(name='auto_parameters', kw"
|
|
452
|
-
"_only=True, fn=None), ReprPlan.Field(name='response_time', kw_only=True, fn=None), ReprPlan.Field(name='reques"
|
|
453
|
-
"t_id', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
422
|
+
"Plans(tup=(CopyPlan(fields=('url', 'error')), EqPlan(fields=('url', 'error')), FrozenPlan(fields=('url', 'erro"
|
|
423
|
+
"r'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('url', 'error'), cache=False), InitPlan"
|
|
424
|
+
"(fields=(InitPlan.Field(name='url', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_f"
|
|
425
|
+
"actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
|
|
426
|
+
"None), InitPlan.Field(name='error', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_f"
|
|
427
|
+
"actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
|
|
428
|
+
"None)), self_param='self', std_params=(), kw_only_params=('url', 'error'), frozen=True, slots=False, post_init"
|
|
429
|
+
"_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='url', kw_only=True, fn=None"
|
|
430
|
+
"), ReprPlan.Field(name='error', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
454
431
|
),
|
|
455
|
-
plan_repr_sha1='
|
|
432
|
+
plan_repr_sha1='c306872e8ff160b080e380e285ae8e74db96cc63',
|
|
456
433
|
op_ref_idents=(
|
|
457
434
|
'__dataclass__init__fields__0__annotation',
|
|
458
435
|
'__dataclass__init__fields__1__annotation',
|
|
459
|
-
'__dataclass__init__fields__2__annotation',
|
|
460
|
-
'__dataclass__init__fields__2__default',
|
|
461
|
-
'__dataclass__init__fields__3__annotation',
|
|
462
|
-
'__dataclass__init__fields__3__default',
|
|
463
|
-
'__dataclass__init__fields__4__annotation',
|
|
464
|
-
'__dataclass__init__fields__4__default',
|
|
465
|
-
'__dataclass__init__fields__5__annotation',
|
|
466
|
-
'__dataclass__init__fields__5__default',
|
|
467
|
-
'__dataclass__init__fields__6__annotation',
|
|
468
|
-
'__dataclass__init__fields__6__default',
|
|
469
|
-
'__dataclass__init__fields__7__annotation',
|
|
470
|
-
'__dataclass__init__fields__7__default',
|
|
471
436
|
),
|
|
472
437
|
cls_names=(
|
|
473
|
-
('ommlds.backends.tavily.protocol', '
|
|
438
|
+
('ommlds.backends.tavily.protocol', 'ExtractResponse.FailedResult'),
|
|
474
439
|
),
|
|
475
440
|
)
|
|
476
|
-
def
|
|
441
|
+
def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
477
442
|
def _process_dataclass(
|
|
478
443
|
*,
|
|
479
444
|
__dataclass__cls,
|
|
480
445
|
__dataclass__init__fields__0__annotation,
|
|
481
446
|
__dataclass__init__fields__1__annotation,
|
|
482
|
-
__dataclass__init__fields__2__annotation,
|
|
483
|
-
__dataclass__init__fields__2__default,
|
|
484
|
-
__dataclass__init__fields__3__annotation,
|
|
485
|
-
__dataclass__init__fields__3__default,
|
|
486
|
-
__dataclass__init__fields__4__annotation,
|
|
487
|
-
__dataclass__init__fields__4__default,
|
|
488
|
-
__dataclass__init__fields__5__annotation,
|
|
489
|
-
__dataclass__init__fields__5__default,
|
|
490
|
-
__dataclass__init__fields__6__annotation,
|
|
491
|
-
__dataclass__init__fields__6__default,
|
|
492
|
-
__dataclass__init__fields__7__annotation,
|
|
493
|
-
__dataclass__init__fields__7__default,
|
|
494
447
|
__dataclass__FieldFnValidationError, # noqa
|
|
495
448
|
__dataclass__FieldTypeValidationError, # noqa
|
|
496
449
|
__dataclass__FnValidationError, # noqa
|
|
@@ -509,14 +462,8 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
509
462
|
if self.__class__ is not __dataclass__cls:
|
|
510
463
|
raise TypeError(self)
|
|
511
464
|
return __dataclass__cls( # noqa
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
images=self.images,
|
|
515
|
-
results=self.results,
|
|
516
|
-
follow_up_questions=self.follow_up_questions,
|
|
517
|
-
auto_parameters=self.auto_parameters,
|
|
518
|
-
response_time=self.response_time,
|
|
519
|
-
request_id=self.request_id,
|
|
465
|
+
url=self.url,
|
|
466
|
+
error=self.error,
|
|
520
467
|
)
|
|
521
468
|
|
|
522
469
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -530,14 +477,8 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
530
477
|
if self.__class__ is not other.__class__:
|
|
531
478
|
return NotImplemented
|
|
532
479
|
return (
|
|
533
|
-
self.
|
|
534
|
-
self.
|
|
535
|
-
self.images == other.images and
|
|
536
|
-
self.results == other.results and
|
|
537
|
-
self.follow_up_questions == other.follow_up_questions and
|
|
538
|
-
self.auto_parameters == other.auto_parameters and
|
|
539
|
-
self.response_time == other.response_time and
|
|
540
|
-
self.request_id == other.request_id
|
|
480
|
+
self.url == other.url and
|
|
481
|
+
self.error == other.error
|
|
541
482
|
)
|
|
542
483
|
|
|
543
484
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -546,14 +487,8 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
546
487
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
547
488
|
|
|
548
489
|
__dataclass___setattr_frozen_fields = {
|
|
549
|
-
'
|
|
550
|
-
'
|
|
551
|
-
'images',
|
|
552
|
-
'results',
|
|
553
|
-
'follow_up_questions',
|
|
554
|
-
'auto_parameters',
|
|
555
|
-
'response_time',
|
|
556
|
-
'request_id',
|
|
490
|
+
'url',
|
|
491
|
+
'error',
|
|
557
492
|
}
|
|
558
493
|
|
|
559
494
|
def __setattr__(self, name, value):
|
|
@@ -570,14 +505,8 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
570
505
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
571
506
|
|
|
572
507
|
__dataclass___delattr_frozen_fields = {
|
|
573
|
-
'
|
|
574
|
-
'
|
|
575
|
-
'images',
|
|
576
|
-
'results',
|
|
577
|
-
'follow_up_questions',
|
|
578
|
-
'auto_parameters',
|
|
579
|
-
'response_time',
|
|
580
|
-
'request_id',
|
|
508
|
+
'url',
|
|
509
|
+
'error',
|
|
581
510
|
}
|
|
582
511
|
|
|
583
512
|
def __delattr__(self, name):
|
|
@@ -595,14 +524,8 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
595
524
|
|
|
596
525
|
def __hash__(self):
|
|
597
526
|
return hash((
|
|
598
|
-
self.
|
|
599
|
-
self.
|
|
600
|
-
self.images,
|
|
601
|
-
self.results,
|
|
602
|
-
self.follow_up_questions,
|
|
603
|
-
self.auto_parameters,
|
|
604
|
-
self.response_time,
|
|
605
|
-
self.request_id,
|
|
527
|
+
self.url,
|
|
528
|
+
self.error,
|
|
606
529
|
))
|
|
607
530
|
|
|
608
531
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -611,23 +534,11 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
611
534
|
def __init__(
|
|
612
535
|
self,
|
|
613
536
|
*,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
images: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
617
|
-
results: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
618
|
-
follow_up_questions: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
619
|
-
auto_parameters: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
620
|
-
response_time: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
621
|
-
request_id: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
537
|
+
url: __dataclass__init__fields__0__annotation,
|
|
538
|
+
error: __dataclass__init__fields__1__annotation,
|
|
622
539
|
) -> __dataclass__None:
|
|
623
|
-
__dataclass__object_setattr(self, '
|
|
624
|
-
__dataclass__object_setattr(self, '
|
|
625
|
-
__dataclass__object_setattr(self, 'images', images)
|
|
626
|
-
__dataclass__object_setattr(self, 'results', results)
|
|
627
|
-
__dataclass__object_setattr(self, 'follow_up_questions', follow_up_questions)
|
|
628
|
-
__dataclass__object_setattr(self, 'auto_parameters', auto_parameters)
|
|
629
|
-
__dataclass__object_setattr(self, 'response_time', response_time)
|
|
630
|
-
__dataclass__object_setattr(self, 'request_id', request_id)
|
|
540
|
+
__dataclass__object_setattr(self, 'url', url)
|
|
541
|
+
__dataclass__object_setattr(self, 'error', error)
|
|
631
542
|
|
|
632
543
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
633
544
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -637,14 +548,8 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
637
548
|
@__dataclass___recursive_repr()
|
|
638
549
|
def __repr__(self):
|
|
639
550
|
parts = []
|
|
640
|
-
parts.append(f"
|
|
641
|
-
parts.append(f"
|
|
642
|
-
parts.append(f"images={self.images!r}")
|
|
643
|
-
parts.append(f"results={self.results!r}")
|
|
644
|
-
parts.append(f"follow_up_questions={self.follow_up_questions!r}")
|
|
645
|
-
parts.append(f"auto_parameters={self.auto_parameters!r}")
|
|
646
|
-
parts.append(f"response_time={self.response_time!r}")
|
|
647
|
-
parts.append(f"request_id={self.request_id!r}")
|
|
551
|
+
parts.append(f"url={self.url!r}")
|
|
552
|
+
parts.append(f"error={self.error!r}")
|
|
648
553
|
return (
|
|
649
554
|
f"{self.__class__.__qualname__}("
|
|
650
555
|
f"{', '.join(parts)}"
|
|
@@ -661,64 +566,46 @@ def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
|
661
566
|
|
|
662
567
|
@_register(
|
|
663
568
|
plan_repr=(
|
|
664
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
665
|
-
"
|
|
666
|
-
"
|
|
667
|
-
"
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"
|
|
671
|
-
"(name='
|
|
672
|
-
"
|
|
673
|
-
"
|
|
674
|
-
"default'), default_factory=None, init=True, override=False,
|
|
675
|
-
"
|
|
676
|
-
"
|
|
677
|
-
"
|
|
678
|
-
"
|
|
679
|
-
"
|
|
680
|
-
"ld(name='timeout', annotation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fields.5.defaul"
|
|
681
|
-
"t'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=Non"
|
|
682
|
-
"e, check_type=None)), self_param='self', std_params=(), kw_only_params=('urls', 'include_images', 'include_fav"
|
|
683
|
-
"icon', 'extract_depth', 'format', 'timeout'), frozen=True, slots=False, post_init_params=None, init_fns=(), va"
|
|
684
|
-
"lidate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='urls', kw_only=True, fn=None), ReprPlan.Field(name='incl"
|
|
685
|
-
"ude_images', kw_only=True, fn=None), ReprPlan.Field(name='include_favicon', kw_only=True, fn=None), ReprPlan.F"
|
|
686
|
-
"ield(name='extract_depth', kw_only=True, fn=None), ReprPlan.Field(name='format', kw_only=True, fn=None), ReprP"
|
|
687
|
-
"lan.Field(name='timeout', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
569
|
+
"Plans(tup=(CopyPlan(fields=('url', 'raw_content', 'images', 'favicon')), EqPlan(fields=('url', 'raw_content', "
|
|
570
|
+
"'images', 'favicon')), FrozenPlan(fields=('url', 'raw_content', 'images', 'favicon'), allow_dynamic_dunder_att"
|
|
571
|
+
"rs=False), HashPlan(action='add', fields=('url', 'raw_content', 'images', 'favicon'), cache=False), InitPlan(f"
|
|
572
|
+
"ields=(InitPlan.Field(name='url', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_fac"
|
|
573
|
+
"tory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=No"
|
|
574
|
+
"ne), InitPlan.Field(name='raw_content', annotation=OpRef(name='init.fields.1.annotation'), default=None, defau"
|
|
575
|
+
"lt_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_t"
|
|
576
|
+
"ype=None), InitPlan.Field(name='images', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name"
|
|
577
|
+
"='init.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coe"
|
|
578
|
+
"rce=None, validate=None, check_type=None), InitPlan.Field(name='favicon', annotation=OpRef(name='init.fields.3"
|
|
579
|
+
".annotation'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=False, f"
|
|
580
|
+
"ield_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(),"
|
|
581
|
+
" kw_only_params=('url', 'raw_content', 'images', 'favicon'), frozen=True, slots=False, post_init_params=None, "
|
|
582
|
+
"init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='url', kw_only=True, fn=None), ReprPlan.Fi"
|
|
583
|
+
"eld(name='raw_content', kw_only=True, fn=None), ReprPlan.Field(name='images', kw_only=True, fn=None), ReprPlan"
|
|
584
|
+
".Field(name='favicon', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
688
585
|
),
|
|
689
|
-
plan_repr_sha1='
|
|
586
|
+
plan_repr_sha1='97f06c15926ba4bb103416285c597e19032efb28',
|
|
690
587
|
op_ref_idents=(
|
|
691
588
|
'__dataclass__init__fields__0__annotation',
|
|
692
589
|
'__dataclass__init__fields__1__annotation',
|
|
693
|
-
'__dataclass__init__fields__1__default',
|
|
694
590
|
'__dataclass__init__fields__2__annotation',
|
|
695
591
|
'__dataclass__init__fields__2__default',
|
|
696
592
|
'__dataclass__init__fields__3__annotation',
|
|
697
593
|
'__dataclass__init__fields__3__default',
|
|
698
|
-
'__dataclass__init__fields__4__annotation',
|
|
699
|
-
'__dataclass__init__fields__4__default',
|
|
700
|
-
'__dataclass__init__fields__5__annotation',
|
|
701
|
-
'__dataclass__init__fields__5__default',
|
|
702
594
|
),
|
|
703
595
|
cls_names=(
|
|
704
|
-
('ommlds.backends.tavily.protocol', '
|
|
596
|
+
('ommlds.backends.tavily.protocol', 'ExtractResponse.Result'),
|
|
705
597
|
),
|
|
706
598
|
)
|
|
707
|
-
def
|
|
599
|
+
def _process_dataclass__97f06c15926ba4bb103416285c597e19032efb28():
|
|
708
600
|
def _process_dataclass(
|
|
709
601
|
*,
|
|
710
602
|
__dataclass__cls,
|
|
711
603
|
__dataclass__init__fields__0__annotation,
|
|
712
604
|
__dataclass__init__fields__1__annotation,
|
|
713
|
-
__dataclass__init__fields__1__default,
|
|
714
605
|
__dataclass__init__fields__2__annotation,
|
|
715
606
|
__dataclass__init__fields__2__default,
|
|
716
607
|
__dataclass__init__fields__3__annotation,
|
|
717
608
|
__dataclass__init__fields__3__default,
|
|
718
|
-
__dataclass__init__fields__4__annotation,
|
|
719
|
-
__dataclass__init__fields__4__default,
|
|
720
|
-
__dataclass__init__fields__5__annotation,
|
|
721
|
-
__dataclass__init__fields__5__default,
|
|
722
609
|
__dataclass__FieldFnValidationError, # noqa
|
|
723
610
|
__dataclass__FieldTypeValidationError, # noqa
|
|
724
611
|
__dataclass__FnValidationError, # noqa
|
|
@@ -737,12 +624,10 @@ def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
|
737
624
|
if self.__class__ is not __dataclass__cls:
|
|
738
625
|
raise TypeError(self)
|
|
739
626
|
return __dataclass__cls( # noqa
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
format=self.format,
|
|
745
|
-
timeout=self.timeout,
|
|
627
|
+
url=self.url,
|
|
628
|
+
raw_content=self.raw_content,
|
|
629
|
+
images=self.images,
|
|
630
|
+
favicon=self.favicon,
|
|
746
631
|
)
|
|
747
632
|
|
|
748
633
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -756,12 +641,10 @@ def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
|
756
641
|
if self.__class__ is not other.__class__:
|
|
757
642
|
return NotImplemented
|
|
758
643
|
return (
|
|
759
|
-
self.
|
|
760
|
-
self.
|
|
761
|
-
self.
|
|
762
|
-
self.
|
|
763
|
-
self.format == other.format and
|
|
764
|
-
self.timeout == other.timeout
|
|
644
|
+
self.url == other.url and
|
|
645
|
+
self.raw_content == other.raw_content and
|
|
646
|
+
self.images == other.images and
|
|
647
|
+
self.favicon == other.favicon
|
|
765
648
|
)
|
|
766
649
|
|
|
767
650
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -770,12 +653,10 @@ def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
|
770
653
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
771
654
|
|
|
772
655
|
__dataclass___setattr_frozen_fields = {
|
|
773
|
-
'
|
|
774
|
-
'
|
|
775
|
-
'
|
|
776
|
-
'
|
|
777
|
-
'format',
|
|
778
|
-
'timeout',
|
|
656
|
+
'url',
|
|
657
|
+
'raw_content',
|
|
658
|
+
'images',
|
|
659
|
+
'favicon',
|
|
779
660
|
}
|
|
780
661
|
|
|
781
662
|
def __setattr__(self, name, value):
|
|
@@ -792,12 +673,10 @@ def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
|
792
673
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
793
674
|
|
|
794
675
|
__dataclass___delattr_frozen_fields = {
|
|
795
|
-
'
|
|
796
|
-
'
|
|
797
|
-
'
|
|
798
|
-
'
|
|
799
|
-
'format',
|
|
800
|
-
'timeout',
|
|
676
|
+
'url',
|
|
677
|
+
'raw_content',
|
|
678
|
+
'images',
|
|
679
|
+
'favicon',
|
|
801
680
|
}
|
|
802
681
|
|
|
803
682
|
def __delattr__(self, name):
|
|
@@ -815,12 +694,10 @@ def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
|
815
694
|
|
|
816
695
|
def __hash__(self):
|
|
817
696
|
return hash((
|
|
818
|
-
self.
|
|
819
|
-
self.
|
|
820
|
-
self.
|
|
821
|
-
self.
|
|
822
|
-
self.format,
|
|
823
|
-
self.timeout,
|
|
697
|
+
self.url,
|
|
698
|
+
self.raw_content,
|
|
699
|
+
self.images,
|
|
700
|
+
self.favicon,
|
|
824
701
|
))
|
|
825
702
|
|
|
826
703
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -829,19 +706,15 @@ def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
|
829
706
|
def __init__(
|
|
830
707
|
self,
|
|
831
708
|
*,
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
format: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
837
|
-
timeout: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
709
|
+
url: __dataclass__init__fields__0__annotation,
|
|
710
|
+
raw_content: __dataclass__init__fields__1__annotation,
|
|
711
|
+
images: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
712
|
+
favicon: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
838
713
|
) -> __dataclass__None:
|
|
839
|
-
__dataclass__object_setattr(self, '
|
|
840
|
-
__dataclass__object_setattr(self, '
|
|
841
|
-
__dataclass__object_setattr(self, '
|
|
842
|
-
__dataclass__object_setattr(self, '
|
|
843
|
-
__dataclass__object_setattr(self, 'format', format)
|
|
844
|
-
__dataclass__object_setattr(self, 'timeout', timeout)
|
|
714
|
+
__dataclass__object_setattr(self, 'url', url)
|
|
715
|
+
__dataclass__object_setattr(self, 'raw_content', raw_content)
|
|
716
|
+
__dataclass__object_setattr(self, 'images', images)
|
|
717
|
+
__dataclass__object_setattr(self, 'favicon', favicon)
|
|
845
718
|
|
|
846
719
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
847
720
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -851,342 +724,10 @@ def _process_dataclass__6ead422c0d2c606d1aad27cad5dfa1eb3a805e5b():
|
|
|
851
724
|
@__dataclass___recursive_repr()
|
|
852
725
|
def __repr__(self):
|
|
853
726
|
parts = []
|
|
854
|
-
parts.append(f"
|
|
855
|
-
parts.append(f"
|
|
856
|
-
parts.append(f"
|
|
857
|
-
parts.append(f"
|
|
858
|
-
parts.append(f"format={self.format!r}")
|
|
859
|
-
parts.append(f"timeout={self.timeout!r}")
|
|
860
|
-
return (
|
|
861
|
-
f"{self.__class__.__qualname__}("
|
|
862
|
-
f"{', '.join(parts)}"
|
|
863
|
-
f")"
|
|
864
|
-
)
|
|
865
|
-
|
|
866
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
867
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
868
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
869
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
870
|
-
|
|
871
|
-
return _process_dataclass
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
@_register(
|
|
875
|
-
plan_repr=(
|
|
876
|
-
"Plans(tup=(CopyPlan(fields=('url', 'description')), EqPlan(fields=('url', 'description')), FrozenPlan(fields=("
|
|
877
|
-
"'url', 'description'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('url', 'description')"
|
|
878
|
-
", cache=False), InitPlan(fields=(InitPlan.Field(name='url', annotation=OpRef(name='init.fields.0.annotation'),"
|
|
879
|
-
" default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=Fiel"
|
|
880
|
-
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='description', annotation=Op"
|
|
881
|
-
"Ref(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init="
|
|
882
|
-
"True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param"
|
|
883
|
-
"='self', std_params=(), kw_only_params=('url', 'description'), frozen=True, slots=False, post_init_params=None"
|
|
884
|
-
", init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='url', kw_only=True, fn=None), ReprPlan."
|
|
885
|
-
"Field(name='description', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
886
|
-
),
|
|
887
|
-
plan_repr_sha1='7ea40ca3c340a71cd7f76429b1c7d7df19dd83f5',
|
|
888
|
-
op_ref_idents=(
|
|
889
|
-
'__dataclass__init__fields__0__annotation',
|
|
890
|
-
'__dataclass__init__fields__0__default',
|
|
891
|
-
'__dataclass__init__fields__1__annotation',
|
|
892
|
-
'__dataclass__init__fields__1__default',
|
|
893
|
-
),
|
|
894
|
-
cls_names=(
|
|
895
|
-
('ommlds.backends.tavily.protocol', 'SearchResponse.Image'),
|
|
896
|
-
),
|
|
897
|
-
)
|
|
898
|
-
def _process_dataclass__7ea40ca3c340a71cd7f76429b1c7d7df19dd83f5():
|
|
899
|
-
def _process_dataclass(
|
|
900
|
-
*,
|
|
901
|
-
__dataclass__cls,
|
|
902
|
-
__dataclass__init__fields__0__annotation,
|
|
903
|
-
__dataclass__init__fields__0__default,
|
|
904
|
-
__dataclass__init__fields__1__annotation,
|
|
905
|
-
__dataclass__init__fields__1__default,
|
|
906
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
907
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
908
|
-
__dataclass__FnValidationError, # noqa
|
|
909
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
910
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
911
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
912
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
913
|
-
__dataclass__None=None, # noqa
|
|
914
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
915
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
916
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
917
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
918
|
-
__dataclass__property=property, # noqa
|
|
919
|
-
):
|
|
920
|
-
def __copy__(self):
|
|
921
|
-
if self.__class__ is not __dataclass__cls:
|
|
922
|
-
raise TypeError(self)
|
|
923
|
-
return __dataclass__cls( # noqa
|
|
924
|
-
url=self.url,
|
|
925
|
-
description=self.description,
|
|
926
|
-
)
|
|
927
|
-
|
|
928
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
929
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
930
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
931
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
932
|
-
|
|
933
|
-
def __eq__(self, other):
|
|
934
|
-
if self is other:
|
|
935
|
-
return True
|
|
936
|
-
if self.__class__ is not other.__class__:
|
|
937
|
-
return NotImplemented
|
|
938
|
-
return (
|
|
939
|
-
self.url == other.url and
|
|
940
|
-
self.description == other.description
|
|
941
|
-
)
|
|
942
|
-
|
|
943
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
944
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
945
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
946
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
947
|
-
|
|
948
|
-
__dataclass___setattr_frozen_fields = {
|
|
949
|
-
'url',
|
|
950
|
-
'description',
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
def __setattr__(self, name, value):
|
|
954
|
-
if (
|
|
955
|
-
type(self) is __dataclass__cls
|
|
956
|
-
or name in __dataclass___setattr_frozen_fields
|
|
957
|
-
):
|
|
958
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
959
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
960
|
-
|
|
961
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
962
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
963
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
964
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
965
|
-
|
|
966
|
-
__dataclass___delattr_frozen_fields = {
|
|
967
|
-
'url',
|
|
968
|
-
'description',
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
def __delattr__(self, name):
|
|
972
|
-
if (
|
|
973
|
-
type(self) is __dataclass__cls
|
|
974
|
-
or name in __dataclass___delattr_frozen_fields
|
|
975
|
-
):
|
|
976
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
977
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
978
|
-
|
|
979
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
980
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
981
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
982
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
983
|
-
|
|
984
|
-
def __hash__(self):
|
|
985
|
-
return hash((
|
|
986
|
-
self.url,
|
|
987
|
-
self.description,
|
|
988
|
-
))
|
|
989
|
-
|
|
990
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
991
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
992
|
-
|
|
993
|
-
def __init__(
|
|
994
|
-
self,
|
|
995
|
-
*,
|
|
996
|
-
url: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
997
|
-
description: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
998
|
-
) -> __dataclass__None:
|
|
999
|
-
__dataclass__object_setattr(self, 'url', url)
|
|
1000
|
-
__dataclass__object_setattr(self, 'description', description)
|
|
1001
|
-
|
|
1002
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1003
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
1004
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1005
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
1006
|
-
|
|
1007
|
-
@__dataclass___recursive_repr()
|
|
1008
|
-
def __repr__(self):
|
|
1009
|
-
parts = []
|
|
1010
|
-
parts.append(f"url={self.url!r}")
|
|
1011
|
-
parts.append(f"description={self.description!r}")
|
|
1012
|
-
return (
|
|
1013
|
-
f"{self.__class__.__qualname__}("
|
|
1014
|
-
f"{', '.join(parts)}"
|
|
1015
|
-
f")"
|
|
1016
|
-
)
|
|
1017
|
-
|
|
1018
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1019
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
1020
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1021
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1022
|
-
|
|
1023
|
-
return _process_dataclass
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
@_register(
|
|
1027
|
-
plan_repr=(
|
|
1028
|
-
"Plans(tup=(CopyPlan(fields=('url', 'raw_content', 'images', 'favicon')), EqPlan(fields=('url', 'raw_content', "
|
|
1029
|
-
"'images', 'favicon')), FrozenPlan(fields=('url', 'raw_content', 'images', 'favicon'), allow_dynamic_dunder_att"
|
|
1030
|
-
"rs=False), HashPlan(action='add', fields=('url', 'raw_content', 'images', 'favicon'), cache=False), InitPlan(f"
|
|
1031
|
-
"ields=(InitPlan.Field(name='url', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_fac"
|
|
1032
|
-
"tory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=No"
|
|
1033
|
-
"ne), InitPlan.Field(name='raw_content', annotation=OpRef(name='init.fields.1.annotation'), default=None, defau"
|
|
1034
|
-
"lt_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_t"
|
|
1035
|
-
"ype=None), InitPlan.Field(name='images', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name"
|
|
1036
|
-
"='init.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coe"
|
|
1037
|
-
"rce=None, validate=None, check_type=None), InitPlan.Field(name='favicon', annotation=OpRef(name='init.fields.3"
|
|
1038
|
-
".annotation'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=True, override=False, f"
|
|
1039
|
-
"ield_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(),"
|
|
1040
|
-
" kw_only_params=('url', 'raw_content', 'images', 'favicon'), frozen=True, slots=False, post_init_params=None, "
|
|
1041
|
-
"init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='url', kw_only=True, fn=None), ReprPlan.Fi"
|
|
1042
|
-
"eld(name='raw_content', kw_only=True, fn=None), ReprPlan.Field(name='images', kw_only=True, fn=None), ReprPlan"
|
|
1043
|
-
".Field(name='favicon', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1044
|
-
),
|
|
1045
|
-
plan_repr_sha1='97f06c15926ba4bb103416285c597e19032efb28',
|
|
1046
|
-
op_ref_idents=(
|
|
1047
|
-
'__dataclass__init__fields__0__annotation',
|
|
1048
|
-
'__dataclass__init__fields__1__annotation',
|
|
1049
|
-
'__dataclass__init__fields__2__annotation',
|
|
1050
|
-
'__dataclass__init__fields__2__default',
|
|
1051
|
-
'__dataclass__init__fields__3__annotation',
|
|
1052
|
-
'__dataclass__init__fields__3__default',
|
|
1053
|
-
),
|
|
1054
|
-
cls_names=(
|
|
1055
|
-
('ommlds.backends.tavily.protocol', 'ExtractResponse.Result'),
|
|
1056
|
-
),
|
|
1057
|
-
)
|
|
1058
|
-
def _process_dataclass__97f06c15926ba4bb103416285c597e19032efb28():
|
|
1059
|
-
def _process_dataclass(
|
|
1060
|
-
*,
|
|
1061
|
-
__dataclass__cls,
|
|
1062
|
-
__dataclass__init__fields__0__annotation,
|
|
1063
|
-
__dataclass__init__fields__1__annotation,
|
|
1064
|
-
__dataclass__init__fields__2__annotation,
|
|
1065
|
-
__dataclass__init__fields__2__default,
|
|
1066
|
-
__dataclass__init__fields__3__annotation,
|
|
1067
|
-
__dataclass__init__fields__3__default,
|
|
1068
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
1069
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
1070
|
-
__dataclass__FnValidationError, # noqa
|
|
1071
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1072
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1073
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1074
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1075
|
-
__dataclass__None=None, # noqa
|
|
1076
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
1077
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1078
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
1079
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1080
|
-
__dataclass__property=property, # noqa
|
|
1081
|
-
):
|
|
1082
|
-
def __copy__(self):
|
|
1083
|
-
if self.__class__ is not __dataclass__cls:
|
|
1084
|
-
raise TypeError(self)
|
|
1085
|
-
return __dataclass__cls( # noqa
|
|
1086
|
-
url=self.url,
|
|
1087
|
-
raw_content=self.raw_content,
|
|
1088
|
-
images=self.images,
|
|
1089
|
-
favicon=self.favicon,
|
|
1090
|
-
)
|
|
1091
|
-
|
|
1092
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1093
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
1094
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1095
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1096
|
-
|
|
1097
|
-
def __eq__(self, other):
|
|
1098
|
-
if self is other:
|
|
1099
|
-
return True
|
|
1100
|
-
if self.__class__ is not other.__class__:
|
|
1101
|
-
return NotImplemented
|
|
1102
|
-
return (
|
|
1103
|
-
self.url == other.url and
|
|
1104
|
-
self.raw_content == other.raw_content and
|
|
1105
|
-
self.images == other.images and
|
|
1106
|
-
self.favicon == other.favicon
|
|
1107
|
-
)
|
|
1108
|
-
|
|
1109
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1110
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
1111
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1112
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1113
|
-
|
|
1114
|
-
__dataclass___setattr_frozen_fields = {
|
|
1115
|
-
'url',
|
|
1116
|
-
'raw_content',
|
|
1117
|
-
'images',
|
|
1118
|
-
'favicon',
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
def __setattr__(self, name, value):
|
|
1122
|
-
if (
|
|
1123
|
-
type(self) is __dataclass__cls
|
|
1124
|
-
or name in __dataclass___setattr_frozen_fields
|
|
1125
|
-
):
|
|
1126
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1127
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1128
|
-
|
|
1129
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1130
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1131
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1132
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1133
|
-
|
|
1134
|
-
__dataclass___delattr_frozen_fields = {
|
|
1135
|
-
'url',
|
|
1136
|
-
'raw_content',
|
|
1137
|
-
'images',
|
|
1138
|
-
'favicon',
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
def __delattr__(self, name):
|
|
1142
|
-
if (
|
|
1143
|
-
type(self) is __dataclass__cls
|
|
1144
|
-
or name in __dataclass___delattr_frozen_fields
|
|
1145
|
-
):
|
|
1146
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1147
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
1148
|
-
|
|
1149
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1150
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1151
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1152
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1153
|
-
|
|
1154
|
-
def __hash__(self):
|
|
1155
|
-
return hash((
|
|
1156
|
-
self.url,
|
|
1157
|
-
self.raw_content,
|
|
1158
|
-
self.images,
|
|
1159
|
-
self.favicon,
|
|
1160
|
-
))
|
|
1161
|
-
|
|
1162
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1163
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1164
|
-
|
|
1165
|
-
def __init__(
|
|
1166
|
-
self,
|
|
1167
|
-
*,
|
|
1168
|
-
url: __dataclass__init__fields__0__annotation,
|
|
1169
|
-
raw_content: __dataclass__init__fields__1__annotation,
|
|
1170
|
-
images: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1171
|
-
favicon: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1172
|
-
) -> __dataclass__None:
|
|
1173
|
-
__dataclass__object_setattr(self, 'url', url)
|
|
1174
|
-
__dataclass__object_setattr(self, 'raw_content', raw_content)
|
|
1175
|
-
__dataclass__object_setattr(self, 'images', images)
|
|
1176
|
-
__dataclass__object_setattr(self, 'favicon', favicon)
|
|
1177
|
-
|
|
1178
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1179
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
1180
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1181
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
1182
|
-
|
|
1183
|
-
@__dataclass___recursive_repr()
|
|
1184
|
-
def __repr__(self):
|
|
1185
|
-
parts = []
|
|
1186
|
-
parts.append(f"url={self.url!r}")
|
|
1187
|
-
parts.append(f"raw_content={self.raw_content!r}")
|
|
1188
|
-
parts.append(f"images={self.images!r}")
|
|
1189
|
-
parts.append(f"favicon={self.favicon!r}")
|
|
727
|
+
parts.append(f"url={self.url!r}")
|
|
728
|
+
parts.append(f"raw_content={self.raw_content!r}")
|
|
729
|
+
parts.append(f"images={self.images!r}")
|
|
730
|
+
parts.append(f"favicon={self.favicon!r}")
|
|
1190
731
|
return (
|
|
1191
732
|
f"{self.__class__.__qualname__}("
|
|
1192
733
|
f"{', '.join(parts)}"
|
|
@@ -1395,23 +936,506 @@ def _process_dataclass__bd96288940e857f7d97cf10301452de930241668():
|
|
|
1395
936
|
if self.__class__ is not other.__class__:
|
|
1396
937
|
return NotImplemented
|
|
1397
938
|
return (
|
|
1398
|
-
self.query == other.query and
|
|
1399
|
-
self.auto_parameters == other.auto_parameters and
|
|
1400
|
-
self.topic == other.topic and
|
|
1401
|
-
self.search_depth == other.search_depth and
|
|
1402
|
-
self.chunks_per_source == other.chunks_per_source and
|
|
1403
|
-
self.max_results == other.max_results and
|
|
1404
|
-
self.time_range == other.time_range and
|
|
1405
|
-
self.start_date == other.start_date and
|
|
1406
|
-
self.end_date == other.end_date and
|
|
1407
|
-
self.include_answer == other.include_answer and
|
|
1408
|
-
self.include_raw_content == other.include_raw_content and
|
|
1409
|
-
self.include_images == other.include_images and
|
|
1410
|
-
self.include_image_descriptions == other.include_image_descriptions and
|
|
1411
|
-
self.include_favicon == other.include_favicon and
|
|
1412
|
-
self.include_domains == other.include_domains and
|
|
1413
|
-
self.exclude_domains == other.exclude_domains and
|
|
1414
|
-
self.country == other.country
|
|
939
|
+
self.query == other.query and
|
|
940
|
+
self.auto_parameters == other.auto_parameters and
|
|
941
|
+
self.topic == other.topic and
|
|
942
|
+
self.search_depth == other.search_depth and
|
|
943
|
+
self.chunks_per_source == other.chunks_per_source and
|
|
944
|
+
self.max_results == other.max_results and
|
|
945
|
+
self.time_range == other.time_range and
|
|
946
|
+
self.start_date == other.start_date and
|
|
947
|
+
self.end_date == other.end_date and
|
|
948
|
+
self.include_answer == other.include_answer and
|
|
949
|
+
self.include_raw_content == other.include_raw_content and
|
|
950
|
+
self.include_images == other.include_images and
|
|
951
|
+
self.include_image_descriptions == other.include_image_descriptions and
|
|
952
|
+
self.include_favicon == other.include_favicon and
|
|
953
|
+
self.include_domains == other.include_domains and
|
|
954
|
+
self.exclude_domains == other.exclude_domains and
|
|
955
|
+
self.country == other.country
|
|
956
|
+
)
|
|
957
|
+
|
|
958
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
959
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
960
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
961
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
962
|
+
|
|
963
|
+
__dataclass___setattr_frozen_fields = {
|
|
964
|
+
'query',
|
|
965
|
+
'auto_parameters',
|
|
966
|
+
'topic',
|
|
967
|
+
'search_depth',
|
|
968
|
+
'chunks_per_source',
|
|
969
|
+
'max_results',
|
|
970
|
+
'time_range',
|
|
971
|
+
'start_date',
|
|
972
|
+
'end_date',
|
|
973
|
+
'include_answer',
|
|
974
|
+
'include_raw_content',
|
|
975
|
+
'include_images',
|
|
976
|
+
'include_image_descriptions',
|
|
977
|
+
'include_favicon',
|
|
978
|
+
'include_domains',
|
|
979
|
+
'exclude_domains',
|
|
980
|
+
'country',
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
def __setattr__(self, name, value):
|
|
984
|
+
if (
|
|
985
|
+
type(self) is __dataclass__cls
|
|
986
|
+
or name in __dataclass___setattr_frozen_fields
|
|
987
|
+
):
|
|
988
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
989
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
990
|
+
|
|
991
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
992
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
993
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
994
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
995
|
+
|
|
996
|
+
__dataclass___delattr_frozen_fields = {
|
|
997
|
+
'query',
|
|
998
|
+
'auto_parameters',
|
|
999
|
+
'topic',
|
|
1000
|
+
'search_depth',
|
|
1001
|
+
'chunks_per_source',
|
|
1002
|
+
'max_results',
|
|
1003
|
+
'time_range',
|
|
1004
|
+
'start_date',
|
|
1005
|
+
'end_date',
|
|
1006
|
+
'include_answer',
|
|
1007
|
+
'include_raw_content',
|
|
1008
|
+
'include_images',
|
|
1009
|
+
'include_image_descriptions',
|
|
1010
|
+
'include_favicon',
|
|
1011
|
+
'include_domains',
|
|
1012
|
+
'exclude_domains',
|
|
1013
|
+
'country',
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
def __delattr__(self, name):
|
|
1017
|
+
if (
|
|
1018
|
+
type(self) is __dataclass__cls
|
|
1019
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1020
|
+
):
|
|
1021
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1022
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1023
|
+
|
|
1024
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1025
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1026
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1027
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1028
|
+
|
|
1029
|
+
def __hash__(self):
|
|
1030
|
+
return hash((
|
|
1031
|
+
self.query,
|
|
1032
|
+
self.auto_parameters,
|
|
1033
|
+
self.topic,
|
|
1034
|
+
self.search_depth,
|
|
1035
|
+
self.chunks_per_source,
|
|
1036
|
+
self.max_results,
|
|
1037
|
+
self.time_range,
|
|
1038
|
+
self.start_date,
|
|
1039
|
+
self.end_date,
|
|
1040
|
+
self.include_answer,
|
|
1041
|
+
self.include_raw_content,
|
|
1042
|
+
self.include_images,
|
|
1043
|
+
self.include_image_descriptions,
|
|
1044
|
+
self.include_favicon,
|
|
1045
|
+
self.include_domains,
|
|
1046
|
+
self.exclude_domains,
|
|
1047
|
+
self.country,
|
|
1048
|
+
))
|
|
1049
|
+
|
|
1050
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1051
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1052
|
+
|
|
1053
|
+
def __init__(
|
|
1054
|
+
self,
|
|
1055
|
+
*,
|
|
1056
|
+
query: __dataclass__init__fields__0__annotation,
|
|
1057
|
+
auto_parameters: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1058
|
+
topic: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1059
|
+
search_depth: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1060
|
+
chunks_per_source: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1061
|
+
max_results: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
1062
|
+
time_range: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
1063
|
+
start_date: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
1064
|
+
end_date: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
1065
|
+
include_answer: __dataclass__init__fields__9__annotation = __dataclass__init__fields__9__default,
|
|
1066
|
+
include_raw_content: __dataclass__init__fields__10__annotation = __dataclass__init__fields__10__default,
|
|
1067
|
+
include_images: __dataclass__init__fields__11__annotation = __dataclass__init__fields__11__default,
|
|
1068
|
+
include_image_descriptions: __dataclass__init__fields__12__annotation = __dataclass__init__fields__12__default,
|
|
1069
|
+
include_favicon: __dataclass__init__fields__13__annotation = __dataclass__init__fields__13__default,
|
|
1070
|
+
include_domains: __dataclass__init__fields__14__annotation = __dataclass__init__fields__14__default,
|
|
1071
|
+
exclude_domains: __dataclass__init__fields__15__annotation = __dataclass__init__fields__15__default,
|
|
1072
|
+
country: __dataclass__init__fields__16__annotation = __dataclass__init__fields__16__default,
|
|
1073
|
+
) -> __dataclass__None:
|
|
1074
|
+
__dataclass__object_setattr(self, 'query', query)
|
|
1075
|
+
__dataclass__object_setattr(self, 'auto_parameters', auto_parameters)
|
|
1076
|
+
__dataclass__object_setattr(self, 'topic', topic)
|
|
1077
|
+
__dataclass__object_setattr(self, 'search_depth', search_depth)
|
|
1078
|
+
__dataclass__object_setattr(self, 'chunks_per_source', chunks_per_source)
|
|
1079
|
+
__dataclass__object_setattr(self, 'max_results', max_results)
|
|
1080
|
+
__dataclass__object_setattr(self, 'time_range', time_range)
|
|
1081
|
+
__dataclass__object_setattr(self, 'start_date', start_date)
|
|
1082
|
+
__dataclass__object_setattr(self, 'end_date', end_date)
|
|
1083
|
+
__dataclass__object_setattr(self, 'include_answer', include_answer)
|
|
1084
|
+
__dataclass__object_setattr(self, 'include_raw_content', include_raw_content)
|
|
1085
|
+
__dataclass__object_setattr(self, 'include_images', include_images)
|
|
1086
|
+
__dataclass__object_setattr(self, 'include_image_descriptions', include_image_descriptions)
|
|
1087
|
+
__dataclass__object_setattr(self, 'include_favicon', include_favicon)
|
|
1088
|
+
__dataclass__object_setattr(self, 'include_domains', include_domains)
|
|
1089
|
+
__dataclass__object_setattr(self, 'exclude_domains', exclude_domains)
|
|
1090
|
+
__dataclass__object_setattr(self, 'country', country)
|
|
1091
|
+
|
|
1092
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1093
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1094
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1095
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1096
|
+
|
|
1097
|
+
@__dataclass___recursive_repr()
|
|
1098
|
+
def __repr__(self):
|
|
1099
|
+
parts = []
|
|
1100
|
+
parts.append(f"query={self.query!r}")
|
|
1101
|
+
parts.append(f"auto_parameters={self.auto_parameters!r}")
|
|
1102
|
+
parts.append(f"topic={self.topic!r}")
|
|
1103
|
+
parts.append(f"search_depth={self.search_depth!r}")
|
|
1104
|
+
parts.append(f"chunks_per_source={self.chunks_per_source!r}")
|
|
1105
|
+
parts.append(f"max_results={self.max_results!r}")
|
|
1106
|
+
parts.append(f"time_range={self.time_range!r}")
|
|
1107
|
+
parts.append(f"start_date={self.start_date!r}")
|
|
1108
|
+
parts.append(f"end_date={self.end_date!r}")
|
|
1109
|
+
parts.append(f"include_answer={self.include_answer!r}")
|
|
1110
|
+
parts.append(f"include_raw_content={self.include_raw_content!r}")
|
|
1111
|
+
parts.append(f"include_images={self.include_images!r}")
|
|
1112
|
+
parts.append(f"include_image_descriptions={self.include_image_descriptions!r}")
|
|
1113
|
+
parts.append(f"include_favicon={self.include_favicon!r}")
|
|
1114
|
+
parts.append(f"include_domains={self.include_domains!r}")
|
|
1115
|
+
parts.append(f"exclude_domains={self.exclude_domains!r}")
|
|
1116
|
+
parts.append(f"country={self.country!r}")
|
|
1117
|
+
return (
|
|
1118
|
+
f"{self.__class__.__qualname__}("
|
|
1119
|
+
f"{', '.join(parts)}"
|
|
1120
|
+
f")"
|
|
1121
|
+
)
|
|
1122
|
+
|
|
1123
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1124
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1125
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1126
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1127
|
+
|
|
1128
|
+
return _process_dataclass
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
@_register(
|
|
1132
|
+
plan_repr=(
|
|
1133
|
+
"Plans(tup=(CopyPlan(fields=('query', 'answer', 'images', 'results', 'follow_up_questions', 'auto_parameters', "
|
|
1134
|
+
"'response_time', 'request_id')), EqPlan(fields=('query', 'answer', 'images', 'results', 'follow_up_questions',"
|
|
1135
|
+
" 'auto_parameters', 'response_time', 'request_id')), FrozenPlan(fields=('query', 'answer', 'images', 'results'"
|
|
1136
|
+
", 'follow_up_questions', 'auto_parameters', 'response_time', 'request_id'), allow_dynamic_dunder_attrs=False),"
|
|
1137
|
+
" HashPlan(action='add', fields=('query', 'answer', 'images', 'results', 'follow_up_questions', 'auto_parameter"
|
|
1138
|
+
"s', 'response_time', 'request_id'), cache=False), InitPlan(fields=(InitPlan.Field(name='query', annotation=OpR"
|
|
1139
|
+
"ef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_type"
|
|
1140
|
+
"=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='answer', annotation=Op"
|
|
1141
|
+
"Ref(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False, field_typ"
|
|
1142
|
+
"e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='images', annotation=O"
|
|
1143
|
+
"pRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init"
|
|
1144
|
+
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.F"
|
|
1145
|
+
"ield(name='results', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.defa"
|
|
1146
|
+
"ult'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
1147
|
+
"one, check_type=None), InitPlan.Field(name='follow_up_questions', annotation=OpRef(name='init.fields.4.annotat"
|
|
1148
|
+
"ion'), default=OpRef(name='init.fields.4.default'), default_factory=None, init=True, override=False, field_typ"
|
|
1149
|
+
"e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='auto_parameters', ann"
|
|
1150
|
+
"otation=OpRef(name='init.fields.5.annotation'), default=OpRef(name='init.fields.5.default'), default_factory=N"
|
|
1151
|
+
"one, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), I"
|
|
1152
|
+
"nitPlan.Field(name='response_time', annotation=OpRef(name='init.fields.6.annotation'), default=OpRef(name='ini"
|
|
1153
|
+
"t.fields.6.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=N"
|
|
1154
|
+
"one, validate=None, check_type=None), InitPlan.Field(name='request_id', annotation=OpRef(name='init.fields.7.a"
|
|
1155
|
+
"nnotation'), default=OpRef(name='init.fields.7.default'), default_factory=None, init=True, override=False, fie"
|
|
1156
|
+
"ld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), k"
|
|
1157
|
+
"w_only_params=('query', 'answer', 'images', 'results', 'follow_up_questions', 'auto_parameters', 'response_tim"
|
|
1158
|
+
"e', 'request_id'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fi"
|
|
1159
|
+
"elds=(ReprPlan.Field(name='query', kw_only=True, fn=None), ReprPlan.Field(name='answer', kw_only=True, fn=None"
|
|
1160
|
+
"), ReprPlan.Field(name='images', kw_only=True, fn=None), ReprPlan.Field(name='results', kw_only=True, fn=None)"
|
|
1161
|
+
", ReprPlan.Field(name='follow_up_questions', kw_only=True, fn=None), ReprPlan.Field(name='auto_parameters', kw"
|
|
1162
|
+
"_only=True, fn=None), ReprPlan.Field(name='response_time', kw_only=True, fn=None), ReprPlan.Field(name='reques"
|
|
1163
|
+
"t_id', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1164
|
+
),
|
|
1165
|
+
plan_repr_sha1='6e49d9453b568b6b35d19ff897f810414abc4b2a',
|
|
1166
|
+
op_ref_idents=(
|
|
1167
|
+
'__dataclass__init__fields__0__annotation',
|
|
1168
|
+
'__dataclass__init__fields__1__annotation',
|
|
1169
|
+
'__dataclass__init__fields__2__annotation',
|
|
1170
|
+
'__dataclass__init__fields__2__default',
|
|
1171
|
+
'__dataclass__init__fields__3__annotation',
|
|
1172
|
+
'__dataclass__init__fields__3__default',
|
|
1173
|
+
'__dataclass__init__fields__4__annotation',
|
|
1174
|
+
'__dataclass__init__fields__4__default',
|
|
1175
|
+
'__dataclass__init__fields__5__annotation',
|
|
1176
|
+
'__dataclass__init__fields__5__default',
|
|
1177
|
+
'__dataclass__init__fields__6__annotation',
|
|
1178
|
+
'__dataclass__init__fields__6__default',
|
|
1179
|
+
'__dataclass__init__fields__7__annotation',
|
|
1180
|
+
'__dataclass__init__fields__7__default',
|
|
1181
|
+
),
|
|
1182
|
+
cls_names=(
|
|
1183
|
+
('ommlds.backends.tavily.protocol', 'SearchResponse'),
|
|
1184
|
+
),
|
|
1185
|
+
)
|
|
1186
|
+
def _process_dataclass__6e49d9453b568b6b35d19ff897f810414abc4b2a():
|
|
1187
|
+
def _process_dataclass(
|
|
1188
|
+
*,
|
|
1189
|
+
__dataclass__cls,
|
|
1190
|
+
__dataclass__init__fields__0__annotation,
|
|
1191
|
+
__dataclass__init__fields__1__annotation,
|
|
1192
|
+
__dataclass__init__fields__2__annotation,
|
|
1193
|
+
__dataclass__init__fields__2__default,
|
|
1194
|
+
__dataclass__init__fields__3__annotation,
|
|
1195
|
+
__dataclass__init__fields__3__default,
|
|
1196
|
+
__dataclass__init__fields__4__annotation,
|
|
1197
|
+
__dataclass__init__fields__4__default,
|
|
1198
|
+
__dataclass__init__fields__5__annotation,
|
|
1199
|
+
__dataclass__init__fields__5__default,
|
|
1200
|
+
__dataclass__init__fields__6__annotation,
|
|
1201
|
+
__dataclass__init__fields__6__default,
|
|
1202
|
+
__dataclass__init__fields__7__annotation,
|
|
1203
|
+
__dataclass__init__fields__7__default,
|
|
1204
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1205
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1206
|
+
__dataclass__FnValidationError, # noqa
|
|
1207
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1208
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1209
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1210
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1211
|
+
__dataclass__None=None, # noqa
|
|
1212
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1213
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1214
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1215
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1216
|
+
__dataclass__property=property, # noqa
|
|
1217
|
+
):
|
|
1218
|
+
def __copy__(self):
|
|
1219
|
+
if self.__class__ is not __dataclass__cls:
|
|
1220
|
+
raise TypeError(self)
|
|
1221
|
+
return __dataclass__cls( # noqa
|
|
1222
|
+
query=self.query,
|
|
1223
|
+
answer=self.answer,
|
|
1224
|
+
images=self.images,
|
|
1225
|
+
results=self.results,
|
|
1226
|
+
follow_up_questions=self.follow_up_questions,
|
|
1227
|
+
auto_parameters=self.auto_parameters,
|
|
1228
|
+
response_time=self.response_time,
|
|
1229
|
+
request_id=self.request_id,
|
|
1230
|
+
)
|
|
1231
|
+
|
|
1232
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1233
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1234
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1235
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1236
|
+
|
|
1237
|
+
def __eq__(self, other):
|
|
1238
|
+
if self is other:
|
|
1239
|
+
return True
|
|
1240
|
+
if self.__class__ is not other.__class__:
|
|
1241
|
+
return NotImplemented
|
|
1242
|
+
return (
|
|
1243
|
+
self.query == other.query and
|
|
1244
|
+
self.answer == other.answer and
|
|
1245
|
+
self.images == other.images and
|
|
1246
|
+
self.results == other.results and
|
|
1247
|
+
self.follow_up_questions == other.follow_up_questions and
|
|
1248
|
+
self.auto_parameters == other.auto_parameters and
|
|
1249
|
+
self.response_time == other.response_time and
|
|
1250
|
+
self.request_id == other.request_id
|
|
1251
|
+
)
|
|
1252
|
+
|
|
1253
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1254
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1255
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1256
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1257
|
+
|
|
1258
|
+
__dataclass___setattr_frozen_fields = {
|
|
1259
|
+
'query',
|
|
1260
|
+
'answer',
|
|
1261
|
+
'images',
|
|
1262
|
+
'results',
|
|
1263
|
+
'follow_up_questions',
|
|
1264
|
+
'auto_parameters',
|
|
1265
|
+
'response_time',
|
|
1266
|
+
'request_id',
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
def __setattr__(self, name, value):
|
|
1270
|
+
if (
|
|
1271
|
+
type(self) is __dataclass__cls
|
|
1272
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1273
|
+
):
|
|
1274
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1275
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1276
|
+
|
|
1277
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1278
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1279
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1280
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1281
|
+
|
|
1282
|
+
__dataclass___delattr_frozen_fields = {
|
|
1283
|
+
'query',
|
|
1284
|
+
'answer',
|
|
1285
|
+
'images',
|
|
1286
|
+
'results',
|
|
1287
|
+
'follow_up_questions',
|
|
1288
|
+
'auto_parameters',
|
|
1289
|
+
'response_time',
|
|
1290
|
+
'request_id',
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
def __delattr__(self, name):
|
|
1294
|
+
if (
|
|
1295
|
+
type(self) is __dataclass__cls
|
|
1296
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1297
|
+
):
|
|
1298
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1299
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1300
|
+
|
|
1301
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1302
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1303
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1304
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1305
|
+
|
|
1306
|
+
def __hash__(self):
|
|
1307
|
+
return hash((
|
|
1308
|
+
self.query,
|
|
1309
|
+
self.answer,
|
|
1310
|
+
self.images,
|
|
1311
|
+
self.results,
|
|
1312
|
+
self.follow_up_questions,
|
|
1313
|
+
self.auto_parameters,
|
|
1314
|
+
self.response_time,
|
|
1315
|
+
self.request_id,
|
|
1316
|
+
))
|
|
1317
|
+
|
|
1318
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1319
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1320
|
+
|
|
1321
|
+
def __init__(
|
|
1322
|
+
self,
|
|
1323
|
+
*,
|
|
1324
|
+
query: __dataclass__init__fields__0__annotation,
|
|
1325
|
+
answer: __dataclass__init__fields__1__annotation,
|
|
1326
|
+
images: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1327
|
+
results: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1328
|
+
follow_up_questions: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1329
|
+
auto_parameters: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
1330
|
+
response_time: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
1331
|
+
request_id: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
1332
|
+
) -> __dataclass__None:
|
|
1333
|
+
__dataclass__object_setattr(self, 'query', query)
|
|
1334
|
+
__dataclass__object_setattr(self, 'answer', answer)
|
|
1335
|
+
__dataclass__object_setattr(self, 'images', images)
|
|
1336
|
+
__dataclass__object_setattr(self, 'results', results)
|
|
1337
|
+
__dataclass__object_setattr(self, 'follow_up_questions', follow_up_questions)
|
|
1338
|
+
__dataclass__object_setattr(self, 'auto_parameters', auto_parameters)
|
|
1339
|
+
__dataclass__object_setattr(self, 'response_time', response_time)
|
|
1340
|
+
__dataclass__object_setattr(self, 'request_id', request_id)
|
|
1341
|
+
|
|
1342
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1343
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1344
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1345
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1346
|
+
|
|
1347
|
+
@__dataclass___recursive_repr()
|
|
1348
|
+
def __repr__(self):
|
|
1349
|
+
parts = []
|
|
1350
|
+
parts.append(f"query={self.query!r}")
|
|
1351
|
+
parts.append(f"answer={self.answer!r}")
|
|
1352
|
+
parts.append(f"images={self.images!r}")
|
|
1353
|
+
parts.append(f"results={self.results!r}")
|
|
1354
|
+
parts.append(f"follow_up_questions={self.follow_up_questions!r}")
|
|
1355
|
+
parts.append(f"auto_parameters={self.auto_parameters!r}")
|
|
1356
|
+
parts.append(f"response_time={self.response_time!r}")
|
|
1357
|
+
parts.append(f"request_id={self.request_id!r}")
|
|
1358
|
+
return (
|
|
1359
|
+
f"{self.__class__.__qualname__}("
|
|
1360
|
+
f"{', '.join(parts)}"
|
|
1361
|
+
f")"
|
|
1362
|
+
)
|
|
1363
|
+
|
|
1364
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1365
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1366
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1367
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1368
|
+
|
|
1369
|
+
return _process_dataclass
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
@_register(
|
|
1373
|
+
plan_repr=(
|
|
1374
|
+
"Plans(tup=(CopyPlan(fields=('url', 'description')), EqPlan(fields=('url', 'description')), FrozenPlan(fields=("
|
|
1375
|
+
"'url', 'description'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('url', 'description')"
|
|
1376
|
+
", cache=False), InitPlan(fields=(InitPlan.Field(name='url', annotation=OpRef(name='init.fields.0.annotation'),"
|
|
1377
|
+
" default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=Fiel"
|
|
1378
|
+
"dType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='description', annotation=Op"
|
|
1379
|
+
"Ref(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init="
|
|
1380
|
+
"True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param"
|
|
1381
|
+
"='self', std_params=(), kw_only_params=('url', 'description'), frozen=True, slots=False, post_init_params=None"
|
|
1382
|
+
", init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='url', kw_only=True, fn=None), ReprPlan."
|
|
1383
|
+
"Field(name='description', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1384
|
+
),
|
|
1385
|
+
plan_repr_sha1='7ea40ca3c340a71cd7f76429b1c7d7df19dd83f5',
|
|
1386
|
+
op_ref_idents=(
|
|
1387
|
+
'__dataclass__init__fields__0__annotation',
|
|
1388
|
+
'__dataclass__init__fields__0__default',
|
|
1389
|
+
'__dataclass__init__fields__1__annotation',
|
|
1390
|
+
'__dataclass__init__fields__1__default',
|
|
1391
|
+
),
|
|
1392
|
+
cls_names=(
|
|
1393
|
+
('ommlds.backends.tavily.protocol', 'SearchResponse.Image'),
|
|
1394
|
+
),
|
|
1395
|
+
)
|
|
1396
|
+
def _process_dataclass__7ea40ca3c340a71cd7f76429b1c7d7df19dd83f5():
|
|
1397
|
+
def _process_dataclass(
|
|
1398
|
+
*,
|
|
1399
|
+
__dataclass__cls,
|
|
1400
|
+
__dataclass__init__fields__0__annotation,
|
|
1401
|
+
__dataclass__init__fields__0__default,
|
|
1402
|
+
__dataclass__init__fields__1__annotation,
|
|
1403
|
+
__dataclass__init__fields__1__default,
|
|
1404
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1405
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1406
|
+
__dataclass__FnValidationError, # noqa
|
|
1407
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1408
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1409
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1410
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1411
|
+
__dataclass__None=None, # noqa
|
|
1412
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1413
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1414
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1415
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1416
|
+
__dataclass__property=property, # noqa
|
|
1417
|
+
):
|
|
1418
|
+
def __copy__(self):
|
|
1419
|
+
if self.__class__ is not __dataclass__cls:
|
|
1420
|
+
raise TypeError(self)
|
|
1421
|
+
return __dataclass__cls( # noqa
|
|
1422
|
+
url=self.url,
|
|
1423
|
+
description=self.description,
|
|
1424
|
+
)
|
|
1425
|
+
|
|
1426
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1427
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1428
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1429
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1430
|
+
|
|
1431
|
+
def __eq__(self, other):
|
|
1432
|
+
if self is other:
|
|
1433
|
+
return True
|
|
1434
|
+
if self.__class__ is not other.__class__:
|
|
1435
|
+
return NotImplemented
|
|
1436
|
+
return (
|
|
1437
|
+
self.url == other.url and
|
|
1438
|
+
self.description == other.description
|
|
1415
1439
|
)
|
|
1416
1440
|
|
|
1417
1441
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -1420,23 +1444,8 @@ def _process_dataclass__bd96288940e857f7d97cf10301452de930241668():
|
|
|
1420
1444
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1421
1445
|
|
|
1422
1446
|
__dataclass___setattr_frozen_fields = {
|
|
1423
|
-
'
|
|
1424
|
-
'
|
|
1425
|
-
'topic',
|
|
1426
|
-
'search_depth',
|
|
1427
|
-
'chunks_per_source',
|
|
1428
|
-
'max_results',
|
|
1429
|
-
'time_range',
|
|
1430
|
-
'start_date',
|
|
1431
|
-
'end_date',
|
|
1432
|
-
'include_answer',
|
|
1433
|
-
'include_raw_content',
|
|
1434
|
-
'include_images',
|
|
1435
|
-
'include_image_descriptions',
|
|
1436
|
-
'include_favicon',
|
|
1437
|
-
'include_domains',
|
|
1438
|
-
'exclude_domains',
|
|
1439
|
-
'country',
|
|
1447
|
+
'url',
|
|
1448
|
+
'description',
|
|
1440
1449
|
}
|
|
1441
1450
|
|
|
1442
1451
|
def __setattr__(self, name, value):
|
|
@@ -1453,23 +1462,8 @@ def _process_dataclass__bd96288940e857f7d97cf10301452de930241668():
|
|
|
1453
1462
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1454
1463
|
|
|
1455
1464
|
__dataclass___delattr_frozen_fields = {
|
|
1456
|
-
'
|
|
1457
|
-
'
|
|
1458
|
-
'topic',
|
|
1459
|
-
'search_depth',
|
|
1460
|
-
'chunks_per_source',
|
|
1461
|
-
'max_results',
|
|
1462
|
-
'time_range',
|
|
1463
|
-
'start_date',
|
|
1464
|
-
'end_date',
|
|
1465
|
-
'include_answer',
|
|
1466
|
-
'include_raw_content',
|
|
1467
|
-
'include_images',
|
|
1468
|
-
'include_image_descriptions',
|
|
1469
|
-
'include_favicon',
|
|
1470
|
-
'include_domains',
|
|
1471
|
-
'exclude_domains',
|
|
1472
|
-
'country',
|
|
1465
|
+
'url',
|
|
1466
|
+
'description',
|
|
1473
1467
|
}
|
|
1474
1468
|
|
|
1475
1469
|
def __delattr__(self, name):
|
|
@@ -1487,23 +1481,8 @@ def _process_dataclass__bd96288940e857f7d97cf10301452de930241668():
|
|
|
1487
1481
|
|
|
1488
1482
|
def __hash__(self):
|
|
1489
1483
|
return hash((
|
|
1490
|
-
self.
|
|
1491
|
-
self.
|
|
1492
|
-
self.topic,
|
|
1493
|
-
self.search_depth,
|
|
1494
|
-
self.chunks_per_source,
|
|
1495
|
-
self.max_results,
|
|
1496
|
-
self.time_range,
|
|
1497
|
-
self.start_date,
|
|
1498
|
-
self.end_date,
|
|
1499
|
-
self.include_answer,
|
|
1500
|
-
self.include_raw_content,
|
|
1501
|
-
self.include_images,
|
|
1502
|
-
self.include_image_descriptions,
|
|
1503
|
-
self.include_favicon,
|
|
1504
|
-
self.include_domains,
|
|
1505
|
-
self.exclude_domains,
|
|
1506
|
-
self.country,
|
|
1484
|
+
self.url,
|
|
1485
|
+
self.description,
|
|
1507
1486
|
))
|
|
1508
1487
|
|
|
1509
1488
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -1512,41 +1491,11 @@ def _process_dataclass__bd96288940e857f7d97cf10301452de930241668():
|
|
|
1512
1491
|
def __init__(
|
|
1513
1492
|
self,
|
|
1514
1493
|
*,
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
topic: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1518
|
-
search_depth: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1519
|
-
chunks_per_source: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1520
|
-
max_results: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
1521
|
-
time_range: __dataclass__init__fields__6__annotation = __dataclass__init__fields__6__default,
|
|
1522
|
-
start_date: __dataclass__init__fields__7__annotation = __dataclass__init__fields__7__default,
|
|
1523
|
-
end_date: __dataclass__init__fields__8__annotation = __dataclass__init__fields__8__default,
|
|
1524
|
-
include_answer: __dataclass__init__fields__9__annotation = __dataclass__init__fields__9__default,
|
|
1525
|
-
include_raw_content: __dataclass__init__fields__10__annotation = __dataclass__init__fields__10__default,
|
|
1526
|
-
include_images: __dataclass__init__fields__11__annotation = __dataclass__init__fields__11__default,
|
|
1527
|
-
include_image_descriptions: __dataclass__init__fields__12__annotation = __dataclass__init__fields__12__default,
|
|
1528
|
-
include_favicon: __dataclass__init__fields__13__annotation = __dataclass__init__fields__13__default,
|
|
1529
|
-
include_domains: __dataclass__init__fields__14__annotation = __dataclass__init__fields__14__default,
|
|
1530
|
-
exclude_domains: __dataclass__init__fields__15__annotation = __dataclass__init__fields__15__default,
|
|
1531
|
-
country: __dataclass__init__fields__16__annotation = __dataclass__init__fields__16__default,
|
|
1494
|
+
url: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1495
|
+
description: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1532
1496
|
) -> __dataclass__None:
|
|
1533
|
-
__dataclass__object_setattr(self, '
|
|
1534
|
-
__dataclass__object_setattr(self, '
|
|
1535
|
-
__dataclass__object_setattr(self, 'topic', topic)
|
|
1536
|
-
__dataclass__object_setattr(self, 'search_depth', search_depth)
|
|
1537
|
-
__dataclass__object_setattr(self, 'chunks_per_source', chunks_per_source)
|
|
1538
|
-
__dataclass__object_setattr(self, 'max_results', max_results)
|
|
1539
|
-
__dataclass__object_setattr(self, 'time_range', time_range)
|
|
1540
|
-
__dataclass__object_setattr(self, 'start_date', start_date)
|
|
1541
|
-
__dataclass__object_setattr(self, 'end_date', end_date)
|
|
1542
|
-
__dataclass__object_setattr(self, 'include_answer', include_answer)
|
|
1543
|
-
__dataclass__object_setattr(self, 'include_raw_content', include_raw_content)
|
|
1544
|
-
__dataclass__object_setattr(self, 'include_images', include_images)
|
|
1545
|
-
__dataclass__object_setattr(self, 'include_image_descriptions', include_image_descriptions)
|
|
1546
|
-
__dataclass__object_setattr(self, 'include_favicon', include_favicon)
|
|
1547
|
-
__dataclass__object_setattr(self, 'include_domains', include_domains)
|
|
1548
|
-
__dataclass__object_setattr(self, 'exclude_domains', exclude_domains)
|
|
1549
|
-
__dataclass__object_setattr(self, 'country', country)
|
|
1497
|
+
__dataclass__object_setattr(self, 'url', url)
|
|
1498
|
+
__dataclass__object_setattr(self, 'description', description)
|
|
1550
1499
|
|
|
1551
1500
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1552
1501
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -1556,23 +1505,8 @@ def _process_dataclass__bd96288940e857f7d97cf10301452de930241668():
|
|
|
1556
1505
|
@__dataclass___recursive_repr()
|
|
1557
1506
|
def __repr__(self):
|
|
1558
1507
|
parts = []
|
|
1559
|
-
parts.append(f"
|
|
1560
|
-
parts.append(f"
|
|
1561
|
-
parts.append(f"topic={self.topic!r}")
|
|
1562
|
-
parts.append(f"search_depth={self.search_depth!r}")
|
|
1563
|
-
parts.append(f"chunks_per_source={self.chunks_per_source!r}")
|
|
1564
|
-
parts.append(f"max_results={self.max_results!r}")
|
|
1565
|
-
parts.append(f"time_range={self.time_range!r}")
|
|
1566
|
-
parts.append(f"start_date={self.start_date!r}")
|
|
1567
|
-
parts.append(f"end_date={self.end_date!r}")
|
|
1568
|
-
parts.append(f"include_answer={self.include_answer!r}")
|
|
1569
|
-
parts.append(f"include_raw_content={self.include_raw_content!r}")
|
|
1570
|
-
parts.append(f"include_images={self.include_images!r}")
|
|
1571
|
-
parts.append(f"include_image_descriptions={self.include_image_descriptions!r}")
|
|
1572
|
-
parts.append(f"include_favicon={self.include_favicon!r}")
|
|
1573
|
-
parts.append(f"include_domains={self.include_domains!r}")
|
|
1574
|
-
parts.append(f"exclude_domains={self.exclude_domains!r}")
|
|
1575
|
-
parts.append(f"country={self.country!r}")
|
|
1508
|
+
parts.append(f"url={self.url!r}")
|
|
1509
|
+
parts.append(f"description={self.description!r}")
|
|
1576
1510
|
return (
|
|
1577
1511
|
f"{self.__class__.__qualname__}("
|
|
1578
1512
|
f"{', '.join(parts)}"
|
|
@@ -1589,31 +1523,65 @@ def _process_dataclass__bd96288940e857f7d97cf10301452de930241668():
|
|
|
1589
1523
|
|
|
1590
1524
|
@_register(
|
|
1591
1525
|
plan_repr=(
|
|
1592
|
-
"Plans(tup=(CopyPlan(fields=('url', '
|
|
1593
|
-
"
|
|
1594
|
-
"
|
|
1595
|
-
"
|
|
1596
|
-
"
|
|
1597
|
-
"
|
|
1598
|
-
"
|
|
1599
|
-
"
|
|
1600
|
-
"),
|
|
1526
|
+
"Plans(tup=(CopyPlan(fields=('title', 'url', 'content', 'score', 'raw_content', 'favicon')), EqPlan(fields=('ti"
|
|
1527
|
+
"tle', 'url', 'content', 'score', 'raw_content', 'favicon')), FrozenPlan(fields=('title', 'url', 'content', 'sc"
|
|
1528
|
+
"ore', 'raw_content', 'favicon'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('title', 'u"
|
|
1529
|
+
"rl', 'content', 'score', 'raw_content', 'favicon'), cache=False), InitPlan(fields=(InitPlan.Field(name='title'"
|
|
1530
|
+
", annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_fact"
|
|
1531
|
+
"ory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=Non"
|
|
1532
|
+
"e), InitPlan.Field(name='url', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fie"
|
|
1533
|
+
"lds.1.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, "
|
|
1534
|
+
"validate=None, check_type=None), InitPlan.Field(name='content', annotation=OpRef(name='init.fields.2.annotatio"
|
|
1535
|
+
"n'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False, field_type="
|
|
1536
|
+
"FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='score', annotation=OpRe"
|
|
1537
|
+
"f(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory=None, init=Tr"
|
|
1538
|
+
"ue, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Fiel"
|
|
1539
|
+
"d(name='raw_content', annotation=OpRef(name='init.fields.4.annotation'), default=OpRef(name='init.fields.4.def"
|
|
1540
|
+
"ault'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
1541
|
+
"None, check_type=None), InitPlan.Field(name='favicon', annotation=OpRef(name='init.fields.5.annotation'), defa"
|
|
1542
|
+
"ult=OpRef(name='init.fields.5.default'), default_factory=None, init=True, override=False, field_type=FieldType"
|
|
1543
|
+
".INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('t"
|
|
1544
|
+
"itle', 'url', 'content', 'score', 'raw_content', 'favicon'), frozen=True, slots=False, post_init_params=None, "
|
|
1545
|
+
"init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='title', kw_only=True, fn=None), ReprPlan."
|
|
1546
|
+
"Field(name='url', kw_only=True, fn=None), ReprPlan.Field(name='content', kw_only=True, fn=None), ReprPlan.Fiel"
|
|
1547
|
+
"d(name='score', kw_only=True, fn=None), ReprPlan.Field(name='raw_content', kw_only=True, fn=None), ReprPlan.Fi"
|
|
1548
|
+
"eld(name='favicon', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1601
1549
|
),
|
|
1602
|
-
plan_repr_sha1='
|
|
1550
|
+
plan_repr_sha1='159d324c21b5646307b1510d34746f88b98697be',
|
|
1603
1551
|
op_ref_idents=(
|
|
1604
1552
|
'__dataclass__init__fields__0__annotation',
|
|
1553
|
+
'__dataclass__init__fields__0__default',
|
|
1605
1554
|
'__dataclass__init__fields__1__annotation',
|
|
1555
|
+
'__dataclass__init__fields__1__default',
|
|
1556
|
+
'__dataclass__init__fields__2__annotation',
|
|
1557
|
+
'__dataclass__init__fields__2__default',
|
|
1558
|
+
'__dataclass__init__fields__3__annotation',
|
|
1559
|
+
'__dataclass__init__fields__3__default',
|
|
1560
|
+
'__dataclass__init__fields__4__annotation',
|
|
1561
|
+
'__dataclass__init__fields__4__default',
|
|
1562
|
+
'__dataclass__init__fields__5__annotation',
|
|
1563
|
+
'__dataclass__init__fields__5__default',
|
|
1606
1564
|
),
|
|
1607
1565
|
cls_names=(
|
|
1608
|
-
('ommlds.backends.tavily.protocol', '
|
|
1566
|
+
('ommlds.backends.tavily.protocol', 'SearchResponse.Result'),
|
|
1609
1567
|
),
|
|
1610
1568
|
)
|
|
1611
|
-
def
|
|
1569
|
+
def _process_dataclass__159d324c21b5646307b1510d34746f88b98697be():
|
|
1612
1570
|
def _process_dataclass(
|
|
1613
1571
|
*,
|
|
1614
1572
|
__dataclass__cls,
|
|
1615
1573
|
__dataclass__init__fields__0__annotation,
|
|
1574
|
+
__dataclass__init__fields__0__default,
|
|
1616
1575
|
__dataclass__init__fields__1__annotation,
|
|
1576
|
+
__dataclass__init__fields__1__default,
|
|
1577
|
+
__dataclass__init__fields__2__annotation,
|
|
1578
|
+
__dataclass__init__fields__2__default,
|
|
1579
|
+
__dataclass__init__fields__3__annotation,
|
|
1580
|
+
__dataclass__init__fields__3__default,
|
|
1581
|
+
__dataclass__init__fields__4__annotation,
|
|
1582
|
+
__dataclass__init__fields__4__default,
|
|
1583
|
+
__dataclass__init__fields__5__annotation,
|
|
1584
|
+
__dataclass__init__fields__5__default,
|
|
1617
1585
|
__dataclass__FieldFnValidationError, # noqa
|
|
1618
1586
|
__dataclass__FieldTypeValidationError, # noqa
|
|
1619
1587
|
__dataclass__FnValidationError, # noqa
|
|
@@ -1632,8 +1600,12 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
1632
1600
|
if self.__class__ is not __dataclass__cls:
|
|
1633
1601
|
raise TypeError(self)
|
|
1634
1602
|
return __dataclass__cls( # noqa
|
|
1603
|
+
title=self.title,
|
|
1635
1604
|
url=self.url,
|
|
1636
|
-
|
|
1605
|
+
content=self.content,
|
|
1606
|
+
score=self.score,
|
|
1607
|
+
raw_content=self.raw_content,
|
|
1608
|
+
favicon=self.favicon,
|
|
1637
1609
|
)
|
|
1638
1610
|
|
|
1639
1611
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -1647,8 +1619,12 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
1647
1619
|
if self.__class__ is not other.__class__:
|
|
1648
1620
|
return NotImplemented
|
|
1649
1621
|
return (
|
|
1622
|
+
self.title == other.title and
|
|
1650
1623
|
self.url == other.url and
|
|
1651
|
-
self.
|
|
1624
|
+
self.content == other.content and
|
|
1625
|
+
self.score == other.score and
|
|
1626
|
+
self.raw_content == other.raw_content and
|
|
1627
|
+
self.favicon == other.favicon
|
|
1652
1628
|
)
|
|
1653
1629
|
|
|
1654
1630
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -1657,8 +1633,12 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
1657
1633
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1658
1634
|
|
|
1659
1635
|
__dataclass___setattr_frozen_fields = {
|
|
1636
|
+
'title',
|
|
1660
1637
|
'url',
|
|
1661
|
-
'
|
|
1638
|
+
'content',
|
|
1639
|
+
'score',
|
|
1640
|
+
'raw_content',
|
|
1641
|
+
'favicon',
|
|
1662
1642
|
}
|
|
1663
1643
|
|
|
1664
1644
|
def __setattr__(self, name, value):
|
|
@@ -1675,8 +1655,12 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
1675
1655
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1676
1656
|
|
|
1677
1657
|
__dataclass___delattr_frozen_fields = {
|
|
1658
|
+
'title',
|
|
1678
1659
|
'url',
|
|
1679
|
-
'
|
|
1660
|
+
'content',
|
|
1661
|
+
'score',
|
|
1662
|
+
'raw_content',
|
|
1663
|
+
'favicon',
|
|
1680
1664
|
}
|
|
1681
1665
|
|
|
1682
1666
|
def __delattr__(self, name):
|
|
@@ -1694,8 +1678,12 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
1694
1678
|
|
|
1695
1679
|
def __hash__(self):
|
|
1696
1680
|
return hash((
|
|
1681
|
+
self.title,
|
|
1697
1682
|
self.url,
|
|
1698
|
-
self.
|
|
1683
|
+
self.content,
|
|
1684
|
+
self.score,
|
|
1685
|
+
self.raw_content,
|
|
1686
|
+
self.favicon,
|
|
1699
1687
|
))
|
|
1700
1688
|
|
|
1701
1689
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -1704,11 +1692,19 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
1704
1692
|
def __init__(
|
|
1705
1693
|
self,
|
|
1706
1694
|
*,
|
|
1707
|
-
|
|
1708
|
-
|
|
1695
|
+
title: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1696
|
+
url: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1697
|
+
content: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1698
|
+
score: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1699
|
+
raw_content: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1700
|
+
favicon: __dataclass__init__fields__5__annotation = __dataclass__init__fields__5__default,
|
|
1709
1701
|
) -> __dataclass__None:
|
|
1702
|
+
__dataclass__object_setattr(self, 'title', title)
|
|
1710
1703
|
__dataclass__object_setattr(self, 'url', url)
|
|
1711
|
-
__dataclass__object_setattr(self, '
|
|
1704
|
+
__dataclass__object_setattr(self, 'content', content)
|
|
1705
|
+
__dataclass__object_setattr(self, 'score', score)
|
|
1706
|
+
__dataclass__object_setattr(self, 'raw_content', raw_content)
|
|
1707
|
+
__dataclass__object_setattr(self, 'favicon', favicon)
|
|
1712
1708
|
|
|
1713
1709
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1714
1710
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -1718,8 +1714,12 @@ def _process_dataclass__c306872e8ff160b080e380e285ae8e74db96cc63():
|
|
|
1718
1714
|
@__dataclass___recursive_repr()
|
|
1719
1715
|
def __repr__(self):
|
|
1720
1716
|
parts = []
|
|
1717
|
+
parts.append(f"title={self.title!r}")
|
|
1721
1718
|
parts.append(f"url={self.url!r}")
|
|
1722
|
-
parts.append(f"
|
|
1719
|
+
parts.append(f"content={self.content!r}")
|
|
1720
|
+
parts.append(f"score={self.score!r}")
|
|
1721
|
+
parts.append(f"raw_content={self.raw_content!r}")
|
|
1722
|
+
parts.append(f"favicon={self.favicon!r}")
|
|
1723
1723
|
return (
|
|
1724
1724
|
f"{self.__class__.__qualname__}("
|
|
1725
1725
|
f"{', '.join(parts)}"
|