ommlds 0.0.0.dev496__py3-none-any.whl → 0.0.0.dev498__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/cli/main.py +2 -2
- ommlds/cli/secrets.py +1 -1
- ommlds/minichain/__init__.py +45 -9
- ommlds/minichain/_dataclasses.py +1229 -1071
- ommlds/minichain/_typedvalues.py +11 -4
- ommlds/minichain/chat/content.py +42 -0
- ommlds/minichain/chat/messages.py +21 -14
- ommlds/minichain/chat/stream/types.py +1 -1
- ommlds/minichain/chat/templating.py +3 -3
- ommlds/minichain/chat/transforms/metadata.py +3 -3
- ommlds/minichain/content/__init__.py +10 -1
- ommlds/minichain/content/_marshal.py +30 -17
- ommlds/minichain/content/code.py +11 -2
- ommlds/minichain/content/composite.py +28 -0
- ommlds/minichain/content/{types.py → content.py} +0 -4
- ommlds/minichain/content/emphasis.py +27 -0
- ommlds/minichain/content/images.py +1 -2
- ommlds/minichain/content/json.py +1 -2
- ommlds/minichain/content/link.py +13 -0
- ommlds/minichain/content/markdown.py +12 -0
- ommlds/minichain/content/metadata.py +10 -0
- ommlds/minichain/content/namespaces.py +2 -3
- ommlds/minichain/content/placeholders.py +2 -3
- ommlds/minichain/content/quote.py +12 -3
- ommlds/minichain/content/recursive.py +12 -0
- ommlds/minichain/content/section.py +16 -4
- ommlds/minichain/content/sequence.py +13 -4
- ommlds/minichain/content/standard.py +10 -15
- ommlds/minichain/content/tag.py +12 -3
- ommlds/minichain/content/templates.py +1 -2
- ommlds/minichain/content/text.py +1 -2
- ommlds/minichain/content/transform/json.py +55 -0
- ommlds/minichain/content/transform/markdown.py +8 -0
- ommlds/minichain/content/transform/materialize.py +19 -78
- ommlds/minichain/content/transform/metadata.py +16 -0
- ommlds/minichain/content/transform/prepare.py +1 -5
- ommlds/minichain/content/transform/recursive.py +97 -0
- ommlds/minichain/content/transform/standard.py +43 -0
- ommlds/minichain/content/transform/stringify.py +1 -1
- ommlds/minichain/content/transform/strings.py +16 -7
- ommlds/minichain/content/transform/templates.py +25 -0
- ommlds/minichain/content/visitors.py +231 -0
- ommlds/minichain/metadata.py +58 -1
- ommlds/minichain/tools/execution/catalog.py +1 -1
- ommlds/minichain/tools/execution/errorhandling.py +3 -2
- ommlds/minichain/tools/execution/errors.py +1 -1
- ommlds/minichain/tools/execution/executors.py +1 -1
- ommlds/minichain/tools/fns.py +1 -1
- ommlds/minichain/tools/reflect.py +1 -1
- ommlds/minichain/tools/types.py +1 -1
- ommlds/minichain/vectors/embeddings.py +1 -1
- ommlds/tools/git.py +74 -63
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/METADATA +4 -4
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/RECORD +59 -49
- ommlds/minichain/content/transform/base.py +0 -63
- ommlds/minichain/content/transform/interleave.py +0 -68
- ommlds/minichain/content/transform/squeeze.py +0 -59
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev496.dist-info → ommlds-0.0.0.dev498.dist-info}/top_level.txt +0 -0
ommlds/minichain/_dataclasses.py
CHANGED
|
@@ -1156,6 +1156,7 @@ def _process_dataclass__b4a9277b8c9559fb4e325a8c35bc504f30ab2294():
|
|
|
1156
1156
|
('ommlds.minichain.chat.tools.execution', 'ToolFn.Output'),
|
|
1157
1157
|
('ommlds.minichain.chat.tools.execution', 'ToolFn.RawKwargsInput'),
|
|
1158
1158
|
('ommlds.minichain.chat.tools.execution', 'ToolFn.RawStringOutput'),
|
|
1159
|
+
('ommlds.minichain.metadata', 'MetadataContainerDataclass'),
|
|
1159
1160
|
),
|
|
1160
1161
|
)
|
|
1161
1162
|
def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
@@ -2302,38 +2303,26 @@ def _process_dataclass__35363258df752d37be526c05a33a4e10963d6e84():
|
|
|
2302
2303
|
|
|
2303
2304
|
@_register(
|
|
2304
2305
|
plan_repr=(
|
|
2305
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2306
|
-
"
|
|
2307
|
-
"
|
|
2308
|
-
"
|
|
2309
|
-
"
|
|
2310
|
-
",
|
|
2311
|
-
"alse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_par"
|
|
2312
|
-
"ams=('ns',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), vali"
|
|
2313
|
-
"date_fns=()), ReprPlan(fields=(ReprPlan.Field(name='_metadata', kw_only=True, fn=OpRef(name='repr.fns.0.fn')),"
|
|
2314
|
-
" ReprPlan.Field(name='ns', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2306
|
+
"Plans(tup=(CopyPlan(fields=('key',)), EqPlan(fields=('key',)), HashPlan(action='set_none', fields=None, cache="
|
|
2307
|
+
"None), InitPlan(fields=(InitPlan.Field(name='key', annotation=OpRef(name='init.fields.0.annotation'), default="
|
|
2308
|
+
"None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=No"
|
|
2309
|
+
"ne, check_type=None),), self_param='self', std_params=('key',), kw_only_params=(), frozen=False, slots=False, "
|
|
2310
|
+
"post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='key', kw_only=Fals"
|
|
2311
|
+
"e, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
2315
2312
|
),
|
|
2316
|
-
plan_repr_sha1='
|
|
2313
|
+
plan_repr_sha1='7e1881cd893ea68089f1fe26ad810799dd14a0d5',
|
|
2317
2314
|
op_ref_idents=(
|
|
2318
2315
|
'__dataclass__init__fields__0__annotation',
|
|
2319
|
-
'__dataclass__init__fields__0__coerce',
|
|
2320
|
-
'__dataclass__init__fields__0__default',
|
|
2321
|
-
'__dataclass__init__fields__1__annotation',
|
|
2322
|
-
'__dataclass__repr__fns__0__fn',
|
|
2323
2316
|
),
|
|
2324
2317
|
cls_names=(
|
|
2325
|
-
('ommlds.minichain.backends.impls.anthropic.chat', '
|
|
2318
|
+
('ommlds.minichain.backends.impls.anthropic.chat', 'PlaceholderContentMissingError'),
|
|
2326
2319
|
),
|
|
2327
2320
|
)
|
|
2328
|
-
def
|
|
2321
|
+
def _process_dataclass__7e1881cd893ea68089f1fe26ad810799dd14a0d5():
|
|
2329
2322
|
def _process_dataclass(
|
|
2330
2323
|
*,
|
|
2331
2324
|
__dataclass__cls,
|
|
2332
2325
|
__dataclass__init__fields__0__annotation,
|
|
2333
|
-
__dataclass__init__fields__0__coerce,
|
|
2334
|
-
__dataclass__init__fields__0__default,
|
|
2335
|
-
__dataclass__init__fields__1__annotation,
|
|
2336
|
-
__dataclass__repr__fns__0__fn,
|
|
2337
2326
|
__dataclass__FieldFnValidationError, # noqa
|
|
2338
2327
|
__dataclass__FieldTypeValidationError, # noqa
|
|
2339
2328
|
__dataclass__FnValidationError, # noqa
|
|
@@ -2352,8 +2341,7 @@ def _process_dataclass__0f33bd4feb26aa84d3ce09fc68cea42d08f0a4ff():
|
|
|
2352
2341
|
if self.__class__ is not __dataclass__cls:
|
|
2353
2342
|
raise TypeError(self)
|
|
2354
2343
|
return __dataclass__cls( # noqa
|
|
2355
|
-
|
|
2356
|
-
ns=self.ns,
|
|
2344
|
+
key=self.key,
|
|
2357
2345
|
)
|
|
2358
2346
|
|
|
2359
2347
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2367,8 +2355,7 @@ def _process_dataclass__0f33bd4feb26aa84d3ce09fc68cea42d08f0a4ff():
|
|
|
2367
2355
|
if self.__class__ is not other.__class__:
|
|
2368
2356
|
return NotImplemented
|
|
2369
2357
|
return (
|
|
2370
|
-
self.
|
|
2371
|
-
self.ns == other.ns
|
|
2358
|
+
self.key == other.key
|
|
2372
2359
|
)
|
|
2373
2360
|
|
|
2374
2361
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2376,60 +2363,13 @@ def _process_dataclass__0f33bd4feb26aa84d3ce09fc68cea42d08f0a4ff():
|
|
|
2376
2363
|
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2377
2364
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2378
2365
|
|
|
2379
|
-
|
|
2380
|
-
'_metadata',
|
|
2381
|
-
'ns',
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
def __setattr__(self, name, value):
|
|
2385
|
-
if (
|
|
2386
|
-
type(self) is __dataclass__cls
|
|
2387
|
-
or name in __dataclass___setattr_frozen_fields
|
|
2388
|
-
):
|
|
2389
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2390
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2391
|
-
|
|
2392
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2393
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2394
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2395
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2396
|
-
|
|
2397
|
-
__dataclass___delattr_frozen_fields = {
|
|
2398
|
-
'_metadata',
|
|
2399
|
-
'ns',
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
def __delattr__(self, name):
|
|
2403
|
-
if (
|
|
2404
|
-
type(self) is __dataclass__cls
|
|
2405
|
-
or name in __dataclass___delattr_frozen_fields
|
|
2406
|
-
):
|
|
2407
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2408
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
2409
|
-
|
|
2410
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2411
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2412
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2413
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2414
|
-
|
|
2415
|
-
def __hash__(self):
|
|
2416
|
-
return hash((
|
|
2417
|
-
self._metadata,
|
|
2418
|
-
self.ns,
|
|
2419
|
-
))
|
|
2420
|
-
|
|
2421
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2422
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2366
|
+
setattr(__dataclass__cls, '__hash__', None)
|
|
2423
2367
|
|
|
2424
2368
|
def __init__(
|
|
2425
2369
|
self,
|
|
2426
|
-
|
|
2427
|
-
*,
|
|
2428
|
-
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
2370
|
+
key: __dataclass__init__fields__0__annotation,
|
|
2429
2371
|
) -> __dataclass__None:
|
|
2430
|
-
|
|
2431
|
-
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
2432
|
-
__dataclass__object_setattr(self, 'ns', ns)
|
|
2372
|
+
self.key = key
|
|
2433
2373
|
|
|
2434
2374
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2435
2375
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2439,9 +2379,7 @@ def _process_dataclass__0f33bd4feb26aa84d3ce09fc68cea42d08f0a4ff():
|
|
|
2439
2379
|
@__dataclass___recursive_repr()
|
|
2440
2380
|
def __repr__(self):
|
|
2441
2381
|
parts = []
|
|
2442
|
-
|
|
2443
|
-
parts.append(f"_metadata={s}")
|
|
2444
|
-
parts.append(f"ns={self.ns!r}")
|
|
2382
|
+
parts.append(f"key={self.key!r}")
|
|
2445
2383
|
return (
|
|
2446
2384
|
f"{self.__class__.__qualname__}("
|
|
2447
2385
|
f"{', '.join(parts)}"
|
|
@@ -2458,38 +2396,27 @@ def _process_dataclass__0f33bd4feb26aa84d3ce09fc68cea42d08f0a4ff():
|
|
|
2458
2396
|
|
|
2459
2397
|
@_register(
|
|
2460
2398
|
plan_repr=(
|
|
2461
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2462
|
-
"
|
|
2463
|
-
"
|
|
2464
|
-
"
|
|
2465
|
-
"
|
|
2466
|
-
"
|
|
2467
|
-
"
|
|
2468
|
-
"'k',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
2469
|
-
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='_metadata', kw_only=True, fn=OpRef(name='repr.fns.0.fn')), ReprP"
|
|
2470
|
-
"lan.Field(name='k', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2399
|
+
"Plans(tup=(CopyPlan(fields=('spec',)), EqPlan(fields=('spec',)), FrozenPlan(fields=('spec',), allow_dynamic_du"
|
|
2400
|
+
"nder_attrs=False), HashPlan(action='add', fields=('spec',), cache=False), InitPlan(fields=(InitPlan.Field(name"
|
|
2401
|
+
"='spec', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
|
|
2402
|
+
"rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self',"
|
|
2403
|
+
" std_params=('spec',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), valida"
|
|
2404
|
+
"te_fns=()), ReprPlan(fields=(ReprPlan.Field(name='spec', kw_only=False, fn=None),), id=False, terse=False, def"
|
|
2405
|
+
"ault_fn=None)))"
|
|
2471
2406
|
),
|
|
2472
|
-
plan_repr_sha1='
|
|
2407
|
+
plan_repr_sha1='7e3901d21ea09aa23ed5fbe10c0b3872163af79f',
|
|
2473
2408
|
op_ref_idents=(
|
|
2474
2409
|
'__dataclass__init__fields__0__annotation',
|
|
2475
|
-
'__dataclass__init__fields__0__coerce',
|
|
2476
|
-
'__dataclass__init__fields__0__default',
|
|
2477
|
-
'__dataclass__init__fields__1__annotation',
|
|
2478
|
-
'__dataclass__repr__fns__0__fn',
|
|
2479
2410
|
),
|
|
2480
2411
|
cls_names=(
|
|
2481
|
-
('ommlds.minichain.backends.impls.anthropic.chat', '
|
|
2412
|
+
('ommlds.minichain.backends.impls.anthropic.chat', 'Tool'),
|
|
2482
2413
|
),
|
|
2483
2414
|
)
|
|
2484
|
-
def
|
|
2415
|
+
def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
2485
2416
|
def _process_dataclass(
|
|
2486
2417
|
*,
|
|
2487
2418
|
__dataclass__cls,
|
|
2488
2419
|
__dataclass__init__fields__0__annotation,
|
|
2489
|
-
__dataclass__init__fields__0__coerce,
|
|
2490
|
-
__dataclass__init__fields__0__default,
|
|
2491
|
-
__dataclass__init__fields__1__annotation,
|
|
2492
|
-
__dataclass__repr__fns__0__fn,
|
|
2493
2420
|
__dataclass__FieldFnValidationError, # noqa
|
|
2494
2421
|
__dataclass__FieldTypeValidationError, # noqa
|
|
2495
2422
|
__dataclass__FnValidationError, # noqa
|
|
@@ -2508,8 +2435,7 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2508
2435
|
if self.__class__ is not __dataclass__cls:
|
|
2509
2436
|
raise TypeError(self)
|
|
2510
2437
|
return __dataclass__cls( # noqa
|
|
2511
|
-
|
|
2512
|
-
k=self.k,
|
|
2438
|
+
spec=self.spec,
|
|
2513
2439
|
)
|
|
2514
2440
|
|
|
2515
2441
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2523,8 +2449,7 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2523
2449
|
if self.__class__ is not other.__class__:
|
|
2524
2450
|
return NotImplemented
|
|
2525
2451
|
return (
|
|
2526
|
-
self.
|
|
2527
|
-
self.k == other.k
|
|
2452
|
+
self.spec == other.spec
|
|
2528
2453
|
)
|
|
2529
2454
|
|
|
2530
2455
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2533,8 +2458,7 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2533
2458
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2534
2459
|
|
|
2535
2460
|
__dataclass___setattr_frozen_fields = {
|
|
2536
|
-
'
|
|
2537
|
-
'k',
|
|
2461
|
+
'spec',
|
|
2538
2462
|
}
|
|
2539
2463
|
|
|
2540
2464
|
def __setattr__(self, name, value):
|
|
@@ -2551,8 +2475,7 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2551
2475
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2552
2476
|
|
|
2553
2477
|
__dataclass___delattr_frozen_fields = {
|
|
2554
|
-
'
|
|
2555
|
-
'k',
|
|
2478
|
+
'spec',
|
|
2556
2479
|
}
|
|
2557
2480
|
|
|
2558
2481
|
def __delattr__(self, name):
|
|
@@ -2570,8 +2493,7 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2570
2493
|
|
|
2571
2494
|
def __hash__(self):
|
|
2572
2495
|
return hash((
|
|
2573
|
-
self.
|
|
2574
|
-
self.k,
|
|
2496
|
+
self.spec,
|
|
2575
2497
|
))
|
|
2576
2498
|
|
|
2577
2499
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2579,13 +2501,9 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2579
2501
|
|
|
2580
2502
|
def __init__(
|
|
2581
2503
|
self,
|
|
2582
|
-
|
|
2583
|
-
*,
|
|
2584
|
-
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
2504
|
+
spec: __dataclass__init__fields__0__annotation,
|
|
2585
2505
|
) -> __dataclass__None:
|
|
2586
|
-
|
|
2587
|
-
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
2588
|
-
__dataclass__object_setattr(self, 'k', k)
|
|
2506
|
+
__dataclass__object_setattr(self, 'spec', spec)
|
|
2589
2507
|
|
|
2590
2508
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2591
2509
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2595,9 +2513,7 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2595
2513
|
@__dataclass___recursive_repr()
|
|
2596
2514
|
def __repr__(self):
|
|
2597
2515
|
parts = []
|
|
2598
|
-
|
|
2599
|
-
parts.append(f"_metadata={s}")
|
|
2600
|
-
parts.append(f"k={self.k!r}")
|
|
2516
|
+
parts.append(f"spec={self.spec!r}")
|
|
2601
2517
|
return (
|
|
2602
2518
|
f"{self.__class__.__qualname__}("
|
|
2603
2519
|
f"{', '.join(parts)}"
|
|
@@ -2614,22 +2530,23 @@ def _process_dataclass__1cc33387d7e697b5a516373c8733717d303ca7dc():
|
|
|
2614
2530
|
|
|
2615
2531
|
@_register(
|
|
2616
2532
|
plan_repr=(
|
|
2617
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2618
|
-
"
|
|
2619
|
-
"
|
|
2620
|
-
"
|
|
2621
|
-
"
|
|
2622
|
-
"
|
|
2533
|
+
"Plans(tup=(CopyPlan(fields=('deltas',)), EqPlan(fields=('deltas',)), FrozenPlan(fields=('deltas',), allow_dyna"
|
|
2534
|
+
"mic_dunder_attrs=False), HashPlan(action='add', fields=('deltas',), cache=False), InitPlan(fields=(InitPlan.Fi"
|
|
2535
|
+
"eld(name='deltas', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init"
|
|
2536
|
+
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_par"
|
|
2537
|
+
"am='self', std_params=('deltas',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fn"
|
|
2538
|
+
"s=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='deltas', kw_only=False, fn=None),), id=False, te"
|
|
2539
|
+
"rse=False, default_fn=None)))"
|
|
2623
2540
|
),
|
|
2624
|
-
plan_repr_sha1='
|
|
2541
|
+
plan_repr_sha1='1003b02dad553d007500114656708fbdf6d2db2e',
|
|
2625
2542
|
op_ref_idents=(
|
|
2626
2543
|
'__dataclass__init__fields__0__annotation',
|
|
2627
2544
|
),
|
|
2628
2545
|
cls_names=(
|
|
2629
|
-
('ommlds.minichain.backends.impls.anthropic.
|
|
2546
|
+
('ommlds.minichain.backends.impls.anthropic.stream', 'AiChoiceDeltas'),
|
|
2630
2547
|
),
|
|
2631
2548
|
)
|
|
2632
|
-
def
|
|
2549
|
+
def _process_dataclass__1003b02dad553d007500114656708fbdf6d2db2e():
|
|
2633
2550
|
def _process_dataclass(
|
|
2634
2551
|
*,
|
|
2635
2552
|
__dataclass__cls,
|
|
@@ -2652,7 +2569,7 @@ def _process_dataclass__7e1881cd893ea68089f1fe26ad810799dd14a0d5():
|
|
|
2652
2569
|
if self.__class__ is not __dataclass__cls:
|
|
2653
2570
|
raise TypeError(self)
|
|
2654
2571
|
return __dataclass__cls( # noqa
|
|
2655
|
-
|
|
2572
|
+
deltas=self.deltas,
|
|
2656
2573
|
)
|
|
2657
2574
|
|
|
2658
2575
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2666,7 +2583,7 @@ def _process_dataclass__7e1881cd893ea68089f1fe26ad810799dd14a0d5():
|
|
|
2666
2583
|
if self.__class__ is not other.__class__:
|
|
2667
2584
|
return NotImplemented
|
|
2668
2585
|
return (
|
|
2669
|
-
self.
|
|
2586
|
+
self.deltas == other.deltas
|
|
2670
2587
|
)
|
|
2671
2588
|
|
|
2672
2589
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2674,13 +2591,53 @@ def _process_dataclass__7e1881cd893ea68089f1fe26ad810799dd14a0d5():
|
|
|
2674
2591
|
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2675
2592
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2676
2593
|
|
|
2677
|
-
|
|
2594
|
+
__dataclass___setattr_frozen_fields = {
|
|
2595
|
+
'deltas',
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
def __setattr__(self, name, value):
|
|
2599
|
+
if (
|
|
2600
|
+
type(self) is __dataclass__cls
|
|
2601
|
+
or name in __dataclass___setattr_frozen_fields
|
|
2602
|
+
):
|
|
2603
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2604
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2605
|
+
|
|
2606
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2607
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2608
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2609
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2610
|
+
|
|
2611
|
+
__dataclass___delattr_frozen_fields = {
|
|
2612
|
+
'deltas',
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
def __delattr__(self, name):
|
|
2616
|
+
if (
|
|
2617
|
+
type(self) is __dataclass__cls
|
|
2618
|
+
or name in __dataclass___delattr_frozen_fields
|
|
2619
|
+
):
|
|
2620
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2621
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2622
|
+
|
|
2623
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2624
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2625
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2626
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2627
|
+
|
|
2628
|
+
def __hash__(self):
|
|
2629
|
+
return hash((
|
|
2630
|
+
self.deltas,
|
|
2631
|
+
))
|
|
2632
|
+
|
|
2633
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2634
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2678
2635
|
|
|
2679
2636
|
def __init__(
|
|
2680
2637
|
self,
|
|
2681
|
-
|
|
2638
|
+
deltas: __dataclass__init__fields__0__annotation,
|
|
2682
2639
|
) -> __dataclass__None:
|
|
2683
|
-
self
|
|
2640
|
+
__dataclass__object_setattr(self, 'deltas', deltas)
|
|
2684
2641
|
|
|
2685
2642
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2686
2643
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2690,7 +2647,7 @@ def _process_dataclass__7e1881cd893ea68089f1fe26ad810799dd14a0d5():
|
|
|
2690
2647
|
@__dataclass___recursive_repr()
|
|
2691
2648
|
def __repr__(self):
|
|
2692
2649
|
parts = []
|
|
2693
|
-
parts.append(f"
|
|
2650
|
+
parts.append(f"deltas={self.deltas!r}")
|
|
2694
2651
|
return (
|
|
2695
2652
|
f"{self.__class__.__qualname__}("
|
|
2696
2653
|
f"{', '.join(parts)}"
|
|
@@ -2707,23 +2664,23 @@ def _process_dataclass__7e1881cd893ea68089f1fe26ad810799dd14a0d5():
|
|
|
2707
2664
|
|
|
2708
2665
|
@_register(
|
|
2709
2666
|
plan_repr=(
|
|
2710
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
2711
|
-
"
|
|
2712
|
-
"='
|
|
2713
|
-
"
|
|
2714
|
-
" std_params=('
|
|
2715
|
-
"
|
|
2716
|
-
"
|
|
2667
|
+
"Plans(tup=(CopyPlan(fields=('choices',)), EqPlan(fields=('choices',)), FrozenPlan(fields=('choices',), allow_d"
|
|
2668
|
+
"ynamic_dunder_attrs=False), HashPlan(action='add', fields=('choices',), cache=False), InitPlan(fields=(InitPla"
|
|
2669
|
+
"n.Field(name='choices', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None,"
|
|
2670
|
+
" init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), sel"
|
|
2671
|
+
"f_param='self', std_params=('choices',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, i"
|
|
2672
|
+
"nit_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='choices', kw_only=False, fn=None),), id=Fa"
|
|
2673
|
+
"lse, terse=False, default_fn=None)))"
|
|
2717
2674
|
),
|
|
2718
|
-
plan_repr_sha1='
|
|
2675
|
+
plan_repr_sha1='4f63c0632d5deeaaca3a2cac8b16c190d46387cd',
|
|
2719
2676
|
op_ref_idents=(
|
|
2720
2677
|
'__dataclass__init__fields__0__annotation',
|
|
2721
2678
|
),
|
|
2722
2679
|
cls_names=(
|
|
2723
|
-
('ommlds.minichain.backends.impls.anthropic.
|
|
2680
|
+
('ommlds.minichain.backends.impls.anthropic.stream', 'AiChoicesDeltas'),
|
|
2724
2681
|
),
|
|
2725
2682
|
)
|
|
2726
|
-
def
|
|
2683
|
+
def _process_dataclass__4f63c0632d5deeaaca3a2cac8b16c190d46387cd():
|
|
2727
2684
|
def _process_dataclass(
|
|
2728
2685
|
*,
|
|
2729
2686
|
__dataclass__cls,
|
|
@@ -2746,7 +2703,7 @@ def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
|
2746
2703
|
if self.__class__ is not __dataclass__cls:
|
|
2747
2704
|
raise TypeError(self)
|
|
2748
2705
|
return __dataclass__cls( # noqa
|
|
2749
|
-
|
|
2706
|
+
choices=self.choices,
|
|
2750
2707
|
)
|
|
2751
2708
|
|
|
2752
2709
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -2760,7 +2717,7 @@ def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
|
2760
2717
|
if self.__class__ is not other.__class__:
|
|
2761
2718
|
return NotImplemented
|
|
2762
2719
|
return (
|
|
2763
|
-
self.
|
|
2720
|
+
self.choices == other.choices
|
|
2764
2721
|
)
|
|
2765
2722
|
|
|
2766
2723
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -2769,7 +2726,7 @@ def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
|
2769
2726
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2770
2727
|
|
|
2771
2728
|
__dataclass___setattr_frozen_fields = {
|
|
2772
|
-
'
|
|
2729
|
+
'choices',
|
|
2773
2730
|
}
|
|
2774
2731
|
|
|
2775
2732
|
def __setattr__(self, name, value):
|
|
@@ -2786,7 +2743,7 @@ def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
|
2786
2743
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2787
2744
|
|
|
2788
2745
|
__dataclass___delattr_frozen_fields = {
|
|
2789
|
-
'
|
|
2746
|
+
'choices',
|
|
2790
2747
|
}
|
|
2791
2748
|
|
|
2792
2749
|
def __delattr__(self, name):
|
|
@@ -2804,7 +2761,7 @@ def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
|
2804
2761
|
|
|
2805
2762
|
def __hash__(self):
|
|
2806
2763
|
return hash((
|
|
2807
|
-
self.
|
|
2764
|
+
self.choices,
|
|
2808
2765
|
))
|
|
2809
2766
|
|
|
2810
2767
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -2812,9 +2769,9 @@ def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
|
2812
2769
|
|
|
2813
2770
|
def __init__(
|
|
2814
2771
|
self,
|
|
2815
|
-
|
|
2772
|
+
choices: __dataclass__init__fields__0__annotation,
|
|
2816
2773
|
) -> __dataclass__None:
|
|
2817
|
-
__dataclass__object_setattr(self, '
|
|
2774
|
+
__dataclass__object_setattr(self, 'choices', choices)
|
|
2818
2775
|
|
|
2819
2776
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2820
2777
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -2824,275 +2781,7 @@ def _process_dataclass__7e3901d21ea09aa23ed5fbe10c0b3872163af79f():
|
|
|
2824
2781
|
@__dataclass___recursive_repr()
|
|
2825
2782
|
def __repr__(self):
|
|
2826
2783
|
parts = []
|
|
2827
|
-
parts.append(f"
|
|
2828
|
-
return (
|
|
2829
|
-
f"{self.__class__.__qualname__}("
|
|
2830
|
-
f"{', '.join(parts)}"
|
|
2831
|
-
f")"
|
|
2832
|
-
)
|
|
2833
|
-
|
|
2834
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2835
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
2836
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2837
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2838
|
-
|
|
2839
|
-
return _process_dataclass
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
@_register(
|
|
2843
|
-
plan_repr=(
|
|
2844
|
-
"Plans(tup=(CopyPlan(fields=('deltas',)), EqPlan(fields=('deltas',)), FrozenPlan(fields=('deltas',), allow_dyna"
|
|
2845
|
-
"mic_dunder_attrs=False), HashPlan(action='add', fields=('deltas',), cache=False), InitPlan(fields=(InitPlan.Fi"
|
|
2846
|
-
"eld(name='deltas', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init"
|
|
2847
|
-
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_par"
|
|
2848
|
-
"am='self', std_params=('deltas',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fn"
|
|
2849
|
-
"s=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='deltas', kw_only=False, fn=None),), id=False, te"
|
|
2850
|
-
"rse=False, default_fn=None)))"
|
|
2851
|
-
),
|
|
2852
|
-
plan_repr_sha1='1003b02dad553d007500114656708fbdf6d2db2e',
|
|
2853
|
-
op_ref_idents=(
|
|
2854
|
-
'__dataclass__init__fields__0__annotation',
|
|
2855
|
-
),
|
|
2856
|
-
cls_names=(
|
|
2857
|
-
('ommlds.minichain.backends.impls.anthropic.stream', 'AiChoiceDeltas'),
|
|
2858
|
-
),
|
|
2859
|
-
)
|
|
2860
|
-
def _process_dataclass__1003b02dad553d007500114656708fbdf6d2db2e():
|
|
2861
|
-
def _process_dataclass(
|
|
2862
|
-
*,
|
|
2863
|
-
__dataclass__cls,
|
|
2864
|
-
__dataclass__init__fields__0__annotation,
|
|
2865
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
2866
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
2867
|
-
__dataclass__FnValidationError, # noqa
|
|
2868
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2869
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2870
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2871
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2872
|
-
__dataclass__None=None, # noqa
|
|
2873
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
2874
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2875
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
2876
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2877
|
-
__dataclass__property=property, # noqa
|
|
2878
|
-
):
|
|
2879
|
-
def __copy__(self):
|
|
2880
|
-
if self.__class__ is not __dataclass__cls:
|
|
2881
|
-
raise TypeError(self)
|
|
2882
|
-
return __dataclass__cls( # noqa
|
|
2883
|
-
deltas=self.deltas,
|
|
2884
|
-
)
|
|
2885
|
-
|
|
2886
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2887
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
2888
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2889
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2890
|
-
|
|
2891
|
-
def __eq__(self, other):
|
|
2892
|
-
if self is other:
|
|
2893
|
-
return True
|
|
2894
|
-
if self.__class__ is not other.__class__:
|
|
2895
|
-
return NotImplemented
|
|
2896
|
-
return (
|
|
2897
|
-
self.deltas == other.deltas
|
|
2898
|
-
)
|
|
2899
|
-
|
|
2900
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2901
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
2902
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2903
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2904
|
-
|
|
2905
|
-
__dataclass___setattr_frozen_fields = {
|
|
2906
|
-
'deltas',
|
|
2907
|
-
}
|
|
2908
|
-
|
|
2909
|
-
def __setattr__(self, name, value):
|
|
2910
|
-
if (
|
|
2911
|
-
type(self) is __dataclass__cls
|
|
2912
|
-
or name in __dataclass___setattr_frozen_fields
|
|
2913
|
-
):
|
|
2914
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2915
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2916
|
-
|
|
2917
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2918
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2919
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2920
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2921
|
-
|
|
2922
|
-
__dataclass___delattr_frozen_fields = {
|
|
2923
|
-
'deltas',
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
|
-
def __delattr__(self, name):
|
|
2927
|
-
if (
|
|
2928
|
-
type(self) is __dataclass__cls
|
|
2929
|
-
or name in __dataclass___delattr_frozen_fields
|
|
2930
|
-
):
|
|
2931
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2932
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
2933
|
-
|
|
2934
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2935
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2936
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2937
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2938
|
-
|
|
2939
|
-
def __hash__(self):
|
|
2940
|
-
return hash((
|
|
2941
|
-
self.deltas,
|
|
2942
|
-
))
|
|
2943
|
-
|
|
2944
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2945
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2946
|
-
|
|
2947
|
-
def __init__(
|
|
2948
|
-
self,
|
|
2949
|
-
deltas: __dataclass__init__fields__0__annotation,
|
|
2950
|
-
) -> __dataclass__None:
|
|
2951
|
-
__dataclass__object_setattr(self, 'deltas', deltas)
|
|
2952
|
-
|
|
2953
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2954
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
2955
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2956
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
2957
|
-
|
|
2958
|
-
@__dataclass___recursive_repr()
|
|
2959
|
-
def __repr__(self):
|
|
2960
|
-
parts = []
|
|
2961
|
-
parts.append(f"deltas={self.deltas!r}")
|
|
2962
|
-
return (
|
|
2963
|
-
f"{self.__class__.__qualname__}("
|
|
2964
|
-
f"{', '.join(parts)}"
|
|
2965
|
-
f")"
|
|
2966
|
-
)
|
|
2967
|
-
|
|
2968
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2969
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
2970
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2971
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2972
|
-
|
|
2973
|
-
return _process_dataclass
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
@_register(
|
|
2977
|
-
plan_repr=(
|
|
2978
|
-
"Plans(tup=(CopyPlan(fields=('choices',)), EqPlan(fields=('choices',)), FrozenPlan(fields=('choices',), allow_d"
|
|
2979
|
-
"ynamic_dunder_attrs=False), HashPlan(action='add', fields=('choices',), cache=False), InitPlan(fields=(InitPla"
|
|
2980
|
-
"n.Field(name='choices', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None,"
|
|
2981
|
-
" init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), sel"
|
|
2982
|
-
"f_param='self', std_params=('choices',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, i"
|
|
2983
|
-
"nit_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='choices', kw_only=False, fn=None),), id=Fa"
|
|
2984
|
-
"lse, terse=False, default_fn=None)))"
|
|
2985
|
-
),
|
|
2986
|
-
plan_repr_sha1='4f63c0632d5deeaaca3a2cac8b16c190d46387cd',
|
|
2987
|
-
op_ref_idents=(
|
|
2988
|
-
'__dataclass__init__fields__0__annotation',
|
|
2989
|
-
),
|
|
2990
|
-
cls_names=(
|
|
2991
|
-
('ommlds.minichain.backends.impls.anthropic.stream', 'AiChoicesDeltas'),
|
|
2992
|
-
),
|
|
2993
|
-
)
|
|
2994
|
-
def _process_dataclass__4f63c0632d5deeaaca3a2cac8b16c190d46387cd():
|
|
2995
|
-
def _process_dataclass(
|
|
2996
|
-
*,
|
|
2997
|
-
__dataclass__cls,
|
|
2998
|
-
__dataclass__init__fields__0__annotation,
|
|
2999
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
3000
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
3001
|
-
__dataclass__FnValidationError, # noqa
|
|
3002
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
3003
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
3004
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
3005
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
3006
|
-
__dataclass__None=None, # noqa
|
|
3007
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
3008
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
3009
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
3010
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
3011
|
-
__dataclass__property=property, # noqa
|
|
3012
|
-
):
|
|
3013
|
-
def __copy__(self):
|
|
3014
|
-
if self.__class__ is not __dataclass__cls:
|
|
3015
|
-
raise TypeError(self)
|
|
3016
|
-
return __dataclass__cls( # noqa
|
|
3017
|
-
choices=self.choices,
|
|
3018
|
-
)
|
|
3019
|
-
|
|
3020
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
3021
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
3022
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
3023
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
3024
|
-
|
|
3025
|
-
def __eq__(self, other):
|
|
3026
|
-
if self is other:
|
|
3027
|
-
return True
|
|
3028
|
-
if self.__class__ is not other.__class__:
|
|
3029
|
-
return NotImplemented
|
|
3030
|
-
return (
|
|
3031
|
-
self.choices == other.choices
|
|
3032
|
-
)
|
|
3033
|
-
|
|
3034
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
3035
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
3036
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
3037
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3038
|
-
|
|
3039
|
-
__dataclass___setattr_frozen_fields = {
|
|
3040
|
-
'choices',
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3043
|
-
def __setattr__(self, name, value):
|
|
3044
|
-
if (
|
|
3045
|
-
type(self) is __dataclass__cls
|
|
3046
|
-
or name in __dataclass___setattr_frozen_fields
|
|
3047
|
-
):
|
|
3048
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
3049
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
3050
|
-
|
|
3051
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
3052
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
3053
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
3054
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3055
|
-
|
|
3056
|
-
__dataclass___delattr_frozen_fields = {
|
|
3057
|
-
'choices',
|
|
3058
|
-
}
|
|
3059
|
-
|
|
3060
|
-
def __delattr__(self, name):
|
|
3061
|
-
if (
|
|
3062
|
-
type(self) is __dataclass__cls
|
|
3063
|
-
or name in __dataclass___delattr_frozen_fields
|
|
3064
|
-
):
|
|
3065
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
3066
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
3067
|
-
|
|
3068
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
3069
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
3070
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
3071
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
3072
|
-
|
|
3073
|
-
def __hash__(self):
|
|
3074
|
-
return hash((
|
|
3075
|
-
self.choices,
|
|
3076
|
-
))
|
|
3077
|
-
|
|
3078
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
3079
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
3080
|
-
|
|
3081
|
-
def __init__(
|
|
3082
|
-
self,
|
|
3083
|
-
choices: __dataclass__init__fields__0__annotation,
|
|
3084
|
-
) -> __dataclass__None:
|
|
3085
|
-
__dataclass__object_setattr(self, 'choices', choices)
|
|
3086
|
-
|
|
3087
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3088
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
3089
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
3090
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
3091
|
-
|
|
3092
|
-
@__dataclass___recursive_repr()
|
|
3093
|
-
def __repr__(self):
|
|
3094
|
-
parts = []
|
|
3095
|
-
parts.append(f"choices={self.choices!r}")
|
|
2784
|
+
parts.append(f"choices={self.choices!r}")
|
|
3096
2785
|
return (
|
|
3097
2786
|
f"{self.__class__.__qualname__}("
|
|
3098
2787
|
f"{', '.join(parts)}"
|
|
@@ -3274,6 +2963,8 @@ def _process_dataclass__8a0c9fe2c4d9f2351ede8bd96b873d4507e2617b():
|
|
|
3274
2963
|
),
|
|
3275
2964
|
cls_names=(
|
|
3276
2965
|
('ommlds.minichain.backends.impls.anthropic.stream', 'ContentAiDelta'),
|
|
2966
|
+
('ommlds.minichain.backends.impls.mistral', 'ContentOriginal'),
|
|
2967
|
+
('ommlds.minichain.backends.impls.mistral', 'MessageOriginal'),
|
|
3277
2968
|
),
|
|
3278
2969
|
)
|
|
3279
2970
|
def _process_dataclass__236614658d6f97131f18c84f79eabfe1f3abcc04():
|
|
@@ -4406,16 +4097,605 @@ def _process_dataclass__9a7ab73f68edd197196f8d58344e8bb2b4962d7f():
|
|
|
4406
4097
|
'__dataclass__repr__fns__0__fn',
|
|
4407
4098
|
),
|
|
4408
4099
|
cls_names=(
|
|
4409
|
-
('ommlds.minichain.backends.impls.huggingface.configs', 'HuggingfaceHubToken'),
|
|
4410
|
-
('ommlds.minichain.standard', 'ApiKey'),
|
|
4100
|
+
('ommlds.minichain.backends.impls.huggingface.configs', 'HuggingfaceHubToken'),
|
|
4101
|
+
('ommlds.minichain.standard', 'ApiKey'),
|
|
4102
|
+
),
|
|
4103
|
+
)
|
|
4104
|
+
def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
4105
|
+
def _process_dataclass(
|
|
4106
|
+
*,
|
|
4107
|
+
__dataclass__cls,
|
|
4108
|
+
__dataclass__init__fields__0__annotation,
|
|
4109
|
+
__dataclass__repr__fns__0__fn,
|
|
4110
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
4111
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
4112
|
+
__dataclass__FnValidationError, # noqa
|
|
4113
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
4114
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
4115
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
4116
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
4117
|
+
__dataclass__None=None, # noqa
|
|
4118
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
4119
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
4120
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
4121
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
4122
|
+
__dataclass__property=property, # noqa
|
|
4123
|
+
):
|
|
4124
|
+
def __copy__(self):
|
|
4125
|
+
if self.__class__ is not __dataclass__cls:
|
|
4126
|
+
raise TypeError(self)
|
|
4127
|
+
return __dataclass__cls( # noqa
|
|
4128
|
+
v=self.v,
|
|
4129
|
+
)
|
|
4130
|
+
|
|
4131
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
4132
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
4133
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
4134
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
4135
|
+
|
|
4136
|
+
def __eq__(self, other):
|
|
4137
|
+
if self is other:
|
|
4138
|
+
return True
|
|
4139
|
+
if self.__class__ is not other.__class__:
|
|
4140
|
+
return NotImplemented
|
|
4141
|
+
return (
|
|
4142
|
+
self.v == other.v
|
|
4143
|
+
)
|
|
4144
|
+
|
|
4145
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
4146
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
4147
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
4148
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
4149
|
+
|
|
4150
|
+
__dataclass___setattr_frozen_fields = {
|
|
4151
|
+
'v',
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
def __setattr__(self, name, value):
|
|
4155
|
+
if (
|
|
4156
|
+
type(self) is __dataclass__cls
|
|
4157
|
+
or name in __dataclass___setattr_frozen_fields
|
|
4158
|
+
):
|
|
4159
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
4160
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
4161
|
+
|
|
4162
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
4163
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
4164
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
4165
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
4166
|
+
|
|
4167
|
+
__dataclass___delattr_frozen_fields = {
|
|
4168
|
+
'v',
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
def __delattr__(self, name):
|
|
4172
|
+
if (
|
|
4173
|
+
type(self) is __dataclass__cls
|
|
4174
|
+
or name in __dataclass___delattr_frozen_fields
|
|
4175
|
+
):
|
|
4176
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
4177
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
4178
|
+
|
|
4179
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
4180
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
4181
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
4182
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
4183
|
+
|
|
4184
|
+
def __hash__(self):
|
|
4185
|
+
return hash((
|
|
4186
|
+
self.v,
|
|
4187
|
+
))
|
|
4188
|
+
|
|
4189
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
4190
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
4191
|
+
|
|
4192
|
+
def __init__(
|
|
4193
|
+
self,
|
|
4194
|
+
v: __dataclass__init__fields__0__annotation,
|
|
4195
|
+
) -> __dataclass__None:
|
|
4196
|
+
__dataclass__object_setattr(self, 'v', v)
|
|
4197
|
+
|
|
4198
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4199
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
4200
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
4201
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
4202
|
+
|
|
4203
|
+
@__dataclass___recursive_repr()
|
|
4204
|
+
def __repr__(self):
|
|
4205
|
+
parts = []
|
|
4206
|
+
if (s := __dataclass__repr__fns__0__fn(self.v)) is not None:
|
|
4207
|
+
parts.append(f"{s}")
|
|
4208
|
+
return (
|
|
4209
|
+
f"{self.__class__.__qualname__}("
|
|
4210
|
+
f"{', '.join(parts)}"
|
|
4211
|
+
f")"
|
|
4212
|
+
)
|
|
4213
|
+
|
|
4214
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
4215
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
4216
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
4217
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
4218
|
+
|
|
4219
|
+
return _process_dataclass
|
|
4220
|
+
|
|
4221
|
+
|
|
4222
|
+
@_register(
|
|
4223
|
+
plan_repr=(
|
|
4224
|
+
"Plans(tup=(CopyPlan(fields=('ms',)), EqPlan(fields=('ms',)), FrozenPlan(fields=('ms',), allow_dynamic_dunder_a"
|
|
4225
|
+
"ttrs=False), HashPlan(action='add', fields=('ms',), cache=False), InitPlan(fields=(InitPlan.Field(name='ms', a"
|
|
4226
|
+
"nnotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=Fals"
|
|
4227
|
+
"e, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_param"
|
|
4228
|
+
"s=('ms',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), "
|
|
4229
|
+
"ReprPlan(fields=(ReprPlan.Field(name='ms', kw_only=False, fn=None),), id=False, terse=False, default_fn=None))"
|
|
4230
|
+
")"
|
|
4231
|
+
),
|
|
4232
|
+
plan_repr_sha1='8c235aee49850ebae268d668bebad09ed68eee50',
|
|
4233
|
+
op_ref_idents=(
|
|
4234
|
+
'__dataclass__init__fields__0__annotation',
|
|
4235
|
+
),
|
|
4236
|
+
cls_names=(
|
|
4237
|
+
('ommlds.minichain.backends.impls.mistral', 'AiChoice'),
|
|
4238
|
+
),
|
|
4239
|
+
)
|
|
4240
|
+
def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
4241
|
+
def _process_dataclass(
|
|
4242
|
+
*,
|
|
4243
|
+
__dataclass__cls,
|
|
4244
|
+
__dataclass__init__fields__0__annotation,
|
|
4245
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
4246
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
4247
|
+
__dataclass__FnValidationError, # noqa
|
|
4248
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
4249
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
4250
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
4251
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
4252
|
+
__dataclass__None=None, # noqa
|
|
4253
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
4254
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
4255
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
4256
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
4257
|
+
__dataclass__property=property, # noqa
|
|
4258
|
+
):
|
|
4259
|
+
def __copy__(self):
|
|
4260
|
+
if self.__class__ is not __dataclass__cls:
|
|
4261
|
+
raise TypeError(self)
|
|
4262
|
+
return __dataclass__cls( # noqa
|
|
4263
|
+
ms=self.ms,
|
|
4264
|
+
)
|
|
4265
|
+
|
|
4266
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
4267
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
4268
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
4269
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
4270
|
+
|
|
4271
|
+
def __eq__(self, other):
|
|
4272
|
+
if self is other:
|
|
4273
|
+
return True
|
|
4274
|
+
if self.__class__ is not other.__class__:
|
|
4275
|
+
return NotImplemented
|
|
4276
|
+
return (
|
|
4277
|
+
self.ms == other.ms
|
|
4278
|
+
)
|
|
4279
|
+
|
|
4280
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
4281
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
4282
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
4283
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
4284
|
+
|
|
4285
|
+
__dataclass___setattr_frozen_fields = {
|
|
4286
|
+
'ms',
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
def __setattr__(self, name, value):
|
|
4290
|
+
if (
|
|
4291
|
+
type(self) is __dataclass__cls
|
|
4292
|
+
or name in __dataclass___setattr_frozen_fields
|
|
4293
|
+
):
|
|
4294
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
4295
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
4296
|
+
|
|
4297
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
4298
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
4299
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
4300
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
4301
|
+
|
|
4302
|
+
__dataclass___delattr_frozen_fields = {
|
|
4303
|
+
'ms',
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
def __delattr__(self, name):
|
|
4307
|
+
if (
|
|
4308
|
+
type(self) is __dataclass__cls
|
|
4309
|
+
or name in __dataclass___delattr_frozen_fields
|
|
4310
|
+
):
|
|
4311
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
4312
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
4313
|
+
|
|
4314
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
4315
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
4316
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
4317
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
4318
|
+
|
|
4319
|
+
def __hash__(self):
|
|
4320
|
+
return hash((
|
|
4321
|
+
self.ms,
|
|
4322
|
+
))
|
|
4323
|
+
|
|
4324
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
4325
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
4326
|
+
|
|
4327
|
+
def __init__(
|
|
4328
|
+
self,
|
|
4329
|
+
ms: __dataclass__init__fields__0__annotation,
|
|
4330
|
+
) -> __dataclass__None:
|
|
4331
|
+
__dataclass__object_setattr(self, 'ms', ms)
|
|
4332
|
+
|
|
4333
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4334
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
4335
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
4336
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
4337
|
+
|
|
4338
|
+
@__dataclass___recursive_repr()
|
|
4339
|
+
def __repr__(self):
|
|
4340
|
+
parts = []
|
|
4341
|
+
parts.append(f"ms={self.ms!r}")
|
|
4342
|
+
return (
|
|
4343
|
+
f"{self.__class__.__qualname__}("
|
|
4344
|
+
f"{', '.join(parts)}"
|
|
4345
|
+
f")"
|
|
4346
|
+
)
|
|
4347
|
+
|
|
4348
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
4349
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
4350
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
4351
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
4352
|
+
|
|
4353
|
+
return _process_dataclass
|
|
4354
|
+
|
|
4355
|
+
|
|
4356
|
+
@_register(
|
|
4357
|
+
plan_repr=(
|
|
4358
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'c')), EqPlan(fields=('_metadata', 'c')), FrozenPlan(fields=('_metada"
|
|
4359
|
+
"ta', 'c'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 'c'), cache=False), "
|
|
4360
|
+
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=O"
|
|
4361
|
+
"pRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
4362
|
+
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='c', ann"
|
|
4363
|
+
"otation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=N"
|
|
4364
|
+
"one, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), "
|
|
4365
|
+
"self_param='self', std_params=('c',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_param"
|
|
4366
|
+
"s=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='c', kw_only=False, fn=OpRef(name="
|
|
4367
|
+
"'repr.fns.1.fn')),), id=False, terse=False, default_fn=None)))"
|
|
4368
|
+
),
|
|
4369
|
+
plan_repr_sha1='72c59dbd029af1f55a739e4e5f92cc62c0cecb75',
|
|
4370
|
+
op_ref_idents=(
|
|
4371
|
+
'__dataclass__init__fields__0__annotation',
|
|
4372
|
+
'__dataclass__init__fields__0__coerce',
|
|
4373
|
+
'__dataclass__init__fields__0__default',
|
|
4374
|
+
'__dataclass__init__fields__1__annotation',
|
|
4375
|
+
'__dataclass__init__fields__1__default',
|
|
4376
|
+
'__dataclass__repr__fns__1__fn',
|
|
4377
|
+
),
|
|
4378
|
+
cls_names=(
|
|
4379
|
+
('ommlds.minichain.backends.impls.mistral', 'AiMessage'),
|
|
4380
|
+
),
|
|
4381
|
+
)
|
|
4382
|
+
def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
4383
|
+
def _process_dataclass(
|
|
4384
|
+
*,
|
|
4385
|
+
__dataclass__cls,
|
|
4386
|
+
__dataclass__init__fields__0__annotation,
|
|
4387
|
+
__dataclass__init__fields__0__coerce,
|
|
4388
|
+
__dataclass__init__fields__0__default,
|
|
4389
|
+
__dataclass__init__fields__1__annotation,
|
|
4390
|
+
__dataclass__init__fields__1__default,
|
|
4391
|
+
__dataclass__repr__fns__1__fn,
|
|
4392
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
4393
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
4394
|
+
__dataclass__FnValidationError, # noqa
|
|
4395
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
4396
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
4397
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
4398
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
4399
|
+
__dataclass__None=None, # noqa
|
|
4400
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
4401
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
4402
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
4403
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
4404
|
+
__dataclass__property=property, # noqa
|
|
4405
|
+
):
|
|
4406
|
+
def __copy__(self):
|
|
4407
|
+
if self.__class__ is not __dataclass__cls:
|
|
4408
|
+
raise TypeError(self)
|
|
4409
|
+
return __dataclass__cls( # noqa
|
|
4410
|
+
_metadata=self._metadata,
|
|
4411
|
+
c=self.c,
|
|
4412
|
+
)
|
|
4413
|
+
|
|
4414
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
4415
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
4416
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
4417
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
4418
|
+
|
|
4419
|
+
def __eq__(self, other):
|
|
4420
|
+
if self is other:
|
|
4421
|
+
return True
|
|
4422
|
+
if self.__class__ is not other.__class__:
|
|
4423
|
+
return NotImplemented
|
|
4424
|
+
return (
|
|
4425
|
+
self._metadata == other._metadata and
|
|
4426
|
+
self.c == other.c
|
|
4427
|
+
)
|
|
4428
|
+
|
|
4429
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
4430
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
4431
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
4432
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
4433
|
+
|
|
4434
|
+
__dataclass___setattr_frozen_fields = {
|
|
4435
|
+
'_metadata',
|
|
4436
|
+
'c',
|
|
4437
|
+
}
|
|
4438
|
+
|
|
4439
|
+
def __setattr__(self, name, value):
|
|
4440
|
+
if (
|
|
4441
|
+
type(self) is __dataclass__cls
|
|
4442
|
+
or name in __dataclass___setattr_frozen_fields
|
|
4443
|
+
):
|
|
4444
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
4445
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
4446
|
+
|
|
4447
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
4448
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
4449
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
4450
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
4451
|
+
|
|
4452
|
+
__dataclass___delattr_frozen_fields = {
|
|
4453
|
+
'_metadata',
|
|
4454
|
+
'c',
|
|
4455
|
+
}
|
|
4456
|
+
|
|
4457
|
+
def __delattr__(self, name):
|
|
4458
|
+
if (
|
|
4459
|
+
type(self) is __dataclass__cls
|
|
4460
|
+
or name in __dataclass___delattr_frozen_fields
|
|
4461
|
+
):
|
|
4462
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
4463
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
4464
|
+
|
|
4465
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
4466
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
4467
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
4468
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
4469
|
+
|
|
4470
|
+
def __hash__(self):
|
|
4471
|
+
return hash((
|
|
4472
|
+
self._metadata,
|
|
4473
|
+
self.c,
|
|
4474
|
+
))
|
|
4475
|
+
|
|
4476
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
4477
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
4478
|
+
|
|
4479
|
+
def __init__(
|
|
4480
|
+
self,
|
|
4481
|
+
c: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
4482
|
+
*,
|
|
4483
|
+
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
4484
|
+
) -> __dataclass__None:
|
|
4485
|
+
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
4486
|
+
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
4487
|
+
__dataclass__object_setattr(self, 'c', c)
|
|
4488
|
+
|
|
4489
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4490
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
4491
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
4492
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
4493
|
+
|
|
4494
|
+
@__dataclass___recursive_repr()
|
|
4495
|
+
def __repr__(self):
|
|
4496
|
+
parts = []
|
|
4497
|
+
if (s := __dataclass__repr__fns__1__fn(self.c)) is not None:
|
|
4498
|
+
parts.append(f"c={s}")
|
|
4499
|
+
return (
|
|
4500
|
+
f"{self.__class__.__qualname__}("
|
|
4501
|
+
f"{', '.join(parts)}"
|
|
4502
|
+
f")"
|
|
4503
|
+
)
|
|
4504
|
+
|
|
4505
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
4506
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
4507
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
4508
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
4509
|
+
|
|
4510
|
+
return _process_dataclass
|
|
4511
|
+
|
|
4512
|
+
|
|
4513
|
+
@_register(
|
|
4514
|
+
plan_repr=(
|
|
4515
|
+
"Plans(tup=(CopyPlan(fields=('_metadata',)), EqPlan(fields=('_metadata',)), FrozenPlan(fields=('_metadata',), a"
|
|
4516
|
+
"llow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata',), cache=False), InitPlan(fields="
|
|
4517
|
+
"(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init."
|
|
4518
|
+
"fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=OpR"
|
|
4519
|
+
"ef(name='init.fields.0.coerce'), validate=None, check_type=None),), self_param='self', std_params=(), kw_only_"
|
|
4520
|
+
"params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPla"
|
|
4521
|
+
"n(fields=(), id=False, terse=False, default_fn=None)))"
|
|
4522
|
+
),
|
|
4523
|
+
plan_repr_sha1='9e1d955ccb433717c9538685d2a5ad412ce027f5',
|
|
4524
|
+
op_ref_idents=(
|
|
4525
|
+
'__dataclass__init__fields__0__annotation',
|
|
4526
|
+
'__dataclass__init__fields__0__coerce',
|
|
4527
|
+
'__dataclass__init__fields__0__default',
|
|
4528
|
+
),
|
|
4529
|
+
cls_names=(
|
|
4530
|
+
('ommlds.minichain.backends.impls.mistral', 'AnyAiMessage'),
|
|
4531
|
+
('ommlds.minichain.backends.impls.mistral', 'AnyUserMessage'),
|
|
4532
|
+
('ommlds.minichain.backends.impls.mistral', 'CompositeContent'),
|
|
4533
|
+
('ommlds.minichain.backends.impls.mistral', 'DynamicContent'),
|
|
4534
|
+
('ommlds.minichain.backends.impls.mistral', 'Message'),
|
|
4535
|
+
('ommlds.minichain.backends.impls.mistral', 'RecursiveContent'),
|
|
4536
|
+
('ommlds.minichain.backends.impls.mistral', 'StandardContent'),
|
|
4537
|
+
),
|
|
4538
|
+
)
|
|
4539
|
+
def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
4540
|
+
def _process_dataclass(
|
|
4541
|
+
*,
|
|
4542
|
+
__dataclass__cls,
|
|
4543
|
+
__dataclass__init__fields__0__annotation,
|
|
4544
|
+
__dataclass__init__fields__0__coerce,
|
|
4545
|
+
__dataclass__init__fields__0__default,
|
|
4546
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
4547
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
4548
|
+
__dataclass__FnValidationError, # noqa
|
|
4549
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
4550
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
4551
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
4552
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
4553
|
+
__dataclass__None=None, # noqa
|
|
4554
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
4555
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
4556
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
4557
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
4558
|
+
__dataclass__property=property, # noqa
|
|
4559
|
+
):
|
|
4560
|
+
def __copy__(self):
|
|
4561
|
+
if self.__class__ is not __dataclass__cls:
|
|
4562
|
+
raise TypeError(self)
|
|
4563
|
+
return __dataclass__cls( # noqa
|
|
4564
|
+
_metadata=self._metadata,
|
|
4565
|
+
)
|
|
4566
|
+
|
|
4567
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
4568
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
4569
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
4570
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
4571
|
+
|
|
4572
|
+
def __eq__(self, other):
|
|
4573
|
+
if self is other:
|
|
4574
|
+
return True
|
|
4575
|
+
if self.__class__ is not other.__class__:
|
|
4576
|
+
return NotImplemented
|
|
4577
|
+
return (
|
|
4578
|
+
self._metadata == other._metadata
|
|
4579
|
+
)
|
|
4580
|
+
|
|
4581
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
4582
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
4583
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
4584
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
4585
|
+
|
|
4586
|
+
__dataclass___setattr_frozen_fields = {
|
|
4587
|
+
'_metadata',
|
|
4588
|
+
}
|
|
4589
|
+
|
|
4590
|
+
def __setattr__(self, name, value):
|
|
4591
|
+
if (
|
|
4592
|
+
type(self) is __dataclass__cls
|
|
4593
|
+
or name in __dataclass___setattr_frozen_fields
|
|
4594
|
+
):
|
|
4595
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
4596
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
4597
|
+
|
|
4598
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
4599
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
4600
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
4601
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
4602
|
+
|
|
4603
|
+
__dataclass___delattr_frozen_fields = {
|
|
4604
|
+
'_metadata',
|
|
4605
|
+
}
|
|
4606
|
+
|
|
4607
|
+
def __delattr__(self, name):
|
|
4608
|
+
if (
|
|
4609
|
+
type(self) is __dataclass__cls
|
|
4610
|
+
or name in __dataclass___delattr_frozen_fields
|
|
4611
|
+
):
|
|
4612
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
4613
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
4614
|
+
|
|
4615
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
4616
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
4617
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
4618
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
4619
|
+
|
|
4620
|
+
def __hash__(self):
|
|
4621
|
+
return hash((
|
|
4622
|
+
self._metadata,
|
|
4623
|
+
))
|
|
4624
|
+
|
|
4625
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
4626
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
4627
|
+
|
|
4628
|
+
def __init__(
|
|
4629
|
+
self,
|
|
4630
|
+
*,
|
|
4631
|
+
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
4632
|
+
) -> __dataclass__None:
|
|
4633
|
+
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
4634
|
+
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
4635
|
+
|
|
4636
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4637
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
4638
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
4639
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
4640
|
+
|
|
4641
|
+
@__dataclass___recursive_repr()
|
|
4642
|
+
def __repr__(self):
|
|
4643
|
+
parts = []
|
|
4644
|
+
return (
|
|
4645
|
+
f"{self.__class__.__qualname__}("
|
|
4646
|
+
f"{', '.join(parts)}"
|
|
4647
|
+
f")"
|
|
4648
|
+
)
|
|
4649
|
+
|
|
4650
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
4651
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
4652
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
4653
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
4654
|
+
|
|
4655
|
+
return _process_dataclass
|
|
4656
|
+
|
|
4657
|
+
|
|
4658
|
+
@_register(
|
|
4659
|
+
plan_repr=(
|
|
4660
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 's', 'lang')), EqPlan(fields=('_metadata', 's', 'lang')), FrozenPlan("
|
|
4661
|
+
"fields=('_metadata', 's', 'lang'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadat"
|
|
4662
|
+
"a', 's', 'lang'), cache=False), InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init."
|
|
4663
|
+
"fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override="
|
|
4664
|
+
"False, field_type=FieldType.INSTANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=Non"
|
|
4665
|
+
"e), InitPlan.Field(name='s', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory="
|
|
4666
|
+
"None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), "
|
|
4667
|
+
"InitPlan.Field(name='lang', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields"
|
|
4668
|
+
".2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, val"
|
|
4669
|
+
"idate=None, check_type=None)), self_param='self', std_params=('s',), kw_only_params=('_metadata', 'lang'), fro"
|
|
4670
|
+
"zen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(n"
|
|
4671
|
+
"ame='s', kw_only=False, fn=None), ReprPlan.Field(name='lang', kw_only=True, fn=None)), id=False, terse=False, "
|
|
4672
|
+
"default_fn=None)))"
|
|
4673
|
+
),
|
|
4674
|
+
plan_repr_sha1='1084ab06a48ea8a3ee231cb5371a8312352e8665',
|
|
4675
|
+
op_ref_idents=(
|
|
4676
|
+
'__dataclass__init__fields__0__annotation',
|
|
4677
|
+
'__dataclass__init__fields__0__coerce',
|
|
4678
|
+
'__dataclass__init__fields__0__default',
|
|
4679
|
+
'__dataclass__init__fields__1__annotation',
|
|
4680
|
+
'__dataclass__init__fields__2__annotation',
|
|
4681
|
+
'__dataclass__init__fields__2__default',
|
|
4682
|
+
),
|
|
4683
|
+
cls_names=(
|
|
4684
|
+
('ommlds.minichain.backends.impls.mistral', 'BlockCodeContent'),
|
|
4685
|
+
('ommlds.minichain.backends.impls.mistral', 'CodeContent'),
|
|
4686
|
+
('ommlds.minichain.backends.impls.mistral', 'InlineCodeContent'),
|
|
4411
4687
|
),
|
|
4412
4688
|
)
|
|
4413
|
-
def
|
|
4689
|
+
def _process_dataclass__1084ab06a48ea8a3ee231cb5371a8312352e8665():
|
|
4414
4690
|
def _process_dataclass(
|
|
4415
4691
|
*,
|
|
4416
4692
|
__dataclass__cls,
|
|
4417
4693
|
__dataclass__init__fields__0__annotation,
|
|
4418
|
-
|
|
4694
|
+
__dataclass__init__fields__0__coerce,
|
|
4695
|
+
__dataclass__init__fields__0__default,
|
|
4696
|
+
__dataclass__init__fields__1__annotation,
|
|
4697
|
+
__dataclass__init__fields__2__annotation,
|
|
4698
|
+
__dataclass__init__fields__2__default,
|
|
4419
4699
|
__dataclass__FieldFnValidationError, # noqa
|
|
4420
4700
|
__dataclass__FieldTypeValidationError, # noqa
|
|
4421
4701
|
__dataclass__FnValidationError, # noqa
|
|
@@ -4434,7 +4714,9 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4434
4714
|
if self.__class__ is not __dataclass__cls:
|
|
4435
4715
|
raise TypeError(self)
|
|
4436
4716
|
return __dataclass__cls( # noqa
|
|
4437
|
-
|
|
4717
|
+
_metadata=self._metadata,
|
|
4718
|
+
s=self.s,
|
|
4719
|
+
lang=self.lang,
|
|
4438
4720
|
)
|
|
4439
4721
|
|
|
4440
4722
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -4448,7 +4730,9 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4448
4730
|
if self.__class__ is not other.__class__:
|
|
4449
4731
|
return NotImplemented
|
|
4450
4732
|
return (
|
|
4451
|
-
self.
|
|
4733
|
+
self._metadata == other._metadata and
|
|
4734
|
+
self.s == other.s and
|
|
4735
|
+
self.lang == other.lang
|
|
4452
4736
|
)
|
|
4453
4737
|
|
|
4454
4738
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -4457,7 +4741,9 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4457
4741
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
4458
4742
|
|
|
4459
4743
|
__dataclass___setattr_frozen_fields = {
|
|
4460
|
-
'
|
|
4744
|
+
'_metadata',
|
|
4745
|
+
's',
|
|
4746
|
+
'lang',
|
|
4461
4747
|
}
|
|
4462
4748
|
|
|
4463
4749
|
def __setattr__(self, name, value):
|
|
@@ -4474,7 +4760,9 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4474
4760
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
4475
4761
|
|
|
4476
4762
|
__dataclass___delattr_frozen_fields = {
|
|
4477
|
-
'
|
|
4763
|
+
'_metadata',
|
|
4764
|
+
's',
|
|
4765
|
+
'lang',
|
|
4478
4766
|
}
|
|
4479
4767
|
|
|
4480
4768
|
def __delattr__(self, name):
|
|
@@ -4492,7 +4780,9 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4492
4780
|
|
|
4493
4781
|
def __hash__(self):
|
|
4494
4782
|
return hash((
|
|
4495
|
-
self.
|
|
4783
|
+
self._metadata,
|
|
4784
|
+
self.s,
|
|
4785
|
+
self.lang,
|
|
4496
4786
|
))
|
|
4497
4787
|
|
|
4498
4788
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -4500,9 +4790,15 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4500
4790
|
|
|
4501
4791
|
def __init__(
|
|
4502
4792
|
self,
|
|
4503
|
-
|
|
4793
|
+
s: __dataclass__init__fields__1__annotation,
|
|
4794
|
+
*,
|
|
4795
|
+
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
4796
|
+
lang: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
4504
4797
|
) -> __dataclass__None:
|
|
4505
|
-
|
|
4798
|
+
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
4799
|
+
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
4800
|
+
__dataclass__object_setattr(self, 's', s)
|
|
4801
|
+
__dataclass__object_setattr(self, 'lang', lang)
|
|
4506
4802
|
|
|
4507
4803
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4508
4804
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -4512,8 +4808,8 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4512
4808
|
@__dataclass___recursive_repr()
|
|
4513
4809
|
def __repr__(self):
|
|
4514
4810
|
parts = []
|
|
4515
|
-
|
|
4516
|
-
|
|
4811
|
+
parts.append(f"s={self.s!r}")
|
|
4812
|
+
parts.append(f"lang={self.lang!r}")
|
|
4517
4813
|
return (
|
|
4518
4814
|
f"{self.__class__.__qualname__}("
|
|
4519
4815
|
f"{', '.join(parts)}"
|
|
@@ -4530,27 +4826,38 @@ def _process_dataclass__663f7924a951e0a39befa6d9c0c541bbf2575506():
|
|
|
4530
4826
|
|
|
4531
4827
|
@_register(
|
|
4532
4828
|
plan_repr=(
|
|
4533
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
4534
|
-
"
|
|
4535
|
-
"
|
|
4536
|
-
"
|
|
4537
|
-
"
|
|
4538
|
-
"
|
|
4539
|
-
")"
|
|
4829
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'l')), EqPlan(fields=('_metadata', 'l')), FrozenPlan(fields=('_metada"
|
|
4830
|
+
"ta', 'l'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 'l'), cache=False), "
|
|
4831
|
+
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=O"
|
|
4832
|
+
"pRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
4833
|
+
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='l', ann"
|
|
4834
|
+
"otation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False,"
|
|
4835
|
+
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=("
|
|
4836
|
+
"'l',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
4837
|
+
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='l', kw_only=False, fn=None),), id=False, terse=False, default_fn"
|
|
4838
|
+
"=None)))"
|
|
4540
4839
|
),
|
|
4541
|
-
plan_repr_sha1='
|
|
4840
|
+
plan_repr_sha1='a2e975e22d97a4d134241bb5fd72c882b2f11f5b',
|
|
4542
4841
|
op_ref_idents=(
|
|
4543
4842
|
'__dataclass__init__fields__0__annotation',
|
|
4843
|
+
'__dataclass__init__fields__0__coerce',
|
|
4844
|
+
'__dataclass__init__fields__0__default',
|
|
4845
|
+
'__dataclass__init__fields__1__annotation',
|
|
4544
4846
|
),
|
|
4545
4847
|
cls_names=(
|
|
4546
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
4848
|
+
('ommlds.minichain.backends.impls.mistral', 'BlockContent'),
|
|
4849
|
+
('ommlds.minichain.backends.impls.mistral', 'InlineContent'),
|
|
4850
|
+
('ommlds.minichain.backends.impls.mistral', 'SequenceContent'),
|
|
4547
4851
|
),
|
|
4548
4852
|
)
|
|
4549
|
-
def
|
|
4853
|
+
def _process_dataclass__a2e975e22d97a4d134241bb5fd72c882b2f11f5b():
|
|
4550
4854
|
def _process_dataclass(
|
|
4551
4855
|
*,
|
|
4552
4856
|
__dataclass__cls,
|
|
4553
4857
|
__dataclass__init__fields__0__annotation,
|
|
4858
|
+
__dataclass__init__fields__0__coerce,
|
|
4859
|
+
__dataclass__init__fields__0__default,
|
|
4860
|
+
__dataclass__init__fields__1__annotation,
|
|
4554
4861
|
__dataclass__FieldFnValidationError, # noqa
|
|
4555
4862
|
__dataclass__FieldTypeValidationError, # noqa
|
|
4556
4863
|
__dataclass__FnValidationError, # noqa
|
|
@@ -4569,7 +4876,8 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4569
4876
|
if self.__class__ is not __dataclass__cls:
|
|
4570
4877
|
raise TypeError(self)
|
|
4571
4878
|
return __dataclass__cls( # noqa
|
|
4572
|
-
|
|
4879
|
+
_metadata=self._metadata,
|
|
4880
|
+
l=self.l,
|
|
4573
4881
|
)
|
|
4574
4882
|
|
|
4575
4883
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -4583,7 +4891,8 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4583
4891
|
if self.__class__ is not other.__class__:
|
|
4584
4892
|
return NotImplemented
|
|
4585
4893
|
return (
|
|
4586
|
-
self.
|
|
4894
|
+
self._metadata == other._metadata and
|
|
4895
|
+
self.l == other.l
|
|
4587
4896
|
)
|
|
4588
4897
|
|
|
4589
4898
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -4592,7 +4901,8 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4592
4901
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
4593
4902
|
|
|
4594
4903
|
__dataclass___setattr_frozen_fields = {
|
|
4595
|
-
'
|
|
4904
|
+
'_metadata',
|
|
4905
|
+
'l',
|
|
4596
4906
|
}
|
|
4597
4907
|
|
|
4598
4908
|
def __setattr__(self, name, value):
|
|
@@ -4609,7 +4919,8 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4609
4919
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
4610
4920
|
|
|
4611
4921
|
__dataclass___delattr_frozen_fields = {
|
|
4612
|
-
'
|
|
4922
|
+
'_metadata',
|
|
4923
|
+
'l',
|
|
4613
4924
|
}
|
|
4614
4925
|
|
|
4615
4926
|
def __delattr__(self, name):
|
|
@@ -4627,7 +4938,8 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4627
4938
|
|
|
4628
4939
|
def __hash__(self):
|
|
4629
4940
|
return hash((
|
|
4630
|
-
self.
|
|
4941
|
+
self._metadata,
|
|
4942
|
+
self.l,
|
|
4631
4943
|
))
|
|
4632
4944
|
|
|
4633
4945
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -4635,9 +4947,13 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4635
4947
|
|
|
4636
4948
|
def __init__(
|
|
4637
4949
|
self,
|
|
4638
|
-
|
|
4950
|
+
l: __dataclass__init__fields__1__annotation,
|
|
4951
|
+
*,
|
|
4952
|
+
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
4639
4953
|
) -> __dataclass__None:
|
|
4640
|
-
|
|
4954
|
+
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
4955
|
+
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
4956
|
+
__dataclass__object_setattr(self, 'l', l)
|
|
4641
4957
|
|
|
4642
4958
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4643
4959
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -4647,7 +4963,7 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4647
4963
|
@__dataclass___recursive_repr()
|
|
4648
4964
|
def __repr__(self):
|
|
4649
4965
|
parts = []
|
|
4650
|
-
parts.append(f"
|
|
4966
|
+
parts.append(f"l={self.l!r}")
|
|
4651
4967
|
return (
|
|
4652
4968
|
f"{self.__class__.__qualname__}("
|
|
4653
4969
|
f"{', '.join(parts)}"
|
|
@@ -4664,31 +4980,34 @@ def _process_dataclass__8c235aee49850ebae268d668bebad09ed68eee50():
|
|
|
4664
4980
|
|
|
4665
4981
|
@_register(
|
|
4666
4982
|
plan_repr=(
|
|
4667
|
-
"Plans(tup=(CopyPlan(fields=('_metadata', '
|
|
4668
|
-
"ta', '
|
|
4983
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 's')), EqPlan(fields=('_metadata', 's')), FrozenPlan(fields=('_metada"
|
|
4984
|
+
"ta', 's'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 's'), cache=False), "
|
|
4669
4985
|
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=O"
|
|
4670
4986
|
"pRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
4671
|
-
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='
|
|
4672
|
-
"otation=OpRef(name='init.fields.1.annotation'), default=
|
|
4673
|
-
"
|
|
4674
|
-
"
|
|
4675
|
-
"
|
|
4676
|
-
"
|
|
4987
|
+
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='s', ann"
|
|
4988
|
+
"otation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False,"
|
|
4989
|
+
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=("
|
|
4990
|
+
"'s',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
4991
|
+
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='s', kw_only=False, fn=None),), id=False, terse=False, default_fn"
|
|
4992
|
+
"=None)))"
|
|
4677
4993
|
),
|
|
4678
|
-
plan_repr_sha1='
|
|
4994
|
+
plan_repr_sha1='e28bbe95a5e6fa9335be8f6fa393bd08862be998',
|
|
4679
4995
|
op_ref_idents=(
|
|
4680
4996
|
'__dataclass__init__fields__0__annotation',
|
|
4681
4997
|
'__dataclass__init__fields__0__coerce',
|
|
4682
4998
|
'__dataclass__init__fields__0__default',
|
|
4683
4999
|
'__dataclass__init__fields__1__annotation',
|
|
4684
|
-
'__dataclass__init__fields__1__default',
|
|
4685
|
-
'__dataclass__repr__fns__1__fn',
|
|
4686
5000
|
),
|
|
4687
5001
|
cls_names=(
|
|
4688
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
5002
|
+
('ommlds.minichain.backends.impls.mistral', 'BoldContent'),
|
|
5003
|
+
('ommlds.minichain.backends.impls.mistral', 'BoldItalicContent'),
|
|
5004
|
+
('ommlds.minichain.backends.impls.mistral', 'EmphasisContent'),
|
|
5005
|
+
('ommlds.minichain.backends.impls.mistral', 'ItalicContent'),
|
|
5006
|
+
('ommlds.minichain.backends.impls.mistral', 'MarkdownContent'),
|
|
5007
|
+
('ommlds.minichain.backends.impls.mistral', 'TextContent'),
|
|
4689
5008
|
),
|
|
4690
5009
|
)
|
|
4691
|
-
def
|
|
5010
|
+
def _process_dataclass__e28bbe95a5e6fa9335be8f6fa393bd08862be998():
|
|
4692
5011
|
def _process_dataclass(
|
|
4693
5012
|
*,
|
|
4694
5013
|
__dataclass__cls,
|
|
@@ -4696,8 +5015,6 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4696
5015
|
__dataclass__init__fields__0__coerce,
|
|
4697
5016
|
__dataclass__init__fields__0__default,
|
|
4698
5017
|
__dataclass__init__fields__1__annotation,
|
|
4699
|
-
__dataclass__init__fields__1__default,
|
|
4700
|
-
__dataclass__repr__fns__1__fn,
|
|
4701
5018
|
__dataclass__FieldFnValidationError, # noqa
|
|
4702
5019
|
__dataclass__FieldTypeValidationError, # noqa
|
|
4703
5020
|
__dataclass__FnValidationError, # noqa
|
|
@@ -4717,7 +5034,7 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4717
5034
|
raise TypeError(self)
|
|
4718
5035
|
return __dataclass__cls( # noqa
|
|
4719
5036
|
_metadata=self._metadata,
|
|
4720
|
-
|
|
5037
|
+
s=self.s,
|
|
4721
5038
|
)
|
|
4722
5039
|
|
|
4723
5040
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -4732,7 +5049,7 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4732
5049
|
return NotImplemented
|
|
4733
5050
|
return (
|
|
4734
5051
|
self._metadata == other._metadata and
|
|
4735
|
-
self.
|
|
5052
|
+
self.s == other.s
|
|
4736
5053
|
)
|
|
4737
5054
|
|
|
4738
5055
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -4742,7 +5059,7 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4742
5059
|
|
|
4743
5060
|
__dataclass___setattr_frozen_fields = {
|
|
4744
5061
|
'_metadata',
|
|
4745
|
-
'
|
|
5062
|
+
's',
|
|
4746
5063
|
}
|
|
4747
5064
|
|
|
4748
5065
|
def __setattr__(self, name, value):
|
|
@@ -4760,7 +5077,7 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4760
5077
|
|
|
4761
5078
|
__dataclass___delattr_frozen_fields = {
|
|
4762
5079
|
'_metadata',
|
|
4763
|
-
'
|
|
5080
|
+
's',
|
|
4764
5081
|
}
|
|
4765
5082
|
|
|
4766
5083
|
def __delattr__(self, name):
|
|
@@ -4779,7 +5096,7 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4779
5096
|
def __hash__(self):
|
|
4780
5097
|
return hash((
|
|
4781
5098
|
self._metadata,
|
|
4782
|
-
self.
|
|
5099
|
+
self.s,
|
|
4783
5100
|
))
|
|
4784
5101
|
|
|
4785
5102
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -4787,13 +5104,13 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4787
5104
|
|
|
4788
5105
|
def __init__(
|
|
4789
5106
|
self,
|
|
4790
|
-
|
|
5107
|
+
s: __dataclass__init__fields__1__annotation,
|
|
4791
5108
|
*,
|
|
4792
5109
|
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
4793
5110
|
) -> __dataclass__None:
|
|
4794
5111
|
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
4795
5112
|
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
4796
|
-
__dataclass__object_setattr(self, '
|
|
5113
|
+
__dataclass__object_setattr(self, 's', s)
|
|
4797
5114
|
|
|
4798
5115
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4799
5116
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -4803,8 +5120,7 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4803
5120
|
@__dataclass___recursive_repr()
|
|
4804
5121
|
def __repr__(self):
|
|
4805
5122
|
parts = []
|
|
4806
|
-
|
|
4807
|
-
parts.append(f"c={s}")
|
|
5123
|
+
parts.append(f"s={self.s!r}")
|
|
4808
5124
|
return (
|
|
4809
5125
|
f"{self.__class__.__qualname__}("
|
|
4810
5126
|
f"{', '.join(parts)}"
|
|
@@ -4821,33 +5137,32 @@ def _process_dataclass__72c59dbd029af1f55a739e4e5f92cc62c0cecb75():
|
|
|
4821
5137
|
|
|
4822
5138
|
@_register(
|
|
4823
5139
|
plan_repr=(
|
|
4824
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
4825
|
-
"
|
|
4826
|
-
"(InitPlan.Field(name='
|
|
4827
|
-
"
|
|
4828
|
-
"
|
|
4829
|
-
"
|
|
4830
|
-
"
|
|
5140
|
+
"Plans(tup=(CopyPlan(fields=('type', 'values')), EqPlan(fields=('type', 'values')), FrozenPlan(fields=('type', "
|
|
5141
|
+
"'values'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('type', 'values'), cache=False), "
|
|
5142
|
+
"InitPlan(fields=(InitPlan.Field(name='type', annotation=OpRef(name='init.fields.0.annotation'), default=None, "
|
|
5143
|
+
"default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, ch"
|
|
5144
|
+
"eck_type=None), InitPlan.Field(name='values', annotation=OpRef(name='init.fields.1.annotation'), default=None,"
|
|
5145
|
+
" default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, c"
|
|
5146
|
+
"heck_type=None)), self_param='self', std_params=('type', 'values'), kw_only_params=(), frozen=True, slots=Fals"
|
|
5147
|
+
"e, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='type', kw_only="
|
|
5148
|
+
"False, fn=None), ReprPlan.Field(name='values', kw_only=False, fn=None)), id=False, terse=True, default_fn=None"
|
|
5149
|
+
")))"
|
|
4831
5150
|
),
|
|
4832
|
-
plan_repr_sha1='
|
|
5151
|
+
plan_repr_sha1='922e75739507bda9dce73a0d3dc05534b1cc9ae5',
|
|
4833
5152
|
op_ref_idents=(
|
|
4834
5153
|
'__dataclass__init__fields__0__annotation',
|
|
4835
|
-
'
|
|
4836
|
-
'__dataclass__init__fields__0__default',
|
|
5154
|
+
'__dataclass__init__fields__1__annotation',
|
|
4837
5155
|
),
|
|
4838
5156
|
cls_names=(
|
|
4839
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
4840
|
-
('ommlds.minichain.backends.impls.mistral', 'AnyUserMessage'),
|
|
4841
|
-
('ommlds.minichain.backends.impls.mistral', 'Message'),
|
|
5157
|
+
('ommlds.minichain.backends.impls.mistral', 'EnumToolDtype'),
|
|
4842
5158
|
),
|
|
4843
5159
|
)
|
|
4844
|
-
def
|
|
5160
|
+
def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
4845
5161
|
def _process_dataclass(
|
|
4846
5162
|
*,
|
|
4847
5163
|
__dataclass__cls,
|
|
4848
5164
|
__dataclass__init__fields__0__annotation,
|
|
4849
|
-
|
|
4850
|
-
__dataclass__init__fields__0__default,
|
|
5165
|
+
__dataclass__init__fields__1__annotation,
|
|
4851
5166
|
__dataclass__FieldFnValidationError, # noqa
|
|
4852
5167
|
__dataclass__FieldTypeValidationError, # noqa
|
|
4853
5168
|
__dataclass__FnValidationError, # noqa
|
|
@@ -4866,7 +5181,8 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4866
5181
|
if self.__class__ is not __dataclass__cls:
|
|
4867
5182
|
raise TypeError(self)
|
|
4868
5183
|
return __dataclass__cls( # noqa
|
|
4869
|
-
|
|
5184
|
+
type=self.type,
|
|
5185
|
+
values=self.values,
|
|
4870
5186
|
)
|
|
4871
5187
|
|
|
4872
5188
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -4880,7 +5196,8 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4880
5196
|
if self.__class__ is not other.__class__:
|
|
4881
5197
|
return NotImplemented
|
|
4882
5198
|
return (
|
|
4883
|
-
self.
|
|
5199
|
+
self.type == other.type and
|
|
5200
|
+
self.values == other.values
|
|
4884
5201
|
)
|
|
4885
5202
|
|
|
4886
5203
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -4889,7 +5206,8 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4889
5206
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
4890
5207
|
|
|
4891
5208
|
__dataclass___setattr_frozen_fields = {
|
|
4892
|
-
'
|
|
5209
|
+
'type',
|
|
5210
|
+
'values',
|
|
4893
5211
|
}
|
|
4894
5212
|
|
|
4895
5213
|
def __setattr__(self, name, value):
|
|
@@ -4906,7 +5224,8 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4906
5224
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
4907
5225
|
|
|
4908
5226
|
__dataclass___delattr_frozen_fields = {
|
|
4909
|
-
'
|
|
5227
|
+
'type',
|
|
5228
|
+
'values',
|
|
4910
5229
|
}
|
|
4911
5230
|
|
|
4912
5231
|
def __delattr__(self, name):
|
|
@@ -4924,7 +5243,8 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4924
5243
|
|
|
4925
5244
|
def __hash__(self):
|
|
4926
5245
|
return hash((
|
|
4927
|
-
self.
|
|
5246
|
+
self.type,
|
|
5247
|
+
self.values,
|
|
4928
5248
|
))
|
|
4929
5249
|
|
|
4930
5250
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -4932,11 +5252,11 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4932
5252
|
|
|
4933
5253
|
def __init__(
|
|
4934
5254
|
self,
|
|
4935
|
-
|
|
4936
|
-
|
|
5255
|
+
type: __dataclass__init__fields__0__annotation,
|
|
5256
|
+
values: __dataclass__init__fields__1__annotation,
|
|
4937
5257
|
) -> __dataclass__None:
|
|
4938
|
-
|
|
4939
|
-
__dataclass__object_setattr(self, '
|
|
5258
|
+
__dataclass__object_setattr(self, 'type', type)
|
|
5259
|
+
__dataclass__object_setattr(self, 'values', values)
|
|
4940
5260
|
|
|
4941
5261
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
4942
5262
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -4946,6 +5266,8 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4946
5266
|
@__dataclass___recursive_repr()
|
|
4947
5267
|
def __repr__(self):
|
|
4948
5268
|
parts = []
|
|
5269
|
+
parts.append(f"{self.type!r}")
|
|
5270
|
+
parts.append(f"{self.values!r}")
|
|
4949
5271
|
return (
|
|
4950
5272
|
f"{self.__class__.__qualname__}("
|
|
4951
5273
|
f"{', '.join(parts)}"
|
|
@@ -4962,33 +5284,29 @@ def _process_dataclass__9e1d955ccb433717c9538685d2a5ad412ce027f5():
|
|
|
4962
5284
|
|
|
4963
5285
|
@_register(
|
|
4964
5286
|
plan_repr=(
|
|
4965
|
-
"Plans(tup=(CopyPlan(fields=('_metadata', '
|
|
4966
|
-
"ta', '
|
|
5287
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'i')), EqPlan(fields=('_metadata', 'i')), FrozenPlan(fields=('_metada"
|
|
5288
|
+
"ta', 'i'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 'i'), cache=False), "
|
|
4967
5289
|
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=O"
|
|
4968
5290
|
"pRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
4969
|
-
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='
|
|
5291
|
+
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='i', ann"
|
|
4970
5292
|
"otation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False,"
|
|
4971
5293
|
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=("
|
|
4972
|
-
"'
|
|
4973
|
-
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='
|
|
4974
|
-
"
|
|
5294
|
+
"'i',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
5295
|
+
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='i', kw_only=False, fn=None),), id=False, terse=False, default_fn"
|
|
5296
|
+
"=None)))"
|
|
4975
5297
|
),
|
|
4976
|
-
plan_repr_sha1='
|
|
5298
|
+
plan_repr_sha1='887228244e97e7d09085da1386353f1085809224',
|
|
4977
5299
|
op_ref_idents=(
|
|
4978
5300
|
'__dataclass__init__fields__0__annotation',
|
|
4979
5301
|
'__dataclass__init__fields__0__coerce',
|
|
4980
5302
|
'__dataclass__init__fields__0__default',
|
|
4981
5303
|
'__dataclass__init__fields__1__annotation',
|
|
4982
|
-
'__dataclass__repr__fns__0__fn',
|
|
4983
5304
|
),
|
|
4984
5305
|
cls_names=(
|
|
4985
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
4986
|
-
('ommlds.minichain.backends.impls.mistral', 'InlineContent'),
|
|
4987
|
-
('ommlds.minichain.backends.impls.mistral', 'ItemListContent'),
|
|
4988
|
-
('ommlds.minichain.backends.impls.mistral', 'SequenceContent'),
|
|
5306
|
+
('ommlds.minichain.backends.impls.mistral', 'ImageContent'),
|
|
4989
5307
|
),
|
|
4990
5308
|
)
|
|
4991
|
-
def
|
|
5309
|
+
def _process_dataclass__887228244e97e7d09085da1386353f1085809224():
|
|
4992
5310
|
def _process_dataclass(
|
|
4993
5311
|
*,
|
|
4994
5312
|
__dataclass__cls,
|
|
@@ -4996,7 +5314,6 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
4996
5314
|
__dataclass__init__fields__0__coerce,
|
|
4997
5315
|
__dataclass__init__fields__0__default,
|
|
4998
5316
|
__dataclass__init__fields__1__annotation,
|
|
4999
|
-
__dataclass__repr__fns__0__fn,
|
|
5000
5317
|
__dataclass__FieldFnValidationError, # noqa
|
|
5001
5318
|
__dataclass__FieldTypeValidationError, # noqa
|
|
5002
5319
|
__dataclass__FnValidationError, # noqa
|
|
@@ -5016,7 +5333,7 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5016
5333
|
raise TypeError(self)
|
|
5017
5334
|
return __dataclass__cls( # noqa
|
|
5018
5335
|
_metadata=self._metadata,
|
|
5019
|
-
|
|
5336
|
+
i=self.i,
|
|
5020
5337
|
)
|
|
5021
5338
|
|
|
5022
5339
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -5031,7 +5348,7 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5031
5348
|
return NotImplemented
|
|
5032
5349
|
return (
|
|
5033
5350
|
self._metadata == other._metadata and
|
|
5034
|
-
self.
|
|
5351
|
+
self.i == other.i
|
|
5035
5352
|
)
|
|
5036
5353
|
|
|
5037
5354
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -5041,7 +5358,7 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5041
5358
|
|
|
5042
5359
|
__dataclass___setattr_frozen_fields = {
|
|
5043
5360
|
'_metadata',
|
|
5044
|
-
'
|
|
5361
|
+
'i',
|
|
5045
5362
|
}
|
|
5046
5363
|
|
|
5047
5364
|
def __setattr__(self, name, value):
|
|
@@ -5059,7 +5376,7 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5059
5376
|
|
|
5060
5377
|
__dataclass___delattr_frozen_fields = {
|
|
5061
5378
|
'_metadata',
|
|
5062
|
-
'
|
|
5379
|
+
'i',
|
|
5063
5380
|
}
|
|
5064
5381
|
|
|
5065
5382
|
def __delattr__(self, name):
|
|
@@ -5078,7 +5395,7 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5078
5395
|
def __hash__(self):
|
|
5079
5396
|
return hash((
|
|
5080
5397
|
self._metadata,
|
|
5081
|
-
self.
|
|
5398
|
+
self.i,
|
|
5082
5399
|
))
|
|
5083
5400
|
|
|
5084
5401
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -5086,13 +5403,13 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5086
5403
|
|
|
5087
5404
|
def __init__(
|
|
5088
5405
|
self,
|
|
5089
|
-
|
|
5406
|
+
i: __dataclass__init__fields__1__annotation,
|
|
5090
5407
|
*,
|
|
5091
5408
|
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
5092
5409
|
) -> __dataclass__None:
|
|
5093
5410
|
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
5094
5411
|
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
5095
|
-
__dataclass__object_setattr(self, '
|
|
5412
|
+
__dataclass__object_setattr(self, 'i', i)
|
|
5096
5413
|
|
|
5097
5414
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
5098
5415
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -5102,9 +5419,7 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5102
5419
|
@__dataclass___recursive_repr()
|
|
5103
5420
|
def __repr__(self):
|
|
5104
5421
|
parts = []
|
|
5105
|
-
|
|
5106
|
-
parts.append(f"_metadata={s}")
|
|
5107
|
-
parts.append(f"l={self.l!r}")
|
|
5422
|
+
parts.append(f"i={self.i!r}")
|
|
5108
5423
|
return (
|
|
5109
5424
|
f"{self.__class__.__qualname__}("
|
|
5110
5425
|
f"{', '.join(parts)}"
|
|
@@ -5121,21 +5436,21 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5121
5436
|
|
|
5122
5437
|
@_register(
|
|
5123
5438
|
plan_repr=(
|
|
5124
|
-
"Plans(tup=(CopyPlan(fields=('_metadata', '
|
|
5125
|
-
"fields=('_metadata', '
|
|
5126
|
-
"
|
|
5127
|
-
"fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True,
|
|
5128
|
-
"False, field_type=FieldType.INSTANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type
|
|
5129
|
-
"
|
|
5130
|
-
"None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=
|
|
5131
|
-
"InitPlan.Field(name='
|
|
5132
|
-
".2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None
|
|
5133
|
-
"
|
|
5134
|
-
"
|
|
5135
|
-
"
|
|
5136
|
-
"
|
|
5137
|
-
),
|
|
5138
|
-
plan_repr_sha1='
|
|
5439
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'l', 'style')), EqPlan(fields=('_metadata', 'l', 'style')), FrozenPla"
|
|
5440
|
+
"n(fields=('_metadata', 'l', 'style'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_meta"
|
|
5441
|
+
"data', 'l', 'style'), cache=False), InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='i"
|
|
5442
|
+
"nit.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, overr"
|
|
5443
|
+
"ide=False, field_type=FieldType.INSTANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type"
|
|
5444
|
+
"=None), InitPlan.Field(name='l', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_fact"
|
|
5445
|
+
"ory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=Non"
|
|
5446
|
+
"e), InitPlan.Field(name='style', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init.f"
|
|
5447
|
+
"ields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None"
|
|
5448
|
+
", validate=None, check_type=None)), self_param='self', std_params=('l',), kw_only_params=('_metadata', 'style'"
|
|
5449
|
+
"), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.F"
|
|
5450
|
+
"ield(name='l', kw_only=False, fn=None), ReprPlan.Field(name='style', kw_only=True, fn=None)), id=False, terse="
|
|
5451
|
+
"False, default_fn=None)))"
|
|
5452
|
+
),
|
|
5453
|
+
plan_repr_sha1='5df7f02aa96ac5e3dd094d829580f887801535df',
|
|
5139
5454
|
op_ref_idents=(
|
|
5140
5455
|
'__dataclass__init__fields__0__annotation',
|
|
5141
5456
|
'__dataclass__init__fields__0__coerce',
|
|
@@ -5143,13 +5458,12 @@ def _process_dataclass__281796d144299e91ab063fdfbfabe3f0e8e89f9d():
|
|
|
5143
5458
|
'__dataclass__init__fields__1__annotation',
|
|
5144
5459
|
'__dataclass__init__fields__2__annotation',
|
|
5145
5460
|
'__dataclass__init__fields__2__default',
|
|
5146
|
-
'__dataclass__repr__fns__0__fn',
|
|
5147
5461
|
),
|
|
5148
5462
|
cls_names=(
|
|
5149
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
5463
|
+
('ommlds.minichain.backends.impls.mistral', 'ItemListContent'),
|
|
5150
5464
|
),
|
|
5151
5465
|
)
|
|
5152
|
-
def
|
|
5466
|
+
def _process_dataclass__5df7f02aa96ac5e3dd094d829580f887801535df():
|
|
5153
5467
|
def _process_dataclass(
|
|
5154
5468
|
*,
|
|
5155
5469
|
__dataclass__cls,
|
|
@@ -5159,7 +5473,6 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5159
5473
|
__dataclass__init__fields__1__annotation,
|
|
5160
5474
|
__dataclass__init__fields__2__annotation,
|
|
5161
5475
|
__dataclass__init__fields__2__default,
|
|
5162
|
-
__dataclass__repr__fns__0__fn,
|
|
5163
5476
|
__dataclass__FieldFnValidationError, # noqa
|
|
5164
5477
|
__dataclass__FieldTypeValidationError, # noqa
|
|
5165
5478
|
__dataclass__FnValidationError, # noqa
|
|
@@ -5179,8 +5492,8 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5179
5492
|
raise TypeError(self)
|
|
5180
5493
|
return __dataclass__cls( # noqa
|
|
5181
5494
|
_metadata=self._metadata,
|
|
5182
|
-
|
|
5183
|
-
|
|
5495
|
+
l=self.l,
|
|
5496
|
+
style=self.style,
|
|
5184
5497
|
)
|
|
5185
5498
|
|
|
5186
5499
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -5195,8 +5508,8 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5195
5508
|
return NotImplemented
|
|
5196
5509
|
return (
|
|
5197
5510
|
self._metadata == other._metadata and
|
|
5198
|
-
self.
|
|
5199
|
-
self.
|
|
5511
|
+
self.l == other.l and
|
|
5512
|
+
self.style == other.style
|
|
5200
5513
|
)
|
|
5201
5514
|
|
|
5202
5515
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -5206,8 +5519,8 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5206
5519
|
|
|
5207
5520
|
__dataclass___setattr_frozen_fields = {
|
|
5208
5521
|
'_metadata',
|
|
5209
|
-
'
|
|
5210
|
-
'
|
|
5522
|
+
'l',
|
|
5523
|
+
'style',
|
|
5211
5524
|
}
|
|
5212
5525
|
|
|
5213
5526
|
def __setattr__(self, name, value):
|
|
@@ -5225,8 +5538,8 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5225
5538
|
|
|
5226
5539
|
__dataclass___delattr_frozen_fields = {
|
|
5227
5540
|
'_metadata',
|
|
5228
|
-
'
|
|
5229
|
-
'
|
|
5541
|
+
'l',
|
|
5542
|
+
'style',
|
|
5230
5543
|
}
|
|
5231
5544
|
|
|
5232
5545
|
def __delattr__(self, name):
|
|
@@ -5244,9 +5557,9 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5244
5557
|
|
|
5245
5558
|
def __hash__(self):
|
|
5246
5559
|
return hash((
|
|
5247
|
-
self._metadata,
|
|
5248
|
-
self.
|
|
5249
|
-
self.
|
|
5560
|
+
self._metadata,
|
|
5561
|
+
self.l,
|
|
5562
|
+
self.style,
|
|
5250
5563
|
))
|
|
5251
5564
|
|
|
5252
5565
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -5254,15 +5567,15 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5254
5567
|
|
|
5255
5568
|
def __init__(
|
|
5256
5569
|
self,
|
|
5257
|
-
|
|
5570
|
+
l: __dataclass__init__fields__1__annotation,
|
|
5258
5571
|
*,
|
|
5259
5572
|
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
5260
|
-
|
|
5573
|
+
style: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
5261
5574
|
) -> __dataclass__None:
|
|
5262
5575
|
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
5263
5576
|
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
5264
|
-
__dataclass__object_setattr(self, '
|
|
5265
|
-
__dataclass__object_setattr(self, '
|
|
5577
|
+
__dataclass__object_setattr(self, 'l', l)
|
|
5578
|
+
__dataclass__object_setattr(self, 'style', style)
|
|
5266
5579
|
|
|
5267
5580
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
5268
5581
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -5272,10 +5585,8 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5272
5585
|
@__dataclass___recursive_repr()
|
|
5273
5586
|
def __repr__(self):
|
|
5274
5587
|
parts = []
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
parts.append(f"s={self.s!r}")
|
|
5278
|
-
parts.append(f"lang={self.lang!r}")
|
|
5588
|
+
parts.append(f"l={self.l!r}")
|
|
5589
|
+
parts.append(f"style={self.style!r}")
|
|
5279
5590
|
return (
|
|
5280
5591
|
f"{self.__class__.__qualname__}("
|
|
5281
5592
|
f"{', '.join(parts)}"
|
|
@@ -5292,35 +5603,36 @@ def _process_dataclass__9193db962fdc440396655ef40965237c763fe790():
|
|
|
5292
5603
|
|
|
5293
5604
|
@_register(
|
|
5294
5605
|
plan_repr=(
|
|
5295
|
-
"Plans(tup=(CopyPlan(fields=('_metadata',)), EqPlan(fields=('_metadata',)), FrozenPlan(fields=('
|
|
5296
|
-
"
|
|
5297
|
-
"(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=
|
|
5298
|
-
"fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.
|
|
5299
|
-
"
|
|
5300
|
-
"
|
|
5301
|
-
"
|
|
5302
|
-
"
|
|
5606
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'v')), EqPlan(fields=('_metadata', 'v')), FrozenPlan(fields=('_metada"
|
|
5607
|
+
"ta', 'v'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 'v'), cache=False), "
|
|
5608
|
+
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=O"
|
|
5609
|
+
"pRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
5610
|
+
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='v', ann"
|
|
5611
|
+
"otation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False,"
|
|
5612
|
+
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=("
|
|
5613
|
+
"'v',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
5614
|
+
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='v', kw_only=False, fn=None),), id=False, terse=False, default_fn"
|
|
5615
|
+
"=None)))"
|
|
5303
5616
|
),
|
|
5304
|
-
plan_repr_sha1='
|
|
5617
|
+
plan_repr_sha1='90ff130b5cc55aa45421dac2fda5e67df528bc46',
|
|
5305
5618
|
op_ref_idents=(
|
|
5306
5619
|
'__dataclass__init__fields__0__annotation',
|
|
5307
5620
|
'__dataclass__init__fields__0__coerce',
|
|
5308
5621
|
'__dataclass__init__fields__0__default',
|
|
5309
|
-
'
|
|
5622
|
+
'__dataclass__init__fields__1__annotation',
|
|
5310
5623
|
),
|
|
5311
5624
|
cls_names=(
|
|
5312
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
5313
|
-
('ommlds.minichain.backends.impls.mistral', 'StandardContent'),
|
|
5625
|
+
('ommlds.minichain.backends.impls.mistral', 'JsonContent'),
|
|
5314
5626
|
),
|
|
5315
5627
|
)
|
|
5316
|
-
def
|
|
5628
|
+
def _process_dataclass__90ff130b5cc55aa45421dac2fda5e67df528bc46():
|
|
5317
5629
|
def _process_dataclass(
|
|
5318
5630
|
*,
|
|
5319
5631
|
__dataclass__cls,
|
|
5320
5632
|
__dataclass__init__fields__0__annotation,
|
|
5321
5633
|
__dataclass__init__fields__0__coerce,
|
|
5322
5634
|
__dataclass__init__fields__0__default,
|
|
5323
|
-
|
|
5635
|
+
__dataclass__init__fields__1__annotation,
|
|
5324
5636
|
__dataclass__FieldFnValidationError, # noqa
|
|
5325
5637
|
__dataclass__FieldTypeValidationError, # noqa
|
|
5326
5638
|
__dataclass__FnValidationError, # noqa
|
|
@@ -5340,6 +5652,7 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5340
5652
|
raise TypeError(self)
|
|
5341
5653
|
return __dataclass__cls( # noqa
|
|
5342
5654
|
_metadata=self._metadata,
|
|
5655
|
+
v=self.v,
|
|
5343
5656
|
)
|
|
5344
5657
|
|
|
5345
5658
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -5353,7 +5666,8 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5353
5666
|
if self.__class__ is not other.__class__:
|
|
5354
5667
|
return NotImplemented
|
|
5355
5668
|
return (
|
|
5356
|
-
self._metadata == other._metadata
|
|
5669
|
+
self._metadata == other._metadata and
|
|
5670
|
+
self.v == other.v
|
|
5357
5671
|
)
|
|
5358
5672
|
|
|
5359
5673
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -5363,6 +5677,7 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5363
5677
|
|
|
5364
5678
|
__dataclass___setattr_frozen_fields = {
|
|
5365
5679
|
'_metadata',
|
|
5680
|
+
'v',
|
|
5366
5681
|
}
|
|
5367
5682
|
|
|
5368
5683
|
def __setattr__(self, name, value):
|
|
@@ -5380,6 +5695,7 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5380
5695
|
|
|
5381
5696
|
__dataclass___delattr_frozen_fields = {
|
|
5382
5697
|
'_metadata',
|
|
5698
|
+
'v',
|
|
5383
5699
|
}
|
|
5384
5700
|
|
|
5385
5701
|
def __delattr__(self, name):
|
|
@@ -5398,6 +5714,7 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5398
5714
|
def __hash__(self):
|
|
5399
5715
|
return hash((
|
|
5400
5716
|
self._metadata,
|
|
5717
|
+
self.v,
|
|
5401
5718
|
))
|
|
5402
5719
|
|
|
5403
5720
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -5405,11 +5722,13 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5405
5722
|
|
|
5406
5723
|
def __init__(
|
|
5407
5724
|
self,
|
|
5725
|
+
v: __dataclass__init__fields__1__annotation,
|
|
5408
5726
|
*,
|
|
5409
5727
|
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
5410
5728
|
) -> __dataclass__None:
|
|
5411
5729
|
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
5412
5730
|
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
5731
|
+
__dataclass__object_setattr(self, 'v', v)
|
|
5413
5732
|
|
|
5414
5733
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
5415
5734
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -5419,8 +5738,7 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5419
5738
|
@__dataclass___recursive_repr()
|
|
5420
5739
|
def __repr__(self):
|
|
5421
5740
|
parts = []
|
|
5422
|
-
|
|
5423
|
-
parts.append(f"_metadata={s}")
|
|
5741
|
+
parts.append(f"v={self.v!r}")
|
|
5424
5742
|
return (
|
|
5425
5743
|
f"{self.__class__.__qualname__}("
|
|
5426
5744
|
f"{', '.join(parts)}"
|
|
@@ -5437,32 +5755,43 @@ def _process_dataclass__bcf6088fdeff32c671aa2e5e0810822079fcba71():
|
|
|
5437
5755
|
|
|
5438
5756
|
@_register(
|
|
5439
5757
|
plan_repr=(
|
|
5440
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
5441
|
-
"'
|
|
5442
|
-
"InitPlan(fields=(InitPlan.Field(name='
|
|
5443
|
-
"
|
|
5444
|
-
"
|
|
5445
|
-
"
|
|
5446
|
-
"
|
|
5447
|
-
"
|
|
5448
|
-
"
|
|
5449
|
-
")))"
|
|
5758
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'url', 'title')), EqPlan(fields=('_metadata', 'url', 'title')), Froze"
|
|
5759
|
+
"nPlan(fields=('_metadata', 'url', 'title'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=("
|
|
5760
|
+
"'_metadata', 'url', 'title'), cache=False), InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef"
|
|
5761
|
+
"(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=Tru"
|
|
5762
|
+
"e, override=False, field_type=FieldType.INSTANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, ch"
|
|
5763
|
+
"eck_type=None), InitPlan.Field(name='url', annotation=OpRef(name='init.fields.1.annotation'), default=None, de"
|
|
5764
|
+
"fault_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, chec"
|
|
5765
|
+
"k_type=None), InitPlan.Field(name='title', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(na"
|
|
5766
|
+
"me='init.fields.2.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, c"
|
|
5767
|
+
"oerce=None, validate=None, check_type=None)), self_param='self', std_params=('url', 'title'), kw_only_params=("
|
|
5768
|
+
"'_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields"
|
|
5769
|
+
"=(ReprPlan.Field(name='url', kw_only=False, fn=None), ReprPlan.Field(name='title', kw_only=False, fn=None)), i"
|
|
5770
|
+
"d=False, terse=False, default_fn=None)))"
|
|
5450
5771
|
),
|
|
5451
|
-
plan_repr_sha1='
|
|
5772
|
+
plan_repr_sha1='dd73f8dc509bd85224b58b6ca188966c37d6566c',
|
|
5452
5773
|
op_ref_idents=(
|
|
5453
5774
|
'__dataclass__init__fields__0__annotation',
|
|
5775
|
+
'__dataclass__init__fields__0__coerce',
|
|
5776
|
+
'__dataclass__init__fields__0__default',
|
|
5454
5777
|
'__dataclass__init__fields__1__annotation',
|
|
5778
|
+
'__dataclass__init__fields__2__annotation',
|
|
5779
|
+
'__dataclass__init__fields__2__default',
|
|
5455
5780
|
),
|
|
5456
5781
|
cls_names=(
|
|
5457
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
5782
|
+
('ommlds.minichain.backends.impls.mistral', 'LinkContent'),
|
|
5458
5783
|
),
|
|
5459
5784
|
)
|
|
5460
|
-
def
|
|
5785
|
+
def _process_dataclass__dd73f8dc509bd85224b58b6ca188966c37d6566c():
|
|
5461
5786
|
def _process_dataclass(
|
|
5462
5787
|
*,
|
|
5463
5788
|
__dataclass__cls,
|
|
5464
5789
|
__dataclass__init__fields__0__annotation,
|
|
5790
|
+
__dataclass__init__fields__0__coerce,
|
|
5791
|
+
__dataclass__init__fields__0__default,
|
|
5465
5792
|
__dataclass__init__fields__1__annotation,
|
|
5793
|
+
__dataclass__init__fields__2__annotation,
|
|
5794
|
+
__dataclass__init__fields__2__default,
|
|
5466
5795
|
__dataclass__FieldFnValidationError, # noqa
|
|
5467
5796
|
__dataclass__FieldTypeValidationError, # noqa
|
|
5468
5797
|
__dataclass__FnValidationError, # noqa
|
|
@@ -5481,8 +5810,9 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5481
5810
|
if self.__class__ is not __dataclass__cls:
|
|
5482
5811
|
raise TypeError(self)
|
|
5483
5812
|
return __dataclass__cls( # noqa
|
|
5484
|
-
|
|
5485
|
-
|
|
5813
|
+
_metadata=self._metadata,
|
|
5814
|
+
url=self.url,
|
|
5815
|
+
title=self.title,
|
|
5486
5816
|
)
|
|
5487
5817
|
|
|
5488
5818
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -5496,8 +5826,9 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5496
5826
|
if self.__class__ is not other.__class__:
|
|
5497
5827
|
return NotImplemented
|
|
5498
5828
|
return (
|
|
5499
|
-
self.
|
|
5500
|
-
self.
|
|
5829
|
+
self._metadata == other._metadata and
|
|
5830
|
+
self.url == other.url and
|
|
5831
|
+
self.title == other.title
|
|
5501
5832
|
)
|
|
5502
5833
|
|
|
5503
5834
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -5506,8 +5837,9 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5506
5837
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
5507
5838
|
|
|
5508
5839
|
__dataclass___setattr_frozen_fields = {
|
|
5509
|
-
'
|
|
5510
|
-
'
|
|
5840
|
+
'_metadata',
|
|
5841
|
+
'url',
|
|
5842
|
+
'title',
|
|
5511
5843
|
}
|
|
5512
5844
|
|
|
5513
5845
|
def __setattr__(self, name, value):
|
|
@@ -5524,8 +5856,9 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5524
5856
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
5525
5857
|
|
|
5526
5858
|
__dataclass___delattr_frozen_fields = {
|
|
5527
|
-
'
|
|
5528
|
-
'
|
|
5859
|
+
'_metadata',
|
|
5860
|
+
'url',
|
|
5861
|
+
'title',
|
|
5529
5862
|
}
|
|
5530
5863
|
|
|
5531
5864
|
def __delattr__(self, name):
|
|
@@ -5543,8 +5876,9 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5543
5876
|
|
|
5544
5877
|
def __hash__(self):
|
|
5545
5878
|
return hash((
|
|
5546
|
-
self.
|
|
5547
|
-
self.
|
|
5879
|
+
self._metadata,
|
|
5880
|
+
self.url,
|
|
5881
|
+
self.title,
|
|
5548
5882
|
))
|
|
5549
5883
|
|
|
5550
5884
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -5552,11 +5886,15 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5552
5886
|
|
|
5553
5887
|
def __init__(
|
|
5554
5888
|
self,
|
|
5555
|
-
|
|
5556
|
-
|
|
5889
|
+
url: __dataclass__init__fields__1__annotation,
|
|
5890
|
+
title: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
5891
|
+
*,
|
|
5892
|
+
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
5557
5893
|
) -> __dataclass__None:
|
|
5558
|
-
|
|
5559
|
-
__dataclass__object_setattr(self, '
|
|
5894
|
+
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
5895
|
+
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
5896
|
+
__dataclass__object_setattr(self, 'url', url)
|
|
5897
|
+
__dataclass__object_setattr(self, 'title', title)
|
|
5560
5898
|
|
|
5561
5899
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
5562
5900
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -5566,8 +5904,8 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5566
5904
|
@__dataclass___recursive_repr()
|
|
5567
5905
|
def __repr__(self):
|
|
5568
5906
|
parts = []
|
|
5569
|
-
parts.append(f"{self.
|
|
5570
|
-
parts.append(f"{self.
|
|
5907
|
+
parts.append(f"url={self.url!r}")
|
|
5908
|
+
parts.append(f"title={self.title!r}")
|
|
5571
5909
|
return (
|
|
5572
5910
|
f"{self.__class__.__qualname__}("
|
|
5573
5911
|
f"{', '.join(parts)}"
|
|
@@ -5584,38 +5922,31 @@ def _process_dataclass__922e75739507bda9dce73a0d3dc05534b1cc9ae5():
|
|
|
5584
5922
|
|
|
5585
5923
|
@_register(
|
|
5586
5924
|
plan_repr=(
|
|
5587
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
5588
|
-
"
|
|
5589
|
-
"
|
|
5590
|
-
"
|
|
5591
|
-
"
|
|
5592
|
-
"
|
|
5593
|
-
"
|
|
5594
|
-
"
|
|
5595
|
-
"
|
|
5596
|
-
"lan.Field(name='i', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
5925
|
+
"Plans(tup=(CopyPlan(fields=('key', 'value')), EqPlan(fields=('key', 'value')), FrozenPlan(fields=('key', 'valu"
|
|
5926
|
+
"e'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('key', 'value'), cache=False), InitPlan"
|
|
5927
|
+
"(fields=(InitPlan.Field(name='key', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_f"
|
|
5928
|
+
"actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
|
|
5929
|
+
"None), InitPlan.Field(name='value', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_f"
|
|
5930
|
+
"actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
|
|
5931
|
+
"None)), self_param='self', std_params=('key', 'value'), kw_only_params=(), frozen=True, slots=False, post_init"
|
|
5932
|
+
"_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='key', kw_only=False, fn=Non"
|
|
5933
|
+
"e), ReprPlan.Field(name='value', kw_only=False, fn=None)), id=False, terse=True, default_fn=None)))"
|
|
5597
5934
|
),
|
|
5598
|
-
plan_repr_sha1='
|
|
5935
|
+
plan_repr_sha1='2ded8afb50edd07329da6b7055981919a83dec56',
|
|
5599
5936
|
op_ref_idents=(
|
|
5600
5937
|
'__dataclass__init__fields__0__annotation',
|
|
5601
|
-
'__dataclass__init__fields__0__coerce',
|
|
5602
|
-
'__dataclass__init__fields__0__default',
|
|
5603
5938
|
'__dataclass__init__fields__1__annotation',
|
|
5604
|
-
'__dataclass__repr__fns__0__fn',
|
|
5605
5939
|
),
|
|
5606
5940
|
cls_names=(
|
|
5607
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
5941
|
+
('ommlds.minichain.backends.impls.mistral', 'MappingToolDtype'),
|
|
5608
5942
|
),
|
|
5609
5943
|
)
|
|
5610
|
-
def
|
|
5944
|
+
def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
5611
5945
|
def _process_dataclass(
|
|
5612
5946
|
*,
|
|
5613
5947
|
__dataclass__cls,
|
|
5614
5948
|
__dataclass__init__fields__0__annotation,
|
|
5615
|
-
__dataclass__init__fields__0__coerce,
|
|
5616
|
-
__dataclass__init__fields__0__default,
|
|
5617
5949
|
__dataclass__init__fields__1__annotation,
|
|
5618
|
-
__dataclass__repr__fns__0__fn,
|
|
5619
5950
|
__dataclass__FieldFnValidationError, # noqa
|
|
5620
5951
|
__dataclass__FieldTypeValidationError, # noqa
|
|
5621
5952
|
__dataclass__FnValidationError, # noqa
|
|
@@ -5634,8 +5965,8 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5634
5965
|
if self.__class__ is not __dataclass__cls:
|
|
5635
5966
|
raise TypeError(self)
|
|
5636
5967
|
return __dataclass__cls( # noqa
|
|
5637
|
-
|
|
5638
|
-
|
|
5968
|
+
key=self.key,
|
|
5969
|
+
value=self.value,
|
|
5639
5970
|
)
|
|
5640
5971
|
|
|
5641
5972
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -5649,8 +5980,8 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5649
5980
|
if self.__class__ is not other.__class__:
|
|
5650
5981
|
return NotImplemented
|
|
5651
5982
|
return (
|
|
5652
|
-
self.
|
|
5653
|
-
self.
|
|
5983
|
+
self.key == other.key and
|
|
5984
|
+
self.value == other.value
|
|
5654
5985
|
)
|
|
5655
5986
|
|
|
5656
5987
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -5659,8 +5990,8 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5659
5990
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
5660
5991
|
|
|
5661
5992
|
__dataclass___setattr_frozen_fields = {
|
|
5662
|
-
'
|
|
5663
|
-
'
|
|
5993
|
+
'key',
|
|
5994
|
+
'value',
|
|
5664
5995
|
}
|
|
5665
5996
|
|
|
5666
5997
|
def __setattr__(self, name, value):
|
|
@@ -5677,8 +6008,8 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5677
6008
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
5678
6009
|
|
|
5679
6010
|
__dataclass___delattr_frozen_fields = {
|
|
5680
|
-
'
|
|
5681
|
-
'
|
|
6011
|
+
'key',
|
|
6012
|
+
'value',
|
|
5682
6013
|
}
|
|
5683
6014
|
|
|
5684
6015
|
def __delattr__(self, name):
|
|
@@ -5696,8 +6027,8 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5696
6027
|
|
|
5697
6028
|
def __hash__(self):
|
|
5698
6029
|
return hash((
|
|
5699
|
-
self.
|
|
5700
|
-
self.
|
|
6030
|
+
self.key,
|
|
6031
|
+
self.value,
|
|
5701
6032
|
))
|
|
5702
6033
|
|
|
5703
6034
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -5705,13 +6036,11 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5705
6036
|
|
|
5706
6037
|
def __init__(
|
|
5707
6038
|
self,
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
6039
|
+
key: __dataclass__init__fields__0__annotation,
|
|
6040
|
+
value: __dataclass__init__fields__1__annotation,
|
|
5711
6041
|
) -> __dataclass__None:
|
|
5712
|
-
|
|
5713
|
-
__dataclass__object_setattr(self, '
|
|
5714
|
-
__dataclass__object_setattr(self, 'i', i)
|
|
6042
|
+
__dataclass__object_setattr(self, 'key', key)
|
|
6043
|
+
__dataclass__object_setattr(self, 'value', value)
|
|
5715
6044
|
|
|
5716
6045
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
5717
6046
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -5721,9 +6050,8 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5721
6050
|
@__dataclass___recursive_repr()
|
|
5722
6051
|
def __repr__(self):
|
|
5723
6052
|
parts = []
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
parts.append(f"i={self.i!r}")
|
|
6053
|
+
parts.append(f"{self.key!r}")
|
|
6054
|
+
parts.append(f"{self.value!r}")
|
|
5727
6055
|
return (
|
|
5728
6056
|
f"{self.__class__.__qualname__}("
|
|
5729
6057
|
f"{', '.join(parts)}"
|
|
@@ -5740,30 +6068,29 @@ def _process_dataclass__9e4a59d711dc872608ff0daa695c75db9383f39a():
|
|
|
5740
6068
|
|
|
5741
6069
|
@_register(
|
|
5742
6070
|
plan_repr=(
|
|
5743
|
-
"Plans(tup=(CopyPlan(fields=('_metadata', '
|
|
5744
|
-
"
|
|
5745
|
-
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'),
|
|
5746
|
-
"
|
|
5747
|
-
"
|
|
5748
|
-
"
|
|
5749
|
-
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self',
|
|
5750
|
-
"'
|
|
5751
|
-
"
|
|
5752
|
-
"
|
|
6071
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'ns')), EqPlan(fields=('_metadata', 'ns')), FrozenPlan(fields=('_meta"
|
|
6072
|
+
"data', 'ns'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 'ns'), cache=Fals"
|
|
6073
|
+
"e), InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), defau"
|
|
6074
|
+
"lt=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType."
|
|
6075
|
+
"INSTANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='ns'"
|
|
6076
|
+
", annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=F"
|
|
6077
|
+
"alse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_par"
|
|
6078
|
+
"ams=('ns',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), vali"
|
|
6079
|
+
"date_fns=()), ReprPlan(fields=(ReprPlan.Field(name='ns', kw_only=False, fn=None),), id=False, terse=False, def"
|
|
6080
|
+
"ault_fn=None)))"
|
|
5753
6081
|
),
|
|
5754
|
-
plan_repr_sha1='
|
|
6082
|
+
plan_repr_sha1='362e74460eb8dcd41c81a6fd7a74399eff62060c',
|
|
5755
6083
|
op_ref_idents=(
|
|
5756
6084
|
'__dataclass__init__fields__0__annotation',
|
|
5757
6085
|
'__dataclass__init__fields__0__coerce',
|
|
5758
6086
|
'__dataclass__init__fields__0__default',
|
|
5759
6087
|
'__dataclass__init__fields__1__annotation',
|
|
5760
|
-
'__dataclass__repr__fns__0__fn',
|
|
5761
6088
|
),
|
|
5762
6089
|
cls_names=(
|
|
5763
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
6090
|
+
('ommlds.minichain.backends.impls.mistral', 'NamespaceContent'),
|
|
5764
6091
|
),
|
|
5765
6092
|
)
|
|
5766
|
-
def
|
|
6093
|
+
def _process_dataclass__362e74460eb8dcd41c81a6fd7a74399eff62060c():
|
|
5767
6094
|
def _process_dataclass(
|
|
5768
6095
|
*,
|
|
5769
6096
|
__dataclass__cls,
|
|
@@ -5771,7 +6098,6 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5771
6098
|
__dataclass__init__fields__0__coerce,
|
|
5772
6099
|
__dataclass__init__fields__0__default,
|
|
5773
6100
|
__dataclass__init__fields__1__annotation,
|
|
5774
|
-
__dataclass__repr__fns__0__fn,
|
|
5775
6101
|
__dataclass__FieldFnValidationError, # noqa
|
|
5776
6102
|
__dataclass__FieldTypeValidationError, # noqa
|
|
5777
6103
|
__dataclass__FnValidationError, # noqa
|
|
@@ -5791,7 +6117,7 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5791
6117
|
raise TypeError(self)
|
|
5792
6118
|
return __dataclass__cls( # noqa
|
|
5793
6119
|
_metadata=self._metadata,
|
|
5794
|
-
|
|
6120
|
+
ns=self.ns,
|
|
5795
6121
|
)
|
|
5796
6122
|
|
|
5797
6123
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -5806,7 +6132,7 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5806
6132
|
return NotImplemented
|
|
5807
6133
|
return (
|
|
5808
6134
|
self._metadata == other._metadata and
|
|
5809
|
-
self.
|
|
6135
|
+
self.ns == other.ns
|
|
5810
6136
|
)
|
|
5811
6137
|
|
|
5812
6138
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -5816,7 +6142,7 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5816
6142
|
|
|
5817
6143
|
__dataclass___setattr_frozen_fields = {
|
|
5818
6144
|
'_metadata',
|
|
5819
|
-
'
|
|
6145
|
+
'ns',
|
|
5820
6146
|
}
|
|
5821
6147
|
|
|
5822
6148
|
def __setattr__(self, name, value):
|
|
@@ -5834,7 +6160,7 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5834
6160
|
|
|
5835
6161
|
__dataclass___delattr_frozen_fields = {
|
|
5836
6162
|
'_metadata',
|
|
5837
|
-
'
|
|
6163
|
+
'ns',
|
|
5838
6164
|
}
|
|
5839
6165
|
|
|
5840
6166
|
def __delattr__(self, name):
|
|
@@ -5853,7 +6179,7 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5853
6179
|
def __hash__(self):
|
|
5854
6180
|
return hash((
|
|
5855
6181
|
self._metadata,
|
|
5856
|
-
self.
|
|
6182
|
+
self.ns,
|
|
5857
6183
|
))
|
|
5858
6184
|
|
|
5859
6185
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -5861,13 +6187,13 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5861
6187
|
|
|
5862
6188
|
def __init__(
|
|
5863
6189
|
self,
|
|
5864
|
-
|
|
6190
|
+
ns: __dataclass__init__fields__1__annotation,
|
|
5865
6191
|
*,
|
|
5866
6192
|
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
5867
6193
|
) -> __dataclass__None:
|
|
5868
6194
|
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
5869
6195
|
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
5870
|
-
__dataclass__object_setattr(self, '
|
|
6196
|
+
__dataclass__object_setattr(self, 'ns', ns)
|
|
5871
6197
|
|
|
5872
6198
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
5873
6199
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -5877,9 +6203,7 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5877
6203
|
@__dataclass___recursive_repr()
|
|
5878
6204
|
def __repr__(self):
|
|
5879
6205
|
parts = []
|
|
5880
|
-
|
|
5881
|
-
parts.append(f"_metadata={s}")
|
|
5882
|
-
parts.append(f"v={self.v!r}")
|
|
6206
|
+
parts.append(f"ns={self.ns!r}")
|
|
5883
6207
|
return (
|
|
5884
6208
|
f"{self.__class__.__qualname__}("
|
|
5885
6209
|
f"{', '.join(parts)}"
|
|
@@ -5896,31 +6220,27 @@ def _process_dataclass__296d7a1dff0c5084e83cbfd2ddd0e7460f1ea2c0():
|
|
|
5896
6220
|
|
|
5897
6221
|
@_register(
|
|
5898
6222
|
plan_repr=(
|
|
5899
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
5900
|
-
"
|
|
5901
|
-
"
|
|
5902
|
-
"
|
|
5903
|
-
"
|
|
5904
|
-
"
|
|
5905
|
-
"None))
|
|
5906
|
-
"_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='key', kw_only=False, fn=Non"
|
|
5907
|
-
"e), ReprPlan.Field(name='value', kw_only=False, fn=None)), id=False, terse=True, default_fn=None)))"
|
|
6223
|
+
"Plans(tup=(CopyPlan(fields=('type',)), EqPlan(fields=('type',)), FrozenPlan(fields=('type',), allow_dynamic_du"
|
|
6224
|
+
"nder_attrs=False), HashPlan(action='add', fields=('type',), cache=False), InitPlan(fields=(InitPlan.Field(name"
|
|
6225
|
+
"='type', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
|
|
6226
|
+
"rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self',"
|
|
6227
|
+
" std_params=('type',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), valida"
|
|
6228
|
+
"te_fns=()), ReprPlan(fields=(ReprPlan.Field(name='type', kw_only=False, fn=None),), id=False, terse=True, defa"
|
|
6229
|
+
"ult_fn=None)))"
|
|
5908
6230
|
),
|
|
5909
|
-
plan_repr_sha1='
|
|
6231
|
+
plan_repr_sha1='1d0b04d8ebb0bdb077bc9721fb19aafcadf99422',
|
|
5910
6232
|
op_ref_idents=(
|
|
5911
6233
|
'__dataclass__init__fields__0__annotation',
|
|
5912
|
-
'__dataclass__init__fields__1__annotation',
|
|
5913
6234
|
),
|
|
5914
6235
|
cls_names=(
|
|
5915
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
6236
|
+
('ommlds.minichain.backends.impls.mistral', 'NullableToolDtype'),
|
|
5916
6237
|
),
|
|
5917
6238
|
)
|
|
5918
|
-
def
|
|
6239
|
+
def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
5919
6240
|
def _process_dataclass(
|
|
5920
6241
|
*,
|
|
5921
6242
|
__dataclass__cls,
|
|
5922
6243
|
__dataclass__init__fields__0__annotation,
|
|
5923
|
-
__dataclass__init__fields__1__annotation,
|
|
5924
6244
|
__dataclass__FieldFnValidationError, # noqa
|
|
5925
6245
|
__dataclass__FieldTypeValidationError, # noqa
|
|
5926
6246
|
__dataclass__FnValidationError, # noqa
|
|
@@ -5939,8 +6259,7 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
5939
6259
|
if self.__class__ is not __dataclass__cls:
|
|
5940
6260
|
raise TypeError(self)
|
|
5941
6261
|
return __dataclass__cls( # noqa
|
|
5942
|
-
|
|
5943
|
-
value=self.value,
|
|
6262
|
+
type=self.type,
|
|
5944
6263
|
)
|
|
5945
6264
|
|
|
5946
6265
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -5954,8 +6273,7 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
5954
6273
|
if self.__class__ is not other.__class__:
|
|
5955
6274
|
return NotImplemented
|
|
5956
6275
|
return (
|
|
5957
|
-
self.
|
|
5958
|
-
self.value == other.value
|
|
6276
|
+
self.type == other.type
|
|
5959
6277
|
)
|
|
5960
6278
|
|
|
5961
6279
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -5964,8 +6282,7 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
5964
6282
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
5965
6283
|
|
|
5966
6284
|
__dataclass___setattr_frozen_fields = {
|
|
5967
|
-
'
|
|
5968
|
-
'value',
|
|
6285
|
+
'type',
|
|
5969
6286
|
}
|
|
5970
6287
|
|
|
5971
6288
|
def __setattr__(self, name, value):
|
|
@@ -5982,8 +6299,7 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
5982
6299
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
5983
6300
|
|
|
5984
6301
|
__dataclass___delattr_frozen_fields = {
|
|
5985
|
-
'
|
|
5986
|
-
'value',
|
|
6302
|
+
'type',
|
|
5987
6303
|
}
|
|
5988
6304
|
|
|
5989
6305
|
def __delattr__(self, name):
|
|
@@ -6001,8 +6317,7 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
6001
6317
|
|
|
6002
6318
|
def __hash__(self):
|
|
6003
6319
|
return hash((
|
|
6004
|
-
self.
|
|
6005
|
-
self.value,
|
|
6320
|
+
self.type,
|
|
6006
6321
|
))
|
|
6007
6322
|
|
|
6008
6323
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -6010,11 +6325,9 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
6010
6325
|
|
|
6011
6326
|
def __init__(
|
|
6012
6327
|
self,
|
|
6013
|
-
|
|
6014
|
-
value: __dataclass__init__fields__1__annotation,
|
|
6328
|
+
type: __dataclass__init__fields__0__annotation,
|
|
6015
6329
|
) -> __dataclass__None:
|
|
6016
|
-
__dataclass__object_setattr(self, '
|
|
6017
|
-
__dataclass__object_setattr(self, 'value', value)
|
|
6330
|
+
__dataclass__object_setattr(self, 'type', type)
|
|
6018
6331
|
|
|
6019
6332
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
6020
6333
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -6024,8 +6337,7 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
6024
6337
|
@__dataclass___recursive_repr()
|
|
6025
6338
|
def __repr__(self):
|
|
6026
6339
|
parts = []
|
|
6027
|
-
parts.append(f"{self.
|
|
6028
|
-
parts.append(f"{self.value!r}")
|
|
6340
|
+
parts.append(f"{self.type!r}")
|
|
6029
6341
|
return (
|
|
6030
6342
|
f"{self.__class__.__qualname__}("
|
|
6031
6343
|
f"{', '.join(parts)}"
|
|
@@ -6042,23 +6354,23 @@ def _process_dataclass__2ded8afb50edd07329da6b7055981919a83dec56():
|
|
|
6042
6354
|
|
|
6043
6355
|
@_register(
|
|
6044
6356
|
plan_repr=(
|
|
6045
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
6046
|
-
"
|
|
6047
|
-
"='
|
|
6048
|
-
"
|
|
6049
|
-
" std_params=('
|
|
6050
|
-
"
|
|
6051
|
-
"
|
|
6357
|
+
"Plans(tup=(CopyPlan(fields=('fields',)), EqPlan(fields=('fields',)), FrozenPlan(fields=('fields',), allow_dyna"
|
|
6358
|
+
"mic_dunder_attrs=False), HashPlan(action='add', fields=('fields',), cache=False), InitPlan(fields=(InitPlan.Fi"
|
|
6359
|
+
"eld(name='fields', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init"
|
|
6360
|
+
"=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_par"
|
|
6361
|
+
"am='self', std_params=('fields',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fn"
|
|
6362
|
+
"s=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='fields', kw_only=False, fn=None),), id=False, te"
|
|
6363
|
+
"rse=True, default_fn=None)))"
|
|
6052
6364
|
),
|
|
6053
|
-
plan_repr_sha1='
|
|
6365
|
+
plan_repr_sha1='178374af8c25e44a33c44ece98db0c96fe041247',
|
|
6054
6366
|
op_ref_idents=(
|
|
6055
6367
|
'__dataclass__init__fields__0__annotation',
|
|
6056
6368
|
),
|
|
6057
6369
|
cls_names=(
|
|
6058
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
6370
|
+
('ommlds.minichain.backends.impls.mistral', 'ObjectToolDtype'),
|
|
6059
6371
|
),
|
|
6060
6372
|
)
|
|
6061
|
-
def
|
|
6373
|
+
def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
6062
6374
|
def _process_dataclass(
|
|
6063
6375
|
*,
|
|
6064
6376
|
__dataclass__cls,
|
|
@@ -6081,7 +6393,7 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6081
6393
|
if self.__class__ is not __dataclass__cls:
|
|
6082
6394
|
raise TypeError(self)
|
|
6083
6395
|
return __dataclass__cls( # noqa
|
|
6084
|
-
|
|
6396
|
+
fields=self.fields,
|
|
6085
6397
|
)
|
|
6086
6398
|
|
|
6087
6399
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -6095,7 +6407,7 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6095
6407
|
if self.__class__ is not other.__class__:
|
|
6096
6408
|
return NotImplemented
|
|
6097
6409
|
return (
|
|
6098
|
-
self.
|
|
6410
|
+
self.fields == other.fields
|
|
6099
6411
|
)
|
|
6100
6412
|
|
|
6101
6413
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -6104,7 +6416,7 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6104
6416
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
6105
6417
|
|
|
6106
6418
|
__dataclass___setattr_frozen_fields = {
|
|
6107
|
-
'
|
|
6419
|
+
'fields',
|
|
6108
6420
|
}
|
|
6109
6421
|
|
|
6110
6422
|
def __setattr__(self, name, value):
|
|
@@ -6121,7 +6433,7 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6121
6433
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
6122
6434
|
|
|
6123
6435
|
__dataclass___delattr_frozen_fields = {
|
|
6124
|
-
'
|
|
6436
|
+
'fields',
|
|
6125
6437
|
}
|
|
6126
6438
|
|
|
6127
6439
|
def __delattr__(self, name):
|
|
@@ -6139,7 +6451,7 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6139
6451
|
|
|
6140
6452
|
def __hash__(self):
|
|
6141
6453
|
return hash((
|
|
6142
|
-
self.
|
|
6454
|
+
self.fields,
|
|
6143
6455
|
))
|
|
6144
6456
|
|
|
6145
6457
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -6147,9 +6459,9 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6147
6459
|
|
|
6148
6460
|
def __init__(
|
|
6149
6461
|
self,
|
|
6150
|
-
|
|
6462
|
+
fields: __dataclass__init__fields__0__annotation,
|
|
6151
6463
|
) -> __dataclass__None:
|
|
6152
|
-
__dataclass__object_setattr(self, '
|
|
6464
|
+
__dataclass__object_setattr(self, 'fields', fields)
|
|
6153
6465
|
|
|
6154
6466
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
6155
6467
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -6159,7 +6471,7 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6159
6471
|
@__dataclass___recursive_repr()
|
|
6160
6472
|
def __repr__(self):
|
|
6161
6473
|
parts = []
|
|
6162
|
-
parts.append(f"{self.
|
|
6474
|
+
parts.append(f"{self.fields!r}")
|
|
6163
6475
|
return (
|
|
6164
6476
|
f"{self.__class__.__qualname__}("
|
|
6165
6477
|
f"{', '.join(parts)}"
|
|
@@ -6176,27 +6488,36 @@ def _process_dataclass__1d0b04d8ebb0bdb077bc9721fb19aafcadf99422():
|
|
|
6176
6488
|
|
|
6177
6489
|
@_register(
|
|
6178
6490
|
plan_repr=(
|
|
6179
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
6180
|
-
"
|
|
6181
|
-
"
|
|
6182
|
-
"=
|
|
6183
|
-
"
|
|
6184
|
-
"
|
|
6185
|
-
"
|
|
6491
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'k')), EqPlan(fields=('_metadata', 'k')), FrozenPlan(fields=('_metada"
|
|
6492
|
+
"ta', 'k'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 'k'), cache=False), "
|
|
6493
|
+
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=O"
|
|
6494
|
+
"pRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
6495
|
+
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='k', ann"
|
|
6496
|
+
"otation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False,"
|
|
6497
|
+
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=("
|
|
6498
|
+
"'k',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
6499
|
+
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='k', kw_only=False, fn=None),), id=False, terse=False, default_fn"
|
|
6500
|
+
"=None)))"
|
|
6186
6501
|
),
|
|
6187
|
-
plan_repr_sha1='
|
|
6502
|
+
plan_repr_sha1='e2f3beaac46614f603d669e9c497bb0979815a5c',
|
|
6188
6503
|
op_ref_idents=(
|
|
6189
6504
|
'__dataclass__init__fields__0__annotation',
|
|
6505
|
+
'__dataclass__init__fields__0__coerce',
|
|
6506
|
+
'__dataclass__init__fields__0__default',
|
|
6507
|
+
'__dataclass__init__fields__1__annotation',
|
|
6190
6508
|
),
|
|
6191
6509
|
cls_names=(
|
|
6192
|
-
('ommlds.minichain.backends.impls.mistral', '
|
|
6510
|
+
('ommlds.minichain.backends.impls.mistral', 'PlaceholderContent'),
|
|
6193
6511
|
),
|
|
6194
6512
|
)
|
|
6195
|
-
def
|
|
6513
|
+
def _process_dataclass__e2f3beaac46614f603d669e9c497bb0979815a5c():
|
|
6196
6514
|
def _process_dataclass(
|
|
6197
6515
|
*,
|
|
6198
6516
|
__dataclass__cls,
|
|
6199
6517
|
__dataclass__init__fields__0__annotation,
|
|
6518
|
+
__dataclass__init__fields__0__coerce,
|
|
6519
|
+
__dataclass__init__fields__0__default,
|
|
6520
|
+
__dataclass__init__fields__1__annotation,
|
|
6200
6521
|
__dataclass__FieldFnValidationError, # noqa
|
|
6201
6522
|
__dataclass__FieldTypeValidationError, # noqa
|
|
6202
6523
|
__dataclass__FnValidationError, # noqa
|
|
@@ -6215,7 +6536,8 @@ def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
|
6215
6536
|
if self.__class__ is not __dataclass__cls:
|
|
6216
6537
|
raise TypeError(self)
|
|
6217
6538
|
return __dataclass__cls( # noqa
|
|
6218
|
-
|
|
6539
|
+
_metadata=self._metadata,
|
|
6540
|
+
k=self.k,
|
|
6219
6541
|
)
|
|
6220
6542
|
|
|
6221
6543
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -6229,7 +6551,8 @@ def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
|
6229
6551
|
if self.__class__ is not other.__class__:
|
|
6230
6552
|
return NotImplemented
|
|
6231
6553
|
return (
|
|
6232
|
-
self.
|
|
6554
|
+
self._metadata == other._metadata and
|
|
6555
|
+
self.k == other.k
|
|
6233
6556
|
)
|
|
6234
6557
|
|
|
6235
6558
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -6238,7 +6561,8 @@ def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
|
6238
6561
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
6239
6562
|
|
|
6240
6563
|
__dataclass___setattr_frozen_fields = {
|
|
6241
|
-
'
|
|
6564
|
+
'_metadata',
|
|
6565
|
+
'k',
|
|
6242
6566
|
}
|
|
6243
6567
|
|
|
6244
6568
|
def __setattr__(self, name, value):
|
|
@@ -6255,7 +6579,8 @@ def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
|
6255
6579
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
6256
6580
|
|
|
6257
6581
|
__dataclass___delattr_frozen_fields = {
|
|
6258
|
-
'
|
|
6582
|
+
'_metadata',
|
|
6583
|
+
'k',
|
|
6259
6584
|
}
|
|
6260
6585
|
|
|
6261
6586
|
def __delattr__(self, name):
|
|
@@ -6273,7 +6598,8 @@ def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
|
6273
6598
|
|
|
6274
6599
|
def __hash__(self):
|
|
6275
6600
|
return hash((
|
|
6276
|
-
self.
|
|
6601
|
+
self._metadata,
|
|
6602
|
+
self.k,
|
|
6277
6603
|
))
|
|
6278
6604
|
|
|
6279
6605
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -6281,9 +6607,13 @@ def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
|
6281
6607
|
|
|
6282
6608
|
def __init__(
|
|
6283
6609
|
self,
|
|
6284
|
-
|
|
6610
|
+
k: __dataclass__init__fields__1__annotation,
|
|
6611
|
+
*,
|
|
6612
|
+
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
6285
6613
|
) -> __dataclass__None:
|
|
6286
|
-
|
|
6614
|
+
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
6615
|
+
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
6616
|
+
__dataclass__object_setattr(self, 'k', k)
|
|
6287
6617
|
|
|
6288
6618
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
6289
6619
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -6293,7 +6623,7 @@ def _process_dataclass__178374af8c25e44a33c44ece98db0c96fe041247():
|
|
|
6293
6623
|
@__dataclass___recursive_repr()
|
|
6294
6624
|
def __repr__(self):
|
|
6295
6625
|
parts = []
|
|
6296
|
-
parts.append(f"{self.
|
|
6626
|
+
parts.append(f"k={self.k!r}")
|
|
6297
6627
|
return (
|
|
6298
6628
|
f"{self.__class__.__qualname__}("
|
|
6299
6629
|
f"{', '.join(parts)}"
|
|
@@ -6453,22 +6783,21 @@ def _process_dataclass__b7657835eed1f3e17dbdae82eb197181dd5862db():
|
|
|
6453
6783
|
"ame='body', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, "
|
|
6454
6784
|
"override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self"
|
|
6455
6785
|
"', std_params=('body',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_"
|
|
6456
|
-
"fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='
|
|
6457
|
-
"
|
|
6786
|
+
"fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='body', kw_only=False, fn=None),), id=False, te"
|
|
6787
|
+
"rse=False, default_fn=None)))"
|
|
6458
6788
|
),
|
|
6459
|
-
plan_repr_sha1='
|
|
6789
|
+
plan_repr_sha1='ef0fad925bba9f189d06f3ca8625366af9abb8a5',
|
|
6460
6790
|
op_ref_idents=(
|
|
6461
6791
|
'__dataclass__init__fields__0__annotation',
|
|
6462
6792
|
'__dataclass__init__fields__0__coerce',
|
|
6463
6793
|
'__dataclass__init__fields__0__default',
|
|
6464
6794
|
'__dataclass__init__fields__1__annotation',
|
|
6465
|
-
'__dataclass__repr__fns__0__fn',
|
|
6466
6795
|
),
|
|
6467
6796
|
cls_names=(
|
|
6468
6797
|
('ommlds.minichain.backends.impls.mistral', 'QuoteContent'),
|
|
6469
6798
|
),
|
|
6470
6799
|
)
|
|
6471
|
-
def
|
|
6800
|
+
def _process_dataclass__ef0fad925bba9f189d06f3ca8625366af9abb8a5():
|
|
6472
6801
|
def _process_dataclass(
|
|
6473
6802
|
*,
|
|
6474
6803
|
__dataclass__cls,
|
|
@@ -6476,7 +6805,6 @@ def _process_dataclass__613cd3748f4063b004e2ac171fbf7e4248333e6b():
|
|
|
6476
6805
|
__dataclass__init__fields__0__coerce,
|
|
6477
6806
|
__dataclass__init__fields__0__default,
|
|
6478
6807
|
__dataclass__init__fields__1__annotation,
|
|
6479
|
-
__dataclass__repr__fns__0__fn,
|
|
6480
6808
|
__dataclass__FieldFnValidationError, # noqa
|
|
6481
6809
|
__dataclass__FieldTypeValidationError, # noqa
|
|
6482
6810
|
__dataclass__FnValidationError, # noqa
|
|
@@ -6582,8 +6910,6 @@ def _process_dataclass__613cd3748f4063b004e2ac171fbf7e4248333e6b():
|
|
|
6582
6910
|
@__dataclass___recursive_repr()
|
|
6583
6911
|
def __repr__(self):
|
|
6584
6912
|
parts = []
|
|
6585
|
-
if (s := __dataclass__repr__fns__0__fn(self._metadata)) is not None:
|
|
6586
|
-
parts.append(f"_metadata={s}")
|
|
6587
6913
|
parts.append(f"body={self.body!r}")
|
|
6588
6914
|
return (
|
|
6589
6915
|
f"{self.__class__.__qualname__}("
|
|
@@ -6601,34 +6927,33 @@ def _process_dataclass__613cd3748f4063b004e2ac171fbf7e4248333e6b():
|
|
|
6601
6927
|
|
|
6602
6928
|
@_register(
|
|
6603
6929
|
plan_repr=(
|
|
6604
|
-
"Plans(tup=(CopyPlan(fields=('_metadata', '
|
|
6605
|
-
"rozenPlan(fields=('_metadata', '
|
|
6606
|
-
"elds=('_metadata', '
|
|
6930
|
+
"Plans(tup=(CopyPlan(fields=('_metadata', 'body', 'header')), EqPlan(fields=('_metadata', 'body', 'header')), F"
|
|
6931
|
+
"rozenPlan(fields=('_metadata', 'body', 'header'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fi"
|
|
6932
|
+
"elds=('_metadata', 'body', 'header'), cache=False), InitPlan(fields=(InitPlan.Field(name='_metadata', annotati"
|
|
6607
6933
|
"on=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, "
|
|
6608
6934
|
"init=True, override=False, field_type=FieldType.INSTANCE, coerce=OpRef(name='init.fields.0.coerce'), validate="
|
|
6609
|
-
"None, check_type=None), InitPlan.Field(name='
|
|
6610
|
-
"
|
|
6611
|
-
"
|
|
6935
|
+
"None, check_type=None), InitPlan.Field(name='body', annotation=OpRef(name='init.fields.1.annotation'), default"
|
|
6936
|
+
"=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=N"
|
|
6937
|
+
"one, check_type=None), InitPlan.Field(name='header', annotation=OpRef(name='init.fields.2.annotation'), defaul"
|
|
6612
6938
|
"t=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate="
|
|
6613
|
-
"None, check_type=None)), self_param='self', std_params=('
|
|
6939
|
+
"None, check_type=None)), self_param='self', std_params=('body',), kw_only_params=('_metadata', 'header'), froz"
|
|
6614
6940
|
"en=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(na"
|
|
6615
|
-
"me='
|
|
6616
|
-
"
|
|
6941
|
+
"me='body', kw_only=False, fn=None), ReprPlan.Field(name='header', kw_only=True, fn=None)), id=False, terse=Fal"
|
|
6942
|
+
"se, default_fn=None)))"
|
|
6617
6943
|
),
|
|
6618
|
-
plan_repr_sha1='
|
|
6944
|
+
plan_repr_sha1='80e9c0b4a83a9a6095585d8dd172aec53d34d1f2',
|
|
6619
6945
|
op_ref_idents=(
|
|
6620
6946
|
'__dataclass__init__fields__0__annotation',
|
|
6621
6947
|
'__dataclass__init__fields__0__coerce',
|
|
6622
6948
|
'__dataclass__init__fields__0__default',
|
|
6623
6949
|
'__dataclass__init__fields__1__annotation',
|
|
6624
6950
|
'__dataclass__init__fields__2__annotation',
|
|
6625
|
-
'__dataclass__repr__fns__0__fn',
|
|
6626
6951
|
),
|
|
6627
6952
|
cls_names=(
|
|
6628
6953
|
('ommlds.minichain.backends.impls.mistral', 'SectionContent'),
|
|
6629
6954
|
),
|
|
6630
6955
|
)
|
|
6631
|
-
def
|
|
6956
|
+
def _process_dataclass__80e9c0b4a83a9a6095585d8dd172aec53d34d1f2():
|
|
6632
6957
|
def _process_dataclass(
|
|
6633
6958
|
*,
|
|
6634
6959
|
__dataclass__cls,
|
|
@@ -6637,7 +6962,6 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6637
6962
|
__dataclass__init__fields__0__default,
|
|
6638
6963
|
__dataclass__init__fields__1__annotation,
|
|
6639
6964
|
__dataclass__init__fields__2__annotation,
|
|
6640
|
-
__dataclass__repr__fns__0__fn,
|
|
6641
6965
|
__dataclass__FieldFnValidationError, # noqa
|
|
6642
6966
|
__dataclass__FieldTypeValidationError, # noqa
|
|
6643
6967
|
__dataclass__FnValidationError, # noqa
|
|
@@ -6657,8 +6981,8 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6657
6981
|
raise TypeError(self)
|
|
6658
6982
|
return __dataclass__cls( # noqa
|
|
6659
6983
|
_metadata=self._metadata,
|
|
6660
|
-
header=self.header,
|
|
6661
6984
|
body=self.body,
|
|
6985
|
+
header=self.header,
|
|
6662
6986
|
)
|
|
6663
6987
|
|
|
6664
6988
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -6673,8 +6997,8 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6673
6997
|
return NotImplemented
|
|
6674
6998
|
return (
|
|
6675
6999
|
self._metadata == other._metadata and
|
|
6676
|
-
self.
|
|
6677
|
-
self.
|
|
7000
|
+
self.body == other.body and
|
|
7001
|
+
self.header == other.header
|
|
6678
7002
|
)
|
|
6679
7003
|
|
|
6680
7004
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -6684,8 +7008,8 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6684
7008
|
|
|
6685
7009
|
__dataclass___setattr_frozen_fields = {
|
|
6686
7010
|
'_metadata',
|
|
6687
|
-
'header',
|
|
6688
7011
|
'body',
|
|
7012
|
+
'header',
|
|
6689
7013
|
}
|
|
6690
7014
|
|
|
6691
7015
|
def __setattr__(self, name, value):
|
|
@@ -6703,8 +7027,8 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6703
7027
|
|
|
6704
7028
|
__dataclass___delattr_frozen_fields = {
|
|
6705
7029
|
'_metadata',
|
|
6706
|
-
'header',
|
|
6707
7030
|
'body',
|
|
7031
|
+
'header',
|
|
6708
7032
|
}
|
|
6709
7033
|
|
|
6710
7034
|
def __delattr__(self, name):
|
|
@@ -6723,8 +7047,8 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6723
7047
|
def __hash__(self):
|
|
6724
7048
|
return hash((
|
|
6725
7049
|
self._metadata,
|
|
6726
|
-
self.header,
|
|
6727
7050
|
self.body,
|
|
7051
|
+
self.header,
|
|
6728
7052
|
))
|
|
6729
7053
|
|
|
6730
7054
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -6732,15 +7056,15 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6732
7056
|
|
|
6733
7057
|
def __init__(
|
|
6734
7058
|
self,
|
|
6735
|
-
|
|
6736
|
-
body: __dataclass__init__fields__2__annotation,
|
|
7059
|
+
body: __dataclass__init__fields__1__annotation,
|
|
6737
7060
|
*,
|
|
6738
7061
|
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
7062
|
+
header: __dataclass__init__fields__2__annotation,
|
|
6739
7063
|
) -> __dataclass__None:
|
|
6740
7064
|
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
6741
7065
|
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
6742
|
-
__dataclass__object_setattr(self, 'header', header)
|
|
6743
7066
|
__dataclass__object_setattr(self, 'body', body)
|
|
7067
|
+
__dataclass__object_setattr(self, 'header', header)
|
|
6744
7068
|
|
|
6745
7069
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
6746
7070
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -6750,10 +7074,8 @@ def _process_dataclass__0fa4877e6cac6410b1b210697166cb95c606490e():
|
|
|
6750
7074
|
@__dataclass___recursive_repr()
|
|
6751
7075
|
def __repr__(self):
|
|
6752
7076
|
parts = []
|
|
6753
|
-
if (s := __dataclass__repr__fns__0__fn(self._metadata)) is not None:
|
|
6754
|
-
parts.append(f"_metadata={s}")
|
|
6755
|
-
parts.append(f"header={self.header!r}")
|
|
6756
7077
|
parts.append(f"body={self.body!r}")
|
|
7078
|
+
parts.append(f"header={self.header!r}")
|
|
6757
7079
|
return (
|
|
6758
7080
|
f"{self.__class__.__qualname__}("
|
|
6759
7081
|
f"{', '.join(parts)}"
|
|
@@ -7066,24 +7388,23 @@ def _process_dataclass__5cf06a8666aafbd9f13b7cc116ca35266a2043de():
|
|
|
7066
7388
|
"pe=None), InitPlan.Field(name='body', annotation=OpRef(name='init.fields.2.annotation'), default=None, default"
|
|
7067
7389
|
"_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_typ"
|
|
7068
7390
|
"e=None)), self_param='self', std_params=('tag', 'body'), kw_only_params=('_metadata',), frozen=True, slots=Fal"
|
|
7069
|
-
"se, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='
|
|
7070
|
-
"
|
|
7071
|
-
"
|
|
7391
|
+
"se, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='tag', kw_only="
|
|
7392
|
+
"False, fn=None), ReprPlan.Field(name='body', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)"
|
|
7393
|
+
"))"
|
|
7072
7394
|
),
|
|
7073
|
-
plan_repr_sha1='
|
|
7395
|
+
plan_repr_sha1='2e727a39486d5da75b5f2b035bb0d91c07e28821',
|
|
7074
7396
|
op_ref_idents=(
|
|
7075
7397
|
'__dataclass__init__fields__0__annotation',
|
|
7076
7398
|
'__dataclass__init__fields__0__coerce',
|
|
7077
7399
|
'__dataclass__init__fields__0__default',
|
|
7078
7400
|
'__dataclass__init__fields__1__annotation',
|
|
7079
7401
|
'__dataclass__init__fields__2__annotation',
|
|
7080
|
-
'__dataclass__repr__fns__0__fn',
|
|
7081
7402
|
),
|
|
7082
7403
|
cls_names=(
|
|
7083
7404
|
('ommlds.minichain.backends.impls.mistral', 'TagContent'),
|
|
7084
7405
|
),
|
|
7085
7406
|
)
|
|
7086
|
-
def
|
|
7407
|
+
def _process_dataclass__2e727a39486d5da75b5f2b035bb0d91c07e28821():
|
|
7087
7408
|
def _process_dataclass(
|
|
7088
7409
|
*,
|
|
7089
7410
|
__dataclass__cls,
|
|
@@ -7092,7 +7413,6 @@ def _process_dataclass__3cebe4c45faf434543bef35bc54753b0efb48327():
|
|
|
7092
7413
|
__dataclass__init__fields__0__default,
|
|
7093
7414
|
__dataclass__init__fields__1__annotation,
|
|
7094
7415
|
__dataclass__init__fields__2__annotation,
|
|
7095
|
-
__dataclass__repr__fns__0__fn,
|
|
7096
7416
|
__dataclass__FieldFnValidationError, # noqa
|
|
7097
7417
|
__dataclass__FieldTypeValidationError, # noqa
|
|
7098
7418
|
__dataclass__FnValidationError, # noqa
|
|
@@ -7205,8 +7525,6 @@ def _process_dataclass__3cebe4c45faf434543bef35bc54753b0efb48327():
|
|
|
7205
7525
|
@__dataclass___recursive_repr()
|
|
7206
7526
|
def __repr__(self):
|
|
7207
7527
|
parts = []
|
|
7208
|
-
if (s := __dataclass__repr__fns__0__fn(self._metadata)) is not None:
|
|
7209
|
-
parts.append(f"_metadata={s}")
|
|
7210
7528
|
parts.append(f"tag={self.tag!r}")
|
|
7211
7529
|
parts.append(f"body={self.body!r}")
|
|
7212
7530
|
return (
|
|
@@ -7233,178 +7551,21 @@ def _process_dataclass__3cebe4c45faf434543bef35bc54753b0efb48327():
|
|
|
7233
7551
|
"otation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False,"
|
|
7234
7552
|
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=("
|
|
7235
7553
|
"'t',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
7236
|
-
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='
|
|
7237
|
-
"
|
|
7554
|
+
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='t', kw_only=False, fn=None),), id=False, terse=False, default_fn"
|
|
7555
|
+
"=None)))"
|
|
7238
7556
|
),
|
|
7239
|
-
plan_repr_sha1='
|
|
7557
|
+
plan_repr_sha1='57c830149c3ca2c61665f91debc71be37c7ad297',
|
|
7240
7558
|
op_ref_idents=(
|
|
7241
7559
|
'__dataclass__init__fields__0__annotation',
|
|
7242
7560
|
'__dataclass__init__fields__0__coerce',
|
|
7243
7561
|
'__dataclass__init__fields__0__default',
|
|
7244
7562
|
'__dataclass__init__fields__1__annotation',
|
|
7245
|
-
'__dataclass__repr__fns__0__fn',
|
|
7246
7563
|
),
|
|
7247
7564
|
cls_names=(
|
|
7248
7565
|
('ommlds.minichain.backends.impls.mistral', 'TemplateContent'),
|
|
7249
7566
|
),
|
|
7250
7567
|
)
|
|
7251
|
-
def
|
|
7252
|
-
def _process_dataclass(
|
|
7253
|
-
*,
|
|
7254
|
-
__dataclass__cls,
|
|
7255
|
-
__dataclass__init__fields__0__annotation,
|
|
7256
|
-
__dataclass__init__fields__0__coerce,
|
|
7257
|
-
__dataclass__init__fields__0__default,
|
|
7258
|
-
__dataclass__init__fields__1__annotation,
|
|
7259
|
-
__dataclass__repr__fns__0__fn,
|
|
7260
|
-
__dataclass__FieldFnValidationError, # noqa
|
|
7261
|
-
__dataclass__FieldTypeValidationError, # noqa
|
|
7262
|
-
__dataclass__FnValidationError, # noqa
|
|
7263
|
-
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
7264
|
-
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
7265
|
-
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
7266
|
-
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
7267
|
-
__dataclass__None=None, # noqa
|
|
7268
|
-
__dataclass__TypeError=TypeError, # noqa
|
|
7269
|
-
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
7270
|
-
__dataclass__isinstance=isinstance, # noqa
|
|
7271
|
-
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
7272
|
-
__dataclass__property=property, # noqa
|
|
7273
|
-
):
|
|
7274
|
-
def __copy__(self):
|
|
7275
|
-
if self.__class__ is not __dataclass__cls:
|
|
7276
|
-
raise TypeError(self)
|
|
7277
|
-
return __dataclass__cls( # noqa
|
|
7278
|
-
_metadata=self._metadata,
|
|
7279
|
-
t=self.t,
|
|
7280
|
-
)
|
|
7281
|
-
|
|
7282
|
-
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
7283
|
-
if '__copy__' in __dataclass__cls.__dict__:
|
|
7284
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
7285
|
-
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
7286
|
-
|
|
7287
|
-
def __eq__(self, other):
|
|
7288
|
-
if self is other:
|
|
7289
|
-
return True
|
|
7290
|
-
if self.__class__ is not other.__class__:
|
|
7291
|
-
return NotImplemented
|
|
7292
|
-
return (
|
|
7293
|
-
self._metadata == other._metadata and
|
|
7294
|
-
self.t == other.t
|
|
7295
|
-
)
|
|
7296
|
-
|
|
7297
|
-
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
7298
|
-
if '__eq__' in __dataclass__cls.__dict__:
|
|
7299
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
7300
|
-
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
7301
|
-
|
|
7302
|
-
__dataclass___setattr_frozen_fields = {
|
|
7303
|
-
'_metadata',
|
|
7304
|
-
't',
|
|
7305
|
-
}
|
|
7306
|
-
|
|
7307
|
-
def __setattr__(self, name, value):
|
|
7308
|
-
if (
|
|
7309
|
-
type(self) is __dataclass__cls
|
|
7310
|
-
or name in __dataclass___setattr_frozen_fields
|
|
7311
|
-
):
|
|
7312
|
-
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
7313
|
-
super(__dataclass__cls, self).__setattr__(name, value)
|
|
7314
|
-
|
|
7315
|
-
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
7316
|
-
if '__setattr__' in __dataclass__cls.__dict__:
|
|
7317
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
7318
|
-
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
7319
|
-
|
|
7320
|
-
__dataclass___delattr_frozen_fields = {
|
|
7321
|
-
'_metadata',
|
|
7322
|
-
't',
|
|
7323
|
-
}
|
|
7324
|
-
|
|
7325
|
-
def __delattr__(self, name):
|
|
7326
|
-
if (
|
|
7327
|
-
type(self) is __dataclass__cls
|
|
7328
|
-
or name in __dataclass___delattr_frozen_fields
|
|
7329
|
-
):
|
|
7330
|
-
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
7331
|
-
super(__dataclass__cls, self).__delattr__(name)
|
|
7332
|
-
|
|
7333
|
-
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
7334
|
-
if '__delattr__' in __dataclass__cls.__dict__:
|
|
7335
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
7336
|
-
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
7337
|
-
|
|
7338
|
-
def __hash__(self):
|
|
7339
|
-
return hash((
|
|
7340
|
-
self._metadata,
|
|
7341
|
-
self.t,
|
|
7342
|
-
))
|
|
7343
|
-
|
|
7344
|
-
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
7345
|
-
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
7346
|
-
|
|
7347
|
-
def __init__(
|
|
7348
|
-
self,
|
|
7349
|
-
t: __dataclass__init__fields__1__annotation,
|
|
7350
|
-
*,
|
|
7351
|
-
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
7352
|
-
) -> __dataclass__None:
|
|
7353
|
-
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
7354
|
-
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
7355
|
-
__dataclass__object_setattr(self, 't', t)
|
|
7356
|
-
|
|
7357
|
-
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
7358
|
-
if '__init__' in __dataclass__cls.__dict__:
|
|
7359
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
7360
|
-
setattr(__dataclass__cls, '__init__', __init__)
|
|
7361
|
-
|
|
7362
|
-
@__dataclass___recursive_repr()
|
|
7363
|
-
def __repr__(self):
|
|
7364
|
-
parts = []
|
|
7365
|
-
if (s := __dataclass__repr__fns__0__fn(self._metadata)) is not None:
|
|
7366
|
-
parts.append(f"_metadata={s}")
|
|
7367
|
-
parts.append(f"t={self.t!r}")
|
|
7368
|
-
return (
|
|
7369
|
-
f"{self.__class__.__qualname__}("
|
|
7370
|
-
f"{', '.join(parts)}"
|
|
7371
|
-
f")"
|
|
7372
|
-
)
|
|
7373
|
-
|
|
7374
|
-
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
7375
|
-
if '__repr__' in __dataclass__cls.__dict__:
|
|
7376
|
-
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
7377
|
-
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
7378
|
-
|
|
7379
|
-
return _process_dataclass
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
@_register(
|
|
7383
|
-
plan_repr=(
|
|
7384
|
-
"Plans(tup=(CopyPlan(fields=('_metadata', 's')), EqPlan(fields=('_metadata', 's')), FrozenPlan(fields=('_metada"
|
|
7385
|
-
"ta', 's'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('_metadata', 's'), cache=False), "
|
|
7386
|
-
"InitPlan(fields=(InitPlan.Field(name='_metadata', annotation=OpRef(name='init.fields.0.annotation'), default=O"
|
|
7387
|
-
"pRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INST"
|
|
7388
|
-
"ANCE, coerce=OpRef(name='init.fields.0.coerce'), validate=None, check_type=None), InitPlan.Field(name='s', ann"
|
|
7389
|
-
"otation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False,"
|
|
7390
|
-
" field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=("
|
|
7391
|
-
"'s',), kw_only_params=('_metadata',), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_f"
|
|
7392
|
-
"ns=()), ReprPlan(fields=(ReprPlan.Field(name='_metadata', kw_only=True, fn=OpRef(name='repr.fns.0.fn')), ReprP"
|
|
7393
|
-
"lan.Field(name='s', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
7394
|
-
),
|
|
7395
|
-
plan_repr_sha1='f723863afd85d55cffe70bb94e882a00fd581c11',
|
|
7396
|
-
op_ref_idents=(
|
|
7397
|
-
'__dataclass__init__fields__0__annotation',
|
|
7398
|
-
'__dataclass__init__fields__0__coerce',
|
|
7399
|
-
'__dataclass__init__fields__0__default',
|
|
7400
|
-
'__dataclass__init__fields__1__annotation',
|
|
7401
|
-
'__dataclass__repr__fns__0__fn',
|
|
7402
|
-
),
|
|
7403
|
-
cls_names=(
|
|
7404
|
-
('ommlds.minichain.backends.impls.mistral', 'TextContent'),
|
|
7405
|
-
),
|
|
7406
|
-
)
|
|
7407
|
-
def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
7568
|
+
def _process_dataclass__57c830149c3ca2c61665f91debc71be37c7ad297():
|
|
7408
7569
|
def _process_dataclass(
|
|
7409
7570
|
*,
|
|
7410
7571
|
__dataclass__cls,
|
|
@@ -7412,7 +7573,6 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7412
7573
|
__dataclass__init__fields__0__coerce,
|
|
7413
7574
|
__dataclass__init__fields__0__default,
|
|
7414
7575
|
__dataclass__init__fields__1__annotation,
|
|
7415
|
-
__dataclass__repr__fns__0__fn,
|
|
7416
7576
|
__dataclass__FieldFnValidationError, # noqa
|
|
7417
7577
|
__dataclass__FieldTypeValidationError, # noqa
|
|
7418
7578
|
__dataclass__FnValidationError, # noqa
|
|
@@ -7432,7 +7592,7 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7432
7592
|
raise TypeError(self)
|
|
7433
7593
|
return __dataclass__cls( # noqa
|
|
7434
7594
|
_metadata=self._metadata,
|
|
7435
|
-
|
|
7595
|
+
t=self.t,
|
|
7436
7596
|
)
|
|
7437
7597
|
|
|
7438
7598
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -7447,7 +7607,7 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7447
7607
|
return NotImplemented
|
|
7448
7608
|
return (
|
|
7449
7609
|
self._metadata == other._metadata and
|
|
7450
|
-
self.
|
|
7610
|
+
self.t == other.t
|
|
7451
7611
|
)
|
|
7452
7612
|
|
|
7453
7613
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -7457,7 +7617,7 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7457
7617
|
|
|
7458
7618
|
__dataclass___setattr_frozen_fields = {
|
|
7459
7619
|
'_metadata',
|
|
7460
|
-
'
|
|
7620
|
+
't',
|
|
7461
7621
|
}
|
|
7462
7622
|
|
|
7463
7623
|
def __setattr__(self, name, value):
|
|
@@ -7475,7 +7635,7 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7475
7635
|
|
|
7476
7636
|
__dataclass___delattr_frozen_fields = {
|
|
7477
7637
|
'_metadata',
|
|
7478
|
-
'
|
|
7638
|
+
't',
|
|
7479
7639
|
}
|
|
7480
7640
|
|
|
7481
7641
|
def __delattr__(self, name):
|
|
@@ -7494,7 +7654,7 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7494
7654
|
def __hash__(self):
|
|
7495
7655
|
return hash((
|
|
7496
7656
|
self._metadata,
|
|
7497
|
-
self.
|
|
7657
|
+
self.t,
|
|
7498
7658
|
))
|
|
7499
7659
|
|
|
7500
7660
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -7502,13 +7662,13 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7502
7662
|
|
|
7503
7663
|
def __init__(
|
|
7504
7664
|
self,
|
|
7505
|
-
|
|
7665
|
+
t: __dataclass__init__fields__1__annotation,
|
|
7506
7666
|
*,
|
|
7507
7667
|
_metadata: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
7508
7668
|
) -> __dataclass__None:
|
|
7509
7669
|
_metadata = __dataclass__init__fields__0__coerce(_metadata)
|
|
7510
7670
|
__dataclass__object_setattr(self, '_metadata', _metadata)
|
|
7511
|
-
__dataclass__object_setattr(self, '
|
|
7671
|
+
__dataclass__object_setattr(self, 't', t)
|
|
7512
7672
|
|
|
7513
7673
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
7514
7674
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -7518,9 +7678,7 @@ def _process_dataclass__f723863afd85d55cffe70bb94e882a00fd581c11():
|
|
|
7518
7678
|
@__dataclass___recursive_repr()
|
|
7519
7679
|
def __repr__(self):
|
|
7520
7680
|
parts = []
|
|
7521
|
-
|
|
7522
|
-
parts.append(f"_metadata={s}")
|
|
7523
|
-
parts.append(f"s={self.s!r}")
|
|
7681
|
+
parts.append(f"t={self.t!r}")
|
|
7524
7682
|
return (
|
|
7525
7683
|
f"{self.__class__.__qualname__}("
|
|
7526
7684
|
f"{', '.join(parts)}"
|
|
@@ -10222,29 +10380,29 @@ def _process_dataclass__e8c5e181501fac7b5abbf4cd74b1e97ce7051392():
|
|
|
10222
10380
|
|
|
10223
10381
|
@_register(
|
|
10224
10382
|
plan_repr=(
|
|
10225
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
10226
|
-
"
|
|
10227
|
-
"
|
|
10228
|
-
"
|
|
10229
|
-
"
|
|
10230
|
-
"
|
|
10231
|
-
"
|
|
10383
|
+
"Plans(tup=(CopyPlan(fields=('fn',)), EqPlan(fields=('fn',)), FrozenPlan(fields=('fn',), allow_dynamic_dunder_a"
|
|
10384
|
+
"ttrs=False), HashPlan(action='add', fields=('fn',), cache=False), InitPlan(fields=(InitPlan.Field(name='fn', a"
|
|
10385
|
+
"nnotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=Fals"
|
|
10386
|
+
"e, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_param"
|
|
10387
|
+
"s=('fn',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), "
|
|
10388
|
+
"ReprPlan(fields=(ReprPlan.Field(name='fn', kw_only=False, fn=None),), id=False, terse=False, default_fn=None))"
|
|
10389
|
+
")"
|
|
10232
10390
|
),
|
|
10233
|
-
plan_repr_sha1='
|
|
10391
|
+
plan_repr_sha1='9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4',
|
|
10234
10392
|
op_ref_idents=(
|
|
10235
10393
|
'__dataclass__init__fields__0__annotation',
|
|
10236
|
-
'__dataclass__init__fields__0__default',
|
|
10237
10394
|
),
|
|
10238
10395
|
cls_names=(
|
|
10239
|
-
('ommlds.minichain.chat.
|
|
10396
|
+
('ommlds.minichain.chat.content', 'StringFnContentTransform'),
|
|
10397
|
+
('ommlds.minichain.chat.tools.ids', 'FnChatTransform'),
|
|
10398
|
+
('ommlds.minichain.chat.tools.ids', 'FnMessageTransform'),
|
|
10240
10399
|
),
|
|
10241
10400
|
)
|
|
10242
|
-
def
|
|
10401
|
+
def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
10243
10402
|
def _process_dataclass(
|
|
10244
10403
|
*,
|
|
10245
10404
|
__dataclass__cls,
|
|
10246
10405
|
__dataclass__init__fields__0__annotation,
|
|
10247
|
-
__dataclass__init__fields__0__default,
|
|
10248
10406
|
__dataclass__FieldFnValidationError, # noqa
|
|
10249
10407
|
__dataclass__FieldTypeValidationError, # noqa
|
|
10250
10408
|
__dataclass__FnValidationError, # noqa
|
|
@@ -10263,7 +10421,7 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10263
10421
|
if self.__class__ is not __dataclass__cls:
|
|
10264
10422
|
raise TypeError(self)
|
|
10265
10423
|
return __dataclass__cls( # noqa
|
|
10266
|
-
|
|
10424
|
+
fn=self.fn,
|
|
10267
10425
|
)
|
|
10268
10426
|
|
|
10269
10427
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -10277,7 +10435,7 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10277
10435
|
if self.__class__ is not other.__class__:
|
|
10278
10436
|
return NotImplemented
|
|
10279
10437
|
return (
|
|
10280
|
-
self.
|
|
10438
|
+
self.fn == other.fn
|
|
10281
10439
|
)
|
|
10282
10440
|
|
|
10283
10441
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -10286,7 +10444,7 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10286
10444
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
10287
10445
|
|
|
10288
10446
|
__dataclass___setattr_frozen_fields = {
|
|
10289
|
-
'
|
|
10447
|
+
'fn',
|
|
10290
10448
|
}
|
|
10291
10449
|
|
|
10292
10450
|
def __setattr__(self, name, value):
|
|
@@ -10303,7 +10461,7 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10303
10461
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
10304
10462
|
|
|
10305
10463
|
__dataclass___delattr_frozen_fields = {
|
|
10306
|
-
'
|
|
10464
|
+
'fn',
|
|
10307
10465
|
}
|
|
10308
10466
|
|
|
10309
10467
|
def __delattr__(self, name):
|
|
@@ -10321,7 +10479,7 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10321
10479
|
|
|
10322
10480
|
def __hash__(self):
|
|
10323
10481
|
return hash((
|
|
10324
|
-
self.
|
|
10482
|
+
self.fn,
|
|
10325
10483
|
))
|
|
10326
10484
|
|
|
10327
10485
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -10329,9 +10487,9 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10329
10487
|
|
|
10330
10488
|
def __init__(
|
|
10331
10489
|
self,
|
|
10332
|
-
|
|
10490
|
+
fn: __dataclass__init__fields__0__annotation,
|
|
10333
10491
|
) -> __dataclass__None:
|
|
10334
|
-
__dataclass__object_setattr(self, '
|
|
10492
|
+
__dataclass__object_setattr(self, 'fn', fn)
|
|
10335
10493
|
|
|
10336
10494
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
10337
10495
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -10341,7 +10499,7 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10341
10499
|
@__dataclass___recursive_repr()
|
|
10342
10500
|
def __repr__(self):
|
|
10343
10501
|
parts = []
|
|
10344
|
-
parts.append(f"
|
|
10502
|
+
parts.append(f"fn={self.fn!r}")
|
|
10345
10503
|
return (
|
|
10346
10504
|
f"{self.__class__.__qualname__}("
|
|
10347
10505
|
f"{', '.join(parts)}"
|
|
@@ -10358,27 +10516,29 @@ def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
|
10358
10516
|
|
|
10359
10517
|
@_register(
|
|
10360
10518
|
plan_repr=(
|
|
10361
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
10362
|
-
"
|
|
10363
|
-
"
|
|
10364
|
-
"
|
|
10365
|
-
"
|
|
10366
|
-
"
|
|
10519
|
+
"Plans(tup=(CopyPlan(fields=('schema',)), EqPlan(fields=('schema',)), FrozenPlan(fields=('schema',), allow_dyna"
|
|
10520
|
+
"mic_dunder_attrs=False), HashPlan(action='add', fields=('schema',), cache=False), InitPlan(fields=(InitPlan.Fi"
|
|
10521
|
+
"eld(name='schema', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.defaul"
|
|
10522
|
+
"t'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=Non"
|
|
10523
|
+
"e, check_type=None),), self_param='self', std_params=('schema',), kw_only_params=(), frozen=True, slots=False,"
|
|
10524
|
+
" post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='schema', kw_only="
|
|
10525
|
+
"False, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
10367
10526
|
),
|
|
10368
|
-
plan_repr_sha1='
|
|
10527
|
+
plan_repr_sha1='b2744f4fae3f6b409187f78feac9442e7e1db7ac',
|
|
10369
10528
|
op_ref_idents=(
|
|
10370
10529
|
'__dataclass__init__fields__0__annotation',
|
|
10530
|
+
'__dataclass__init__fields__0__default',
|
|
10371
10531
|
),
|
|
10372
10532
|
cls_names=(
|
|
10373
|
-
('ommlds.minichain.chat.
|
|
10374
|
-
('ommlds.minichain.chat.tools.execution', 'ToolFn.MaysyncImpl'),
|
|
10533
|
+
('ommlds.minichain.chat.formats', 'JsonResponseFormat'),
|
|
10375
10534
|
),
|
|
10376
10535
|
)
|
|
10377
|
-
def
|
|
10536
|
+
def _process_dataclass__b2744f4fae3f6b409187f78feac9442e7e1db7ac():
|
|
10378
10537
|
def _process_dataclass(
|
|
10379
10538
|
*,
|
|
10380
10539
|
__dataclass__cls,
|
|
10381
10540
|
__dataclass__init__fields__0__annotation,
|
|
10541
|
+
__dataclass__init__fields__0__default,
|
|
10382
10542
|
__dataclass__FieldFnValidationError, # noqa
|
|
10383
10543
|
__dataclass__FieldTypeValidationError, # noqa
|
|
10384
10544
|
__dataclass__FnValidationError, # noqa
|
|
@@ -10397,7 +10557,7 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10397
10557
|
if self.__class__ is not __dataclass__cls:
|
|
10398
10558
|
raise TypeError(self)
|
|
10399
10559
|
return __dataclass__cls( # noqa
|
|
10400
|
-
|
|
10560
|
+
schema=self.schema,
|
|
10401
10561
|
)
|
|
10402
10562
|
|
|
10403
10563
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -10411,7 +10571,7 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10411
10571
|
if self.__class__ is not other.__class__:
|
|
10412
10572
|
return NotImplemented
|
|
10413
10573
|
return (
|
|
10414
|
-
self.
|
|
10574
|
+
self.schema == other.schema
|
|
10415
10575
|
)
|
|
10416
10576
|
|
|
10417
10577
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -10420,7 +10580,7 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10420
10580
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
10421
10581
|
|
|
10422
10582
|
__dataclass___setattr_frozen_fields = {
|
|
10423
|
-
'
|
|
10583
|
+
'schema',
|
|
10424
10584
|
}
|
|
10425
10585
|
|
|
10426
10586
|
def __setattr__(self, name, value):
|
|
@@ -10437,7 +10597,7 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10437
10597
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
10438
10598
|
|
|
10439
10599
|
__dataclass___delattr_frozen_fields = {
|
|
10440
|
-
'
|
|
10600
|
+
'schema',
|
|
10441
10601
|
}
|
|
10442
10602
|
|
|
10443
10603
|
def __delattr__(self, name):
|
|
@@ -10455,7 +10615,7 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10455
10615
|
|
|
10456
10616
|
def __hash__(self):
|
|
10457
10617
|
return hash((
|
|
10458
|
-
self.
|
|
10618
|
+
self.schema,
|
|
10459
10619
|
))
|
|
10460
10620
|
|
|
10461
10621
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -10463,9 +10623,9 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10463
10623
|
|
|
10464
10624
|
def __init__(
|
|
10465
10625
|
self,
|
|
10466
|
-
|
|
10626
|
+
schema: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
10467
10627
|
) -> __dataclass__None:
|
|
10468
|
-
__dataclass__object_setattr(self, '
|
|
10628
|
+
__dataclass__object_setattr(self, 'schema', schema)
|
|
10469
10629
|
|
|
10470
10630
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
10471
10631
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -10475,7 +10635,7 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10475
10635
|
@__dataclass___recursive_repr()
|
|
10476
10636
|
def __repr__(self):
|
|
10477
10637
|
parts = []
|
|
10478
|
-
parts.append(f"
|
|
10638
|
+
parts.append(f"schema={self.schema!r}")
|
|
10479
10639
|
return (
|
|
10480
10640
|
f"{self.__class__.__qualname__}("
|
|
10481
10641
|
f"{', '.join(parts)}"
|
|
@@ -10492,22 +10652,23 @@ def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
|
10492
10652
|
|
|
10493
10653
|
@_register(
|
|
10494
10654
|
plan_repr=(
|
|
10495
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
10496
|
-
"s=False), HashPlan(action='add', fields=('
|
|
10655
|
+
"Plans(tup=(CopyPlan(fields=('m',)), EqPlan(fields=('m',)), FrozenPlan(fields=('m',), allow_dynamic_dunder_attr"
|
|
10656
|
+
"s=False), HashPlan(action='add', fields=('m',), cache=False), InitPlan(fields=(InitPlan.Field(name='m', annota"
|
|
10497
10657
|
"tion=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, fi"
|
|
10498
|
-
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_params=('
|
|
10658
|
+
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_params=('m"
|
|
10499
10659
|
"',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPl"
|
|
10500
|
-
"an(fields=(ReprPlan.Field(name='
|
|
10660
|
+
"an(fields=(ReprPlan.Field(name='m', kw_only=False, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
10501
10661
|
),
|
|
10502
|
-
plan_repr_sha1='
|
|
10662
|
+
plan_repr_sha1='00a32d02ca8d7c055f05a95a2073d8d5198c6d97',
|
|
10503
10663
|
op_ref_idents=(
|
|
10504
10664
|
'__dataclass__init__fields__0__annotation',
|
|
10505
10665
|
),
|
|
10506
10666
|
cls_names=(
|
|
10507
|
-
('ommlds.minichain.chat.templating', 'ChatTemplater.
|
|
10667
|
+
('ommlds.minichain.chat.templating', 'ChatTemplater._MessageStep'),
|
|
10668
|
+
('ommlds.minichain.chat.tools.execution', 'ToolFn.MaysyncImpl'),
|
|
10508
10669
|
),
|
|
10509
10670
|
)
|
|
10510
|
-
def
|
|
10671
|
+
def _process_dataclass__00a32d02ca8d7c055f05a95a2073d8d5198c6d97():
|
|
10511
10672
|
def _process_dataclass(
|
|
10512
10673
|
*,
|
|
10513
10674
|
__dataclass__cls,
|
|
@@ -10530,7 +10691,7 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10530
10691
|
if self.__class__ is not __dataclass__cls:
|
|
10531
10692
|
raise TypeError(self)
|
|
10532
10693
|
return __dataclass__cls( # noqa
|
|
10533
|
-
|
|
10694
|
+
m=self.m,
|
|
10534
10695
|
)
|
|
10535
10696
|
|
|
10536
10697
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -10544,7 +10705,7 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10544
10705
|
if self.__class__ is not other.__class__:
|
|
10545
10706
|
return NotImplemented
|
|
10546
10707
|
return (
|
|
10547
|
-
self.
|
|
10708
|
+
self.m == other.m
|
|
10548
10709
|
)
|
|
10549
10710
|
|
|
10550
10711
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -10553,7 +10714,7 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10553
10714
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
10554
10715
|
|
|
10555
10716
|
__dataclass___setattr_frozen_fields = {
|
|
10556
|
-
'
|
|
10717
|
+
'm',
|
|
10557
10718
|
}
|
|
10558
10719
|
|
|
10559
10720
|
def __setattr__(self, name, value):
|
|
@@ -10570,7 +10731,7 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10570
10731
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
10571
10732
|
|
|
10572
10733
|
__dataclass___delattr_frozen_fields = {
|
|
10573
|
-
'
|
|
10734
|
+
'm',
|
|
10574
10735
|
}
|
|
10575
10736
|
|
|
10576
10737
|
def __delattr__(self, name):
|
|
@@ -10588,7 +10749,7 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10588
10749
|
|
|
10589
10750
|
def __hash__(self):
|
|
10590
10751
|
return hash((
|
|
10591
|
-
self.
|
|
10752
|
+
self.m,
|
|
10592
10753
|
))
|
|
10593
10754
|
|
|
10594
10755
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -10596,9 +10757,9 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10596
10757
|
|
|
10597
10758
|
def __init__(
|
|
10598
10759
|
self,
|
|
10599
|
-
|
|
10760
|
+
m: __dataclass__init__fields__0__annotation,
|
|
10600
10761
|
) -> __dataclass__None:
|
|
10601
|
-
__dataclass__object_setattr(self, '
|
|
10762
|
+
__dataclass__object_setattr(self, 'm', m)
|
|
10602
10763
|
|
|
10603
10764
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
10604
10765
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -10608,7 +10769,7 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10608
10769
|
@__dataclass___recursive_repr()
|
|
10609
10770
|
def __repr__(self):
|
|
10610
10771
|
parts = []
|
|
10611
|
-
parts.append(f"
|
|
10772
|
+
parts.append(f"m={self.m!r}")
|
|
10612
10773
|
return (
|
|
10613
10774
|
f"{self.__class__.__qualname__}("
|
|
10614
10775
|
f"{', '.join(parts)}"
|
|
@@ -10625,31 +10786,26 @@ def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
|
10625
10786
|
|
|
10626
10787
|
@_register(
|
|
10627
10788
|
plan_repr=(
|
|
10628
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
10629
|
-
"
|
|
10630
|
-
"
|
|
10631
|
-
"
|
|
10632
|
-
"
|
|
10633
|
-
"
|
|
10634
|
-
"_params=('m', 'd'), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_"
|
|
10635
|
-
"fns=()), ReprPlan(fields=(ReprPlan.Field(name='m', kw_only=False, fn=None), ReprPlan.Field(name='d', kw_only=F"
|
|
10636
|
-
"alse, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
10789
|
+
"Plans(tup=(CopyPlan(fields=('p',)), EqPlan(fields=('p',)), FrozenPlan(fields=('p',), allow_dynamic_dunder_attr"
|
|
10790
|
+
"s=False), HashPlan(action='add', fields=('p',), cache=False), InitPlan(fields=(InitPlan.Field(name='p', annota"
|
|
10791
|
+
"tion=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, fi"
|
|
10792
|
+
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_params=('p"
|
|
10793
|
+
"',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPl"
|
|
10794
|
+
"an(fields=(ReprPlan.Field(name='p', kw_only=False, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
10637
10795
|
),
|
|
10638
|
-
plan_repr_sha1='
|
|
10796
|
+
plan_repr_sha1='25598005d4986efc83d12d341829703b738d3f54',
|
|
10639
10797
|
op_ref_idents=(
|
|
10640
10798
|
'__dataclass__init__fields__0__annotation',
|
|
10641
|
-
'__dataclass__init__fields__1__annotation',
|
|
10642
10799
|
),
|
|
10643
10800
|
cls_names=(
|
|
10644
|
-
('ommlds.minichain.chat.templating', 'ChatTemplater.
|
|
10801
|
+
('ommlds.minichain.chat.templating', 'ChatTemplater._PlaceholderStep'),
|
|
10645
10802
|
),
|
|
10646
10803
|
)
|
|
10647
|
-
def
|
|
10804
|
+
def _process_dataclass__25598005d4986efc83d12d341829703b738d3f54():
|
|
10648
10805
|
def _process_dataclass(
|
|
10649
10806
|
*,
|
|
10650
10807
|
__dataclass__cls,
|
|
10651
10808
|
__dataclass__init__fields__0__annotation,
|
|
10652
|
-
__dataclass__init__fields__1__annotation,
|
|
10653
10809
|
__dataclass__FieldFnValidationError, # noqa
|
|
10654
10810
|
__dataclass__FieldTypeValidationError, # noqa
|
|
10655
10811
|
__dataclass__FnValidationError, # noqa
|
|
@@ -10668,8 +10824,7 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10668
10824
|
if self.__class__ is not __dataclass__cls:
|
|
10669
10825
|
raise TypeError(self)
|
|
10670
10826
|
return __dataclass__cls( # noqa
|
|
10671
|
-
|
|
10672
|
-
d=self.d,
|
|
10827
|
+
p=self.p,
|
|
10673
10828
|
)
|
|
10674
10829
|
|
|
10675
10830
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -10683,8 +10838,7 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10683
10838
|
if self.__class__ is not other.__class__:
|
|
10684
10839
|
return NotImplemented
|
|
10685
10840
|
return (
|
|
10686
|
-
self.
|
|
10687
|
-
self.d == other.d
|
|
10841
|
+
self.p == other.p
|
|
10688
10842
|
)
|
|
10689
10843
|
|
|
10690
10844
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -10693,8 +10847,7 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10693
10847
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
10694
10848
|
|
|
10695
10849
|
__dataclass___setattr_frozen_fields = {
|
|
10696
|
-
'
|
|
10697
|
-
'd',
|
|
10850
|
+
'p',
|
|
10698
10851
|
}
|
|
10699
10852
|
|
|
10700
10853
|
def __setattr__(self, name, value):
|
|
@@ -10711,8 +10864,7 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10711
10864
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
10712
10865
|
|
|
10713
10866
|
__dataclass___delattr_frozen_fields = {
|
|
10714
|
-
'
|
|
10715
|
-
'd',
|
|
10867
|
+
'p',
|
|
10716
10868
|
}
|
|
10717
10869
|
|
|
10718
10870
|
def __delattr__(self, name):
|
|
@@ -10730,8 +10882,7 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10730
10882
|
|
|
10731
10883
|
def __hash__(self):
|
|
10732
10884
|
return hash((
|
|
10733
|
-
self.
|
|
10734
|
-
self.d,
|
|
10885
|
+
self.p,
|
|
10735
10886
|
))
|
|
10736
10887
|
|
|
10737
10888
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -10739,11 +10890,9 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10739
10890
|
|
|
10740
10891
|
def __init__(
|
|
10741
10892
|
self,
|
|
10742
|
-
|
|
10743
|
-
d: __dataclass__init__fields__1__annotation,
|
|
10893
|
+
p: __dataclass__init__fields__0__annotation,
|
|
10744
10894
|
) -> __dataclass__None:
|
|
10745
|
-
__dataclass__object_setattr(self, '
|
|
10746
|
-
__dataclass__object_setattr(self, 'd', d)
|
|
10895
|
+
__dataclass__object_setattr(self, 'p', p)
|
|
10747
10896
|
|
|
10748
10897
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
10749
10898
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -10753,8 +10902,7 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10753
10902
|
@__dataclass___recursive_repr()
|
|
10754
10903
|
def __repr__(self):
|
|
10755
10904
|
parts = []
|
|
10756
|
-
parts.append(f"
|
|
10757
|
-
parts.append(f"d={self.d!r}")
|
|
10905
|
+
parts.append(f"p={self.p!r}")
|
|
10758
10906
|
return (
|
|
10759
10907
|
f"{self.__class__.__qualname__}("
|
|
10760
10908
|
f"{', '.join(parts)}"
|
|
@@ -10771,27 +10919,31 @@ def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
|
10771
10919
|
|
|
10772
10920
|
@_register(
|
|
10773
10921
|
plan_repr=(
|
|
10774
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
10775
|
-
"
|
|
10776
|
-
"
|
|
10777
|
-
"=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),
|
|
10778
|
-
"
|
|
10779
|
-
"=
|
|
10780
|
-
"=
|
|
10922
|
+
"Plans(tup=(CopyPlan(fields=('m', 'd')), EqPlan(fields=('m', 'd')), FrozenPlan(fields=('m', 'd'), allow_dynamic"
|
|
10923
|
+
"_dunder_attrs=False), HashPlan(action='add', fields=('m', 'd'), cache=False), InitPlan(fields=(InitPlan.Field("
|
|
10924
|
+
"name='m', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ov"
|
|
10925
|
+
"erride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name"
|
|
10926
|
+
"='d', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, overri"
|
|
10927
|
+
"de=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std"
|
|
10928
|
+
"_params=('m', 'd'), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_"
|
|
10929
|
+
"fns=()), ReprPlan(fields=(ReprPlan.Field(name='m', kw_only=False, fn=None), ReprPlan.Field(name='d', kw_only=F"
|
|
10930
|
+
"alse, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
10781
10931
|
),
|
|
10782
|
-
plan_repr_sha1='
|
|
10932
|
+
plan_repr_sha1='a6847b703ccb991096e8362e4bfbc91af7df37bf',
|
|
10783
10933
|
op_ref_idents=(
|
|
10784
10934
|
'__dataclass__init__fields__0__annotation',
|
|
10935
|
+
'__dataclass__init__fields__1__annotation',
|
|
10785
10936
|
),
|
|
10786
10937
|
cls_names=(
|
|
10787
|
-
('ommlds.minichain.chat.templating', '
|
|
10938
|
+
('ommlds.minichain.chat.templating', 'ChatTemplater._TemplateStep'),
|
|
10788
10939
|
),
|
|
10789
10940
|
)
|
|
10790
|
-
def
|
|
10941
|
+
def _process_dataclass__a6847b703ccb991096e8362e4bfbc91af7df37bf():
|
|
10791
10942
|
def _process_dataclass(
|
|
10792
10943
|
*,
|
|
10793
10944
|
__dataclass__cls,
|
|
10794
10945
|
__dataclass__init__fields__0__annotation,
|
|
10946
|
+
__dataclass__init__fields__1__annotation,
|
|
10795
10947
|
__dataclass__FieldFnValidationError, # noqa
|
|
10796
10948
|
__dataclass__FieldTypeValidationError, # noqa
|
|
10797
10949
|
__dataclass__FnValidationError, # noqa
|
|
@@ -10810,7 +10962,8 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10810
10962
|
if self.__class__ is not __dataclass__cls:
|
|
10811
10963
|
raise TypeError(self)
|
|
10812
10964
|
return __dataclass__cls( # noqa
|
|
10813
|
-
|
|
10965
|
+
m=self.m,
|
|
10966
|
+
d=self.d,
|
|
10814
10967
|
)
|
|
10815
10968
|
|
|
10816
10969
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -10824,7 +10977,8 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10824
10977
|
if self.__class__ is not other.__class__:
|
|
10825
10978
|
return NotImplemented
|
|
10826
10979
|
return (
|
|
10827
|
-
self.
|
|
10980
|
+
self.m == other.m and
|
|
10981
|
+
self.d == other.d
|
|
10828
10982
|
)
|
|
10829
10983
|
|
|
10830
10984
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -10833,7 +10987,8 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10833
10987
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
10834
10988
|
|
|
10835
10989
|
__dataclass___setattr_frozen_fields = {
|
|
10836
|
-
'
|
|
10990
|
+
'm',
|
|
10991
|
+
'd',
|
|
10837
10992
|
}
|
|
10838
10993
|
|
|
10839
10994
|
def __setattr__(self, name, value):
|
|
@@ -10850,7 +11005,8 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10850
11005
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
10851
11006
|
|
|
10852
11007
|
__dataclass___delattr_frozen_fields = {
|
|
10853
|
-
'
|
|
11008
|
+
'm',
|
|
11009
|
+
'd',
|
|
10854
11010
|
}
|
|
10855
11011
|
|
|
10856
11012
|
def __delattr__(self, name):
|
|
@@ -10868,7 +11024,8 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10868
11024
|
|
|
10869
11025
|
def __hash__(self):
|
|
10870
11026
|
return hash((
|
|
10871
|
-
self.
|
|
11027
|
+
self.m,
|
|
11028
|
+
self.d,
|
|
10872
11029
|
))
|
|
10873
11030
|
|
|
10874
11031
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -10876,9 +11033,11 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10876
11033
|
|
|
10877
11034
|
def __init__(
|
|
10878
11035
|
self,
|
|
10879
|
-
|
|
11036
|
+
m: __dataclass__init__fields__0__annotation,
|
|
11037
|
+
d: __dataclass__init__fields__1__annotation,
|
|
10880
11038
|
) -> __dataclass__None:
|
|
10881
|
-
__dataclass__object_setattr(self, '
|
|
11039
|
+
__dataclass__object_setattr(self, 'm', m)
|
|
11040
|
+
__dataclass__object_setattr(self, 'd', d)
|
|
10882
11041
|
|
|
10883
11042
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
10884
11043
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -10888,7 +11047,8 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10888
11047
|
@__dataclass___recursive_repr()
|
|
10889
11048
|
def __repr__(self):
|
|
10890
11049
|
parts = []
|
|
10891
|
-
parts.append(f"
|
|
11050
|
+
parts.append(f"m={self.m!r}")
|
|
11051
|
+
parts.append(f"d={self.d!r}")
|
|
10892
11052
|
return (
|
|
10893
11053
|
f"{self.__class__.__qualname__}("
|
|
10894
11054
|
f"{', '.join(parts)}"
|
|
@@ -10905,25 +11065,23 @@ def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
|
10905
11065
|
|
|
10906
11066
|
@_register(
|
|
10907
11067
|
plan_repr=(
|
|
10908
|
-
"Plans(tup=(CopyPlan(fields=('
|
|
10909
|
-
"
|
|
10910
|
-
"
|
|
10911
|
-
"
|
|
10912
|
-
"
|
|
10913
|
-
"ReprPlan(fields=(ReprPlan.Field(name='
|
|
10914
|
-
")"
|
|
11068
|
+
"Plans(tup=(CopyPlan(fields=('key',)), EqPlan(fields=('key',)), FrozenPlan(fields=('key',), allow_dynamic_dunde"
|
|
11069
|
+
"r_attrs=False), HashPlan(action='add', fields=('key',), cache=False), InitPlan(fields=(InitPlan.Field(name='ke"
|
|
11070
|
+
"y', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override"
|
|
11071
|
+
"=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_"
|
|
11072
|
+
"params=('key',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns"
|
|
11073
|
+
"=()), ReprPlan(fields=(ReprPlan.Field(name='key', kw_only=False, fn=None),), id=False, terse=False, default_fn"
|
|
11074
|
+
"=None)))"
|
|
10915
11075
|
),
|
|
10916
|
-
plan_repr_sha1='
|
|
11076
|
+
plan_repr_sha1='4492a70e9341afc741b487e59ae5ea6624e3c95d',
|
|
10917
11077
|
op_ref_idents=(
|
|
10918
11078
|
'__dataclass__init__fields__0__annotation',
|
|
10919
11079
|
),
|
|
10920
11080
|
cls_names=(
|
|
10921
|
-
('ommlds.minichain.chat.templating', '
|
|
10922
|
-
('ommlds.minichain.chat.tools.ids', 'FnChatTransform'),
|
|
10923
|
-
('ommlds.minichain.chat.tools.ids', 'FnMessageTransform'),
|
|
11081
|
+
('ommlds.minichain.chat.templating', 'MessagePlaceholder'),
|
|
10924
11082
|
),
|
|
10925
11083
|
)
|
|
10926
|
-
def
|
|
11084
|
+
def _process_dataclass__4492a70e9341afc741b487e59ae5ea6624e3c95d():
|
|
10927
11085
|
def _process_dataclass(
|
|
10928
11086
|
*,
|
|
10929
11087
|
__dataclass__cls,
|
|
@@ -10946,7 +11104,7 @@ def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
|
10946
11104
|
if self.__class__ is not __dataclass__cls:
|
|
10947
11105
|
raise TypeError(self)
|
|
10948
11106
|
return __dataclass__cls( # noqa
|
|
10949
|
-
|
|
11107
|
+
key=self.key,
|
|
10950
11108
|
)
|
|
10951
11109
|
|
|
10952
11110
|
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
@@ -10960,7 +11118,7 @@ def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
|
10960
11118
|
if self.__class__ is not other.__class__:
|
|
10961
11119
|
return NotImplemented
|
|
10962
11120
|
return (
|
|
10963
|
-
self.
|
|
11121
|
+
self.key == other.key
|
|
10964
11122
|
)
|
|
10965
11123
|
|
|
10966
11124
|
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
@@ -10969,7 +11127,7 @@ def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
|
10969
11127
|
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
10970
11128
|
|
|
10971
11129
|
__dataclass___setattr_frozen_fields = {
|
|
10972
|
-
'
|
|
11130
|
+
'key',
|
|
10973
11131
|
}
|
|
10974
11132
|
|
|
10975
11133
|
def __setattr__(self, name, value):
|
|
@@ -10986,7 +11144,7 @@ def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
|
10986
11144
|
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
10987
11145
|
|
|
10988
11146
|
__dataclass___delattr_frozen_fields = {
|
|
10989
|
-
'
|
|
11147
|
+
'key',
|
|
10990
11148
|
}
|
|
10991
11149
|
|
|
10992
11150
|
def __delattr__(self, name):
|
|
@@ -11004,7 +11162,7 @@ def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
|
11004
11162
|
|
|
11005
11163
|
def __hash__(self):
|
|
11006
11164
|
return hash((
|
|
11007
|
-
self.
|
|
11165
|
+
self.key,
|
|
11008
11166
|
))
|
|
11009
11167
|
|
|
11010
11168
|
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
@@ -11012,9 +11170,9 @@ def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
|
11012
11170
|
|
|
11013
11171
|
def __init__(
|
|
11014
11172
|
self,
|
|
11015
|
-
|
|
11173
|
+
key: __dataclass__init__fields__0__annotation,
|
|
11016
11174
|
) -> __dataclass__None:
|
|
11017
|
-
__dataclass__object_setattr(self, '
|
|
11175
|
+
__dataclass__object_setattr(self, 'key', key)
|
|
11018
11176
|
|
|
11019
11177
|
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
11020
11178
|
if '__init__' in __dataclass__cls.__dict__:
|
|
@@ -11024,7 +11182,7 @@ def _process_dataclass__9c26f5e7e2496284b4ba1e1072fb3e29dc4e0ec4():
|
|
|
11024
11182
|
@__dataclass___recursive_repr()
|
|
11025
11183
|
def __repr__(self):
|
|
11026
11184
|
parts = []
|
|
11027
|
-
parts.append(f"
|
|
11185
|
+
parts.append(f"key={self.key!r}")
|
|
11028
11186
|
return (
|
|
11029
11187
|
f"{self.__class__.__qualname__}("
|
|
11030
11188
|
f"{', '.join(parts)}"
|