ommlds 0.0.0.dev480__py3-none-any.whl → 0.0.0.dev503__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 +100 -33
- ommlds/README.md +11 -0
- ommlds/__about__.py +9 -6
- ommlds/backends/anthropic/protocol/__init__.py +13 -1
- ommlds/backends/anthropic/protocol/_dataclasses.py +1625 -0
- ommlds/backends/anthropic/protocol/sse/events.py +2 -0
- ommlds/backends/cerebras/__init__.py +7 -0
- ommlds/backends/cerebras/_dataclasses.py +4254 -0
- ommlds/backends/cerebras/_marshal.py +24 -0
- ommlds/backends/cerebras/protocol.py +312 -0
- ommlds/backends/google/protocol/__init__.py +13 -0
- ommlds/backends/google/protocol/_dataclasses.py +5997 -0
- ommlds/backends/groq/__init__.py +7 -0
- ommlds/backends/groq/_dataclasses.py +3901 -0
- ommlds/backends/groq/clients.py +9 -0
- ommlds/backends/llamacpp/logging.py +4 -1
- ommlds/backends/mlx/caching.py +7 -3
- ommlds/backends/mlx/cli.py +10 -7
- ommlds/backends/mlx/generation.py +18 -16
- ommlds/backends/mlx/limits.py +10 -6
- ommlds/backends/mlx/loading.py +7 -4
- ommlds/backends/ollama/__init__.py +7 -0
- ommlds/backends/ollama/_dataclasses.py +3488 -0
- ommlds/backends/ollama/protocol.py +3 -0
- ommlds/backends/openai/protocol/__init__.py +15 -1
- ommlds/backends/openai/protocol/_dataclasses.py +7708 -0
- ommlds/backends/tavily/__init__.py +7 -0
- ommlds/backends/tavily/_dataclasses.py +1734 -0
- ommlds/backends/transformers/__init__.py +14 -0
- ommlds/cli/__init__.py +7 -0
- ommlds/cli/_dataclasses.py +3515 -0
- ommlds/cli/backends/catalog.py +0 -5
- ommlds/cli/backends/inject.py +70 -7
- ommlds/cli/backends/meta.py +82 -0
- ommlds/cli/content/messages.py +1 -1
- ommlds/cli/inject.py +11 -3
- ommlds/cli/main.py +137 -68
- ommlds/cli/rendering/types.py +6 -0
- ommlds/cli/secrets.py +2 -1
- ommlds/cli/sessions/base.py +1 -10
- ommlds/cli/sessions/chat/configs.py +9 -17
- ommlds/cli/sessions/chat/{chat → drivers}/ai/configs.py +3 -1
- ommlds/cli/sessions/chat/drivers/ai/events.py +57 -0
- ommlds/cli/sessions/chat/{chat → drivers}/ai/inject.py +10 -3
- ommlds/cli/sessions/chat/{chat → drivers}/ai/rendering.py +1 -1
- ommlds/cli/sessions/chat/{chat → drivers}/ai/services.py +1 -1
- ommlds/cli/sessions/chat/{chat → drivers}/ai/tools.py +4 -8
- ommlds/cli/sessions/chat/{chat → drivers}/ai/types.py +9 -0
- ommlds/cli/sessions/chat/drivers/configs.py +25 -0
- ommlds/cli/sessions/chat/drivers/events/inject.py +27 -0
- ommlds/cli/sessions/chat/drivers/events/injection.py +14 -0
- ommlds/cli/sessions/chat/drivers/events/manager.py +16 -0
- ommlds/cli/sessions/chat/drivers/events/types.py +38 -0
- ommlds/cli/sessions/chat/drivers/impl.py +50 -0
- ommlds/cli/sessions/chat/drivers/inject.py +70 -0
- ommlds/cli/sessions/chat/{chat → drivers}/state/configs.py +2 -0
- ommlds/cli/sessions/chat/drivers/state/ids.py +25 -0
- ommlds/cli/sessions/chat/drivers/state/inject.py +83 -0
- ommlds/cli/sessions/chat/{chat → drivers}/state/inmemory.py +0 -4
- ommlds/cli/sessions/chat/{chat → drivers}/state/storage.py +17 -10
- ommlds/cli/sessions/chat/{chat → drivers}/state/types.py +10 -5
- ommlds/cli/sessions/chat/{tools → drivers/tools}/configs.py +2 -2
- ommlds/cli/sessions/chat/drivers/tools/confirmation.py +44 -0
- ommlds/cli/sessions/chat/drivers/tools/errorhandling.py +39 -0
- ommlds/cli/sessions/chat/{tools → drivers/tools}/execution.py +3 -4
- ommlds/cli/sessions/chat/{tools → drivers/tools}/fs/inject.py +3 -3
- ommlds/cli/sessions/chat/{tools → drivers/tools}/inject.py +7 -12
- ommlds/cli/sessions/chat/{tools → drivers/tools}/injection.py +5 -5
- ommlds/cli/sessions/chat/{tools → drivers/tools}/rendering.py +3 -3
- ommlds/cli/sessions/chat/{tools → drivers/tools}/todo/inject.py +3 -3
- ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/tools.py +1 -1
- ommlds/cli/sessions/chat/drivers/types.py +31 -0
- ommlds/cli/sessions/chat/{chat → drivers}/user/configs.py +0 -3
- ommlds/cli/sessions/chat/drivers/user/inject.py +41 -0
- ommlds/cli/sessions/chat/facades/__init__.py +0 -0
- ommlds/cli/sessions/chat/facades/commands/__init__.py +0 -0
- ommlds/cli/sessions/chat/facades/commands/base.py +83 -0
- ommlds/cli/sessions/chat/facades/commands/configs.py +9 -0
- ommlds/cli/sessions/chat/facades/commands/inject.py +41 -0
- ommlds/cli/sessions/chat/facades/commands/injection.py +15 -0
- ommlds/cli/sessions/chat/facades/commands/manager.py +59 -0
- ommlds/cli/sessions/chat/facades/commands/simple.py +34 -0
- ommlds/cli/sessions/chat/facades/commands/types.py +13 -0
- ommlds/cli/sessions/chat/facades/configs.py +11 -0
- ommlds/cli/sessions/chat/facades/facade.py +26 -0
- ommlds/cli/sessions/chat/facades/inject.py +35 -0
- ommlds/cli/sessions/chat/facades/ui.py +34 -0
- ommlds/cli/sessions/chat/inject.py +8 -31
- ommlds/cli/sessions/chat/interfaces/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/bare/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/bare/configs.py +15 -0
- ommlds/cli/sessions/chat/interfaces/bare/inject.py +69 -0
- ommlds/cli/sessions/chat/interfaces/bare/interactive.py +49 -0
- ommlds/cli/sessions/chat/interfaces/bare/oneshot.py +21 -0
- ommlds/cli/sessions/chat/{tools/confirmation.py → interfaces/bare/tools.py} +3 -22
- ommlds/cli/sessions/chat/interfaces/base.py +13 -0
- ommlds/cli/sessions/chat/interfaces/configs.py +11 -0
- ommlds/cli/sessions/chat/interfaces/inject.py +29 -0
- ommlds/cli/sessions/chat/interfaces/textual/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/textual/app.py +310 -0
- ommlds/cli/sessions/chat/interfaces/textual/configs.py +11 -0
- ommlds/cli/sessions/chat/interfaces/textual/facades.py +19 -0
- ommlds/cli/sessions/chat/interfaces/textual/inject.py +97 -0
- ommlds/cli/sessions/chat/interfaces/textual/interface.py +24 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/__init__.py +29 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/input.tcss +53 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/markdown.tcss +7 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/messages.tcss +157 -0
- ommlds/cli/sessions/chat/interfaces/textual/tools.py +38 -0
- ommlds/cli/sessions/chat/interfaces/textual/widgets/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/textual/widgets/input.py +36 -0
- ommlds/cli/sessions/chat/interfaces/textual/widgets/messages.py +197 -0
- ommlds/cli/sessions/chat/session.py +8 -13
- ommlds/cli/sessions/completion/configs.py +3 -4
- ommlds/cli/sessions/completion/inject.py +1 -2
- ommlds/cli/sessions/completion/session.py +4 -8
- ommlds/cli/sessions/configs.py +10 -0
- ommlds/cli/sessions/embedding/configs.py +3 -4
- ommlds/cli/sessions/embedding/inject.py +1 -2
- ommlds/cli/sessions/embedding/session.py +4 -8
- ommlds/cli/sessions/inject.py +15 -15
- ommlds/cli/state/storage.py +7 -1
- ommlds/minichain/__init__.py +161 -38
- ommlds/minichain/_dataclasses.py +20452 -0
- ommlds/minichain/_typedvalues.py +11 -4
- ommlds/minichain/backends/impls/anthropic/names.py +3 -3
- ommlds/minichain/backends/impls/anthropic/protocol.py +2 -2
- ommlds/minichain/backends/impls/anthropic/stream.py +1 -1
- ommlds/minichain/backends/impls/cerebras/__init__.py +0 -0
- ommlds/minichain/backends/impls/cerebras/chat.py +80 -0
- ommlds/minichain/backends/impls/cerebras/names.py +45 -0
- ommlds/minichain/backends/impls/cerebras/protocol.py +143 -0
- ommlds/minichain/backends/impls/cerebras/stream.py +125 -0
- ommlds/minichain/backends/impls/duckduckgo/search.py +5 -1
- ommlds/minichain/backends/impls/google/names.py +6 -0
- ommlds/minichain/backends/impls/google/stream.py +1 -1
- ommlds/minichain/backends/impls/google/tools.py +2 -2
- ommlds/minichain/backends/impls/groq/chat.py +2 -0
- ommlds/minichain/backends/impls/groq/protocol.py +2 -2
- ommlds/minichain/backends/impls/groq/stream.py +3 -1
- ommlds/minichain/backends/impls/huggingface/repos.py +1 -5
- ommlds/minichain/backends/impls/llamacpp/chat.py +6 -3
- ommlds/minichain/backends/impls/llamacpp/completion.py +7 -3
- ommlds/minichain/backends/impls/llamacpp/stream.py +6 -3
- ommlds/minichain/backends/impls/mlx/chat.py +6 -3
- ommlds/minichain/backends/impls/ollama/chat.py +51 -57
- ommlds/minichain/backends/impls/ollama/protocol.py +144 -0
- ommlds/minichain/backends/impls/openai/format.py +4 -3
- ommlds/minichain/backends/impls/openai/names.py +3 -1
- ommlds/minichain/backends/impls/openai/stream.py +33 -1
- ommlds/minichain/backends/impls/sentencepiece/tokens.py +9 -6
- ommlds/minichain/backends/impls/tinygrad/chat.py +7 -4
- ommlds/minichain/backends/impls/tokenizers/tokens.py +9 -6
- ommlds/minichain/backends/impls/transformers/sentence.py +5 -2
- ommlds/minichain/backends/impls/transformers/tokens.py +9 -6
- ommlds/minichain/backends/impls/transformers/transformers.py +10 -8
- ommlds/minichain/backends/strings/resolving.py +1 -1
- ommlds/minichain/chat/content.py +42 -0
- ommlds/minichain/chat/messages.py +43 -39
- ommlds/minichain/chat/stream/joining.py +36 -12
- ommlds/minichain/chat/stream/types.py +1 -1
- ommlds/minichain/chat/templating.py +3 -3
- ommlds/minichain/content/__init__.py +19 -3
- ommlds/minichain/content/_marshal.py +181 -55
- ommlds/minichain/content/code.py +26 -0
- ommlds/minichain/content/composite.py +28 -0
- ommlds/minichain/content/content.py +27 -0
- ommlds/minichain/content/dynamic.py +12 -0
- ommlds/minichain/content/emphasis.py +27 -0
- ommlds/minichain/content/images.py +2 -2
- ommlds/minichain/content/json.py +2 -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 +8 -0
- ommlds/minichain/content/placeholders.py +10 -9
- ommlds/minichain/content/quote.py +26 -0
- ommlds/minichain/content/raw.py +49 -0
- ommlds/minichain/content/recursive.py +12 -0
- ommlds/minichain/content/section.py +26 -0
- ommlds/minichain/content/sequence.py +17 -3
- ommlds/minichain/content/standard.py +32 -0
- ommlds/minichain/content/tag.py +28 -0
- ommlds/minichain/content/templates.py +13 -0
- ommlds/minichain/content/text.py +2 -2
- ommlds/minichain/content/transform/__init__.py +0 -0
- ommlds/minichain/content/transform/json.py +55 -0
- ommlds/minichain/content/transform/markdown.py +8 -0
- ommlds/minichain/content/transform/materialize.py +51 -0
- ommlds/minichain/content/transform/metadata.py +16 -0
- ommlds/minichain/content/{prepare.py → transform/prepare.py} +10 -15
- ommlds/minichain/content/transform/recursive.py +97 -0
- ommlds/minichain/content/transform/standard.py +43 -0
- ommlds/minichain/content/{transforms → transform}/stringify.py +1 -7
- ommlds/minichain/content/transform/strings.py +33 -0
- ommlds/minichain/content/transform/templates.py +25 -0
- ommlds/minichain/content/visitors.py +231 -0
- ommlds/minichain/lib/fs/tools/read.py +1 -1
- ommlds/minichain/lib/fs/tools/recursivels/rendering.py +1 -1
- ommlds/minichain/lib/fs/tools/recursivels/running.py +1 -1
- ommlds/minichain/lib/todo/tools/write.py +2 -1
- ommlds/minichain/lib/todo/types.py +1 -1
- ommlds/minichain/metadata.py +56 -2
- ommlds/minichain/resources.py +22 -1
- ommlds/minichain/services/README.md +154 -0
- ommlds/minichain/services/__init__.py +6 -2
- ommlds/minichain/services/_marshal.py +46 -10
- ommlds/minichain/services/_origclasses.py +11 -0
- ommlds/minichain/services/_typedvalues.py +8 -3
- ommlds/minichain/services/requests.py +73 -3
- ommlds/minichain/services/responses.py +73 -3
- ommlds/minichain/services/services.py +9 -0
- ommlds/minichain/stream/services.py +24 -1
- ommlds/minichain/text/applypatch.py +2 -1
- ommlds/minichain/text/toolparsing/llamacpp/types.py +1 -1
- ommlds/minichain/tokens/specials.py +1 -1
- ommlds/minichain/tools/execution/catalog.py +1 -1
- ommlds/minichain/tools/execution/errorhandling.py +36 -0
- ommlds/minichain/tools/execution/errors.py +2 -2
- ommlds/minichain/tools/execution/executors.py +1 -1
- ommlds/minichain/tools/fns.py +1 -1
- ommlds/minichain/tools/jsonschema.py +2 -2
- ommlds/minichain/tools/reflect.py +6 -6
- ommlds/minichain/tools/types.py +12 -15
- ommlds/minichain/vectors/_marshal.py +1 -1
- ommlds/minichain/vectors/embeddings.py +1 -1
- ommlds/minichain/wrappers/__init__.py +7 -0
- ommlds/minichain/wrappers/firstinwins.py +144 -0
- ommlds/minichain/wrappers/instrument.py +146 -0
- ommlds/minichain/wrappers/retry.py +168 -0
- ommlds/minichain/wrappers/services.py +98 -0
- ommlds/minichain/wrappers/stream.py +57 -0
- ommlds/nanochat/rustbpe/README.md +9 -0
- ommlds/nanochat/tokenizers.py +40 -6
- ommlds/specs/mcp/clients.py +146 -0
- ommlds/specs/mcp/protocol.py +123 -18
- ommlds/tools/git.py +82 -65
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/METADATA +13 -11
- ommlds-0.0.0.dev503.dist-info/RECORD +520 -0
- ommlds/cli/sessions/chat/chat/state/inject.py +0 -36
- ommlds/cli/sessions/chat/chat/user/inject.py +0 -62
- ommlds/cli/sessions/chat/chat/user/interactive.py +0 -31
- ommlds/cli/sessions/chat/chat/user/oneshot.py +0 -25
- ommlds/cli/sessions/chat/chat/user/types.py +0 -15
- ommlds/cli/sessions/chat/driver.py +0 -43
- ommlds/minichain/content/materialize.py +0 -196
- ommlds/minichain/content/simple.py +0 -47
- ommlds/minichain/content/transforms/base.py +0 -46
- ommlds/minichain/content/transforms/interleave.py +0 -70
- ommlds/minichain/content/transforms/squeeze.py +0 -72
- ommlds/minichain/content/transforms/strings.py +0 -24
- ommlds/minichain/content/types.py +0 -43
- ommlds/minichain/stream/wrap.py +0 -62
- ommlds-0.0.0.dev480.dist-info/RECORD +0 -427
- /ommlds/cli/sessions/chat/{chat → drivers}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{chat → drivers}/ai/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{chat → drivers}/ai/injection.py +0 -0
- /ommlds/cli/sessions/chat/{chat/state → drivers/events}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{chat/user → drivers/phases}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/inject.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/injection.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/manager.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/types.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/state}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/fs/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/fs/configs.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/todo/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/todo/configs.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/configs.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/inject.py +0 -0
- /ommlds/{minichain/content/transforms → cli/sessions/chat/drivers/user}/__init__.py +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,3515 @@
|
|
|
1
|
+
# @omlish-generated
|
|
2
|
+
# type: ignore
|
|
3
|
+
# ruff: noqa
|
|
4
|
+
# flake8: noqa
|
|
5
|
+
import dataclasses
|
|
6
|
+
import reprlib
|
|
7
|
+
import types
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
REGISTRY = {}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _register(**kwargs):
|
|
17
|
+
def inner(fn):
|
|
18
|
+
REGISTRY[kwargs['plan_repr']] = (kwargs, fn)
|
|
19
|
+
return fn
|
|
20
|
+
return inner
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
##
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@_register(
|
|
27
|
+
plan_repr=(
|
|
28
|
+
"Plans(tup=(CopyPlan(fields=()), EqPlan(fields=()), FrozenPlan(fields=(), allow_dynamic_dunder_attrs=False), Ha"
|
|
29
|
+
"shPlan(action='add', fields=(), cache=False), InitPlan(fields=(), self_param='self', std_params=(), kw_only_pa"
|
|
30
|
+
"rams=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(), i"
|
|
31
|
+
"d=False, terse=False, default_fn=None)))"
|
|
32
|
+
),
|
|
33
|
+
plan_repr_sha1='e1f7edfe11f2b721d6a656c46e698fedc95461bb',
|
|
34
|
+
op_ref_idents=(),
|
|
35
|
+
cls_names=(
|
|
36
|
+
('ommlds.cli.inject', 'SessionConfig'),
|
|
37
|
+
('ommlds.cli.main', 'CommandsConfig'),
|
|
38
|
+
('ommlds.cli.main', 'ToolSetConfig'),
|
|
39
|
+
('ommlds.cli.sessions.chat.drivers.tools.fs.configs', 'FsToolSetConfig'),
|
|
40
|
+
('ommlds.cli.sessions.chat.drivers.tools.todo.configs', 'TodoToolSetConfig'),
|
|
41
|
+
('ommlds.cli.sessions.chat.drivers.tools.weather.configs', 'WeatherToolSetConfig'),
|
|
42
|
+
),
|
|
43
|
+
)
|
|
44
|
+
def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
|
|
45
|
+
def _process_dataclass(
|
|
46
|
+
*,
|
|
47
|
+
__dataclass__cls,
|
|
48
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
49
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
50
|
+
__dataclass__FnValidationError, # noqa
|
|
51
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
52
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
53
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
54
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
55
|
+
__dataclass__None=None, # noqa
|
|
56
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
57
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
58
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
59
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
60
|
+
__dataclass__property=property, # noqa
|
|
61
|
+
):
|
|
62
|
+
def __copy__(self):
|
|
63
|
+
if self.__class__ is not __dataclass__cls:
|
|
64
|
+
raise TypeError(self)
|
|
65
|
+
return __dataclass__cls() # noqa
|
|
66
|
+
|
|
67
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
68
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
69
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
70
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
71
|
+
|
|
72
|
+
def __eq__(self, other):
|
|
73
|
+
if self is other:
|
|
74
|
+
return True
|
|
75
|
+
if self.__class__ is not other.__class__:
|
|
76
|
+
return NotImplemented
|
|
77
|
+
return True
|
|
78
|
+
|
|
79
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
80
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
81
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
82
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
83
|
+
|
|
84
|
+
def __setattr__(self, name, value):
|
|
85
|
+
if (
|
|
86
|
+
type(self) is __dataclass__cls
|
|
87
|
+
):
|
|
88
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
89
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
90
|
+
|
|
91
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
92
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
93
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
94
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
95
|
+
|
|
96
|
+
def __delattr__(self, name):
|
|
97
|
+
if (
|
|
98
|
+
type(self) is __dataclass__cls
|
|
99
|
+
):
|
|
100
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
101
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
102
|
+
|
|
103
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
104
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
105
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
106
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
107
|
+
|
|
108
|
+
def __hash__(self):
|
|
109
|
+
return hash(())
|
|
110
|
+
|
|
111
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
112
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
113
|
+
|
|
114
|
+
def __init__(
|
|
115
|
+
self,
|
|
116
|
+
) -> __dataclass__None:
|
|
117
|
+
pass
|
|
118
|
+
|
|
119
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
120
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
121
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
122
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
123
|
+
|
|
124
|
+
@__dataclass___recursive_repr()
|
|
125
|
+
def __repr__(self):
|
|
126
|
+
parts = []
|
|
127
|
+
return (
|
|
128
|
+
f"{self.__class__.__qualname__}("
|
|
129
|
+
f"{', '.join(parts)}"
|
|
130
|
+
f")"
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
134
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
135
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
136
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
137
|
+
|
|
138
|
+
return _process_dataclass
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
@_register(
|
|
142
|
+
plan_repr=(
|
|
143
|
+
"Plans(tup=(CopyPlan(fields=('stream', 'verbose', 'enable_tools')), EqPlan(fields=('stream', 'verbose', 'enable"
|
|
144
|
+
"_tools')), FrozenPlan(fields=('stream', 'verbose', 'enable_tools'), allow_dynamic_dunder_attrs=False), HashPla"
|
|
145
|
+
"n(action='add', fields=('stream', 'verbose', 'enable_tools'), cache=False), InitPlan(fields=(InitPlan.Field(na"
|
|
146
|
+
"me='stream', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), d"
|
|
147
|
+
"efault_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, che"
|
|
148
|
+
"ck_type=None), InitPlan.Field(name='verbose', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef"
|
|
149
|
+
"(name='init.fields.1.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE"
|
|
150
|
+
", coerce=None, validate=None, check_type=None), InitPlan.Field(name='enable_tools', annotation=OpRef(name='ini"
|
|
151
|
+
"t.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, overrid"
|
|
152
|
+
"e=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_"
|
|
153
|
+
"params=(), kw_only_params=('stream', 'verbose', 'enable_tools'), frozen=True, slots=False, post_init_params=No"
|
|
154
|
+
"ne, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='stream', kw_only=True, fn=None), Repr"
|
|
155
|
+
"Plan.Field(name='verbose', kw_only=True, fn=None), ReprPlan.Field(name='enable_tools', kw_only=True, fn=None))"
|
|
156
|
+
", id=False, terse=False, default_fn=None)))"
|
|
157
|
+
),
|
|
158
|
+
plan_repr_sha1='0af757919efd30aee522fc0804dd63f932b30d84',
|
|
159
|
+
op_ref_idents=(
|
|
160
|
+
'__dataclass__init__fields__0__annotation',
|
|
161
|
+
'__dataclass__init__fields__0__default',
|
|
162
|
+
'__dataclass__init__fields__1__annotation',
|
|
163
|
+
'__dataclass__init__fields__1__default',
|
|
164
|
+
'__dataclass__init__fields__2__annotation',
|
|
165
|
+
'__dataclass__init__fields__2__default',
|
|
166
|
+
),
|
|
167
|
+
cls_names=(
|
|
168
|
+
('ommlds.cli.main', 'AiConfig'),
|
|
169
|
+
),
|
|
170
|
+
)
|
|
171
|
+
def _process_dataclass__0af757919efd30aee522fc0804dd63f932b30d84():
|
|
172
|
+
def _process_dataclass(
|
|
173
|
+
*,
|
|
174
|
+
__dataclass__cls,
|
|
175
|
+
__dataclass__init__fields__0__annotation,
|
|
176
|
+
__dataclass__init__fields__0__default,
|
|
177
|
+
__dataclass__init__fields__1__annotation,
|
|
178
|
+
__dataclass__init__fields__1__default,
|
|
179
|
+
__dataclass__init__fields__2__annotation,
|
|
180
|
+
__dataclass__init__fields__2__default,
|
|
181
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
182
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
183
|
+
__dataclass__FnValidationError, # noqa
|
|
184
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
185
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
186
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
187
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
188
|
+
__dataclass__None=None, # noqa
|
|
189
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
190
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
191
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
192
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
193
|
+
__dataclass__property=property, # noqa
|
|
194
|
+
):
|
|
195
|
+
def __copy__(self):
|
|
196
|
+
if self.__class__ is not __dataclass__cls:
|
|
197
|
+
raise TypeError(self)
|
|
198
|
+
return __dataclass__cls( # noqa
|
|
199
|
+
stream=self.stream,
|
|
200
|
+
verbose=self.verbose,
|
|
201
|
+
enable_tools=self.enable_tools,
|
|
202
|
+
)
|
|
203
|
+
|
|
204
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
205
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
206
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
207
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
208
|
+
|
|
209
|
+
def __eq__(self, other):
|
|
210
|
+
if self is other:
|
|
211
|
+
return True
|
|
212
|
+
if self.__class__ is not other.__class__:
|
|
213
|
+
return NotImplemented
|
|
214
|
+
return (
|
|
215
|
+
self.stream == other.stream and
|
|
216
|
+
self.verbose == other.verbose and
|
|
217
|
+
self.enable_tools == other.enable_tools
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
221
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
222
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
223
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
224
|
+
|
|
225
|
+
__dataclass___setattr_frozen_fields = {
|
|
226
|
+
'stream',
|
|
227
|
+
'verbose',
|
|
228
|
+
'enable_tools',
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
def __setattr__(self, name, value):
|
|
232
|
+
if (
|
|
233
|
+
type(self) is __dataclass__cls
|
|
234
|
+
or name in __dataclass___setattr_frozen_fields
|
|
235
|
+
):
|
|
236
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
237
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
238
|
+
|
|
239
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
240
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
241
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
242
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
243
|
+
|
|
244
|
+
__dataclass___delattr_frozen_fields = {
|
|
245
|
+
'stream',
|
|
246
|
+
'verbose',
|
|
247
|
+
'enable_tools',
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
def __delattr__(self, name):
|
|
251
|
+
if (
|
|
252
|
+
type(self) is __dataclass__cls
|
|
253
|
+
or name in __dataclass___delattr_frozen_fields
|
|
254
|
+
):
|
|
255
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
256
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
257
|
+
|
|
258
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
259
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
260
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
261
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
262
|
+
|
|
263
|
+
def __hash__(self):
|
|
264
|
+
return hash((
|
|
265
|
+
self.stream,
|
|
266
|
+
self.verbose,
|
|
267
|
+
self.enable_tools,
|
|
268
|
+
))
|
|
269
|
+
|
|
270
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
271
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
272
|
+
|
|
273
|
+
def __init__(
|
|
274
|
+
self,
|
|
275
|
+
*,
|
|
276
|
+
stream: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
277
|
+
verbose: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
278
|
+
enable_tools: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
279
|
+
) -> __dataclass__None:
|
|
280
|
+
__dataclass__object_setattr(self, 'stream', stream)
|
|
281
|
+
__dataclass__object_setattr(self, 'verbose', verbose)
|
|
282
|
+
__dataclass__object_setattr(self, 'enable_tools', enable_tools)
|
|
283
|
+
|
|
284
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
285
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
286
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
287
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
288
|
+
|
|
289
|
+
@__dataclass___recursive_repr()
|
|
290
|
+
def __repr__(self):
|
|
291
|
+
parts = []
|
|
292
|
+
parts.append(f"stream={self.stream!r}")
|
|
293
|
+
parts.append(f"verbose={self.verbose!r}")
|
|
294
|
+
parts.append(f"enable_tools={self.enable_tools!r}")
|
|
295
|
+
return (
|
|
296
|
+
f"{self.__class__.__qualname__}("
|
|
297
|
+
f"{', '.join(parts)}"
|
|
298
|
+
f")"
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
302
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
303
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
304
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
305
|
+
|
|
306
|
+
return _process_dataclass
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
@_register(
|
|
310
|
+
plan_repr=(
|
|
311
|
+
"Plans(tup=(CopyPlan(fields=('backend',)), EqPlan(fields=('backend',)), FrozenPlan(fields=('backend',), allow_d"
|
|
312
|
+
"ynamic_dunder_attrs=False), HashPlan(action='add', fields=('backend',), cache=False), InitPlan(fields=(InitPla"
|
|
313
|
+
"n.Field(name='backend', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.d"
|
|
314
|
+
"efault'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validat"
|
|
315
|
+
"e=None, check_type=None),), self_param='self', std_params=(), kw_only_params=('backend',), frozen=True, slots="
|
|
316
|
+
"False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='backend', k"
|
|
317
|
+
"w_only=True, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
318
|
+
),
|
|
319
|
+
plan_repr_sha1='fa5665ecddac4bdf52a6a47db3b5b5362a8b3c7a',
|
|
320
|
+
op_ref_idents=(
|
|
321
|
+
'__dataclass__init__fields__0__annotation',
|
|
322
|
+
'__dataclass__init__fields__0__default',
|
|
323
|
+
),
|
|
324
|
+
cls_names=(
|
|
325
|
+
('ommlds.cli.main', 'BackendConfig'),
|
|
326
|
+
),
|
|
327
|
+
)
|
|
328
|
+
def _process_dataclass__fa5665ecddac4bdf52a6a47db3b5b5362a8b3c7a():
|
|
329
|
+
def _process_dataclass(
|
|
330
|
+
*,
|
|
331
|
+
__dataclass__cls,
|
|
332
|
+
__dataclass__init__fields__0__annotation,
|
|
333
|
+
__dataclass__init__fields__0__default,
|
|
334
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
335
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
336
|
+
__dataclass__FnValidationError, # noqa
|
|
337
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
338
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
339
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
340
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
341
|
+
__dataclass__None=None, # noqa
|
|
342
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
343
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
344
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
345
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
346
|
+
__dataclass__property=property, # noqa
|
|
347
|
+
):
|
|
348
|
+
def __copy__(self):
|
|
349
|
+
if self.__class__ is not __dataclass__cls:
|
|
350
|
+
raise TypeError(self)
|
|
351
|
+
return __dataclass__cls( # noqa
|
|
352
|
+
backend=self.backend,
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
356
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
357
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
358
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
359
|
+
|
|
360
|
+
def __eq__(self, other):
|
|
361
|
+
if self is other:
|
|
362
|
+
return True
|
|
363
|
+
if self.__class__ is not other.__class__:
|
|
364
|
+
return NotImplemented
|
|
365
|
+
return (
|
|
366
|
+
self.backend == other.backend
|
|
367
|
+
)
|
|
368
|
+
|
|
369
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
370
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
371
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
372
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
373
|
+
|
|
374
|
+
__dataclass___setattr_frozen_fields = {
|
|
375
|
+
'backend',
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
def __setattr__(self, name, value):
|
|
379
|
+
if (
|
|
380
|
+
type(self) is __dataclass__cls
|
|
381
|
+
or name in __dataclass___setattr_frozen_fields
|
|
382
|
+
):
|
|
383
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
384
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
385
|
+
|
|
386
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
387
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
388
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
389
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
390
|
+
|
|
391
|
+
__dataclass___delattr_frozen_fields = {
|
|
392
|
+
'backend',
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
def __delattr__(self, name):
|
|
396
|
+
if (
|
|
397
|
+
type(self) is __dataclass__cls
|
|
398
|
+
or name in __dataclass___delattr_frozen_fields
|
|
399
|
+
):
|
|
400
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
401
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
402
|
+
|
|
403
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
404
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
405
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
406
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
407
|
+
|
|
408
|
+
def __hash__(self):
|
|
409
|
+
return hash((
|
|
410
|
+
self.backend,
|
|
411
|
+
))
|
|
412
|
+
|
|
413
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
414
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
415
|
+
|
|
416
|
+
def __init__(
|
|
417
|
+
self,
|
|
418
|
+
*,
|
|
419
|
+
backend: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
420
|
+
) -> __dataclass__None:
|
|
421
|
+
__dataclass__object_setattr(self, 'backend', backend)
|
|
422
|
+
|
|
423
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
424
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
425
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
426
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
427
|
+
|
|
428
|
+
@__dataclass___recursive_repr()
|
|
429
|
+
def __repr__(self):
|
|
430
|
+
parts = []
|
|
431
|
+
parts.append(f"backend={self.backend!r}")
|
|
432
|
+
return (
|
|
433
|
+
f"{self.__class__.__qualname__}("
|
|
434
|
+
f"{', '.join(parts)}"
|
|
435
|
+
f")"
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
439
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
440
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
441
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
442
|
+
|
|
443
|
+
return _process_dataclass
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
@_register(
|
|
447
|
+
plan_repr=(
|
|
448
|
+
"Plans(tup=(CopyPlan(fields=('enable_tools', 'dangerous_no_tool_confirmation', 'interactive', 'use_readline')),"
|
|
449
|
+
" EqPlan(fields=('enable_tools', 'dangerous_no_tool_confirmation', 'interactive', 'use_readline')), FrozenPlan("
|
|
450
|
+
"fields=('enable_tools', 'dangerous_no_tool_confirmation', 'interactive', 'use_readline'), allow_dynamic_dunder"
|
|
451
|
+
"_attrs=False), HashPlan(action='add', fields=('enable_tools', 'dangerous_no_tool_confirmation', 'interactive',"
|
|
452
|
+
" 'use_readline'), cache=False), InitPlan(fields=(InitPlan.Field(name='enable_tools', annotation=OpRef(name='in"
|
|
453
|
+
"it.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, overri"
|
|
454
|
+
"de=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='da"
|
|
455
|
+
"ngerous_no_tool_confirmation', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fie"
|
|
456
|
+
"lds.1.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, "
|
|
457
|
+
"validate=None, check_type=None), InitPlan.Field(name='interactive', annotation=OpRef(name='init.fields.2.annot"
|
|
458
|
+
"ation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init=True, override=False, field_t"
|
|
459
|
+
"ype=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='use_readline', anno"
|
|
460
|
+
"tation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'), default_factory=No"
|
|
461
|
+
"ne, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), s"
|
|
462
|
+
"elf_param='self', std_params=(), kw_only_params=('enable_tools', 'dangerous_no_tool_confirmation', 'interactiv"
|
|
463
|
+
"e', 'use_readline'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan("
|
|
464
|
+
"fields=(ReprPlan.Field(name='enable_tools', kw_only=True, fn=None), ReprPlan.Field(name='dangerous_no_tool_con"
|
|
465
|
+
"firmation', kw_only=True, fn=None), ReprPlan.Field(name='interactive', kw_only=True, fn=None), ReprPlan.Field("
|
|
466
|
+
"name='use_readline', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
467
|
+
),
|
|
468
|
+
plan_repr_sha1='9e8c99e7d2eb01a6861d3003bd95e38b3c3fe9ae',
|
|
469
|
+
op_ref_idents=(
|
|
470
|
+
'__dataclass__init__fields__0__annotation',
|
|
471
|
+
'__dataclass__init__fields__0__default',
|
|
472
|
+
'__dataclass__init__fields__1__annotation',
|
|
473
|
+
'__dataclass__init__fields__1__default',
|
|
474
|
+
'__dataclass__init__fields__2__annotation',
|
|
475
|
+
'__dataclass__init__fields__2__default',
|
|
476
|
+
'__dataclass__init__fields__3__annotation',
|
|
477
|
+
'__dataclass__init__fields__3__default',
|
|
478
|
+
),
|
|
479
|
+
cls_names=(
|
|
480
|
+
('ommlds.cli.main', 'BareInterfaceConfig'),
|
|
481
|
+
),
|
|
482
|
+
)
|
|
483
|
+
def _process_dataclass__9e8c99e7d2eb01a6861d3003bd95e38b3c3fe9ae():
|
|
484
|
+
def _process_dataclass(
|
|
485
|
+
*,
|
|
486
|
+
__dataclass__cls,
|
|
487
|
+
__dataclass__init__fields__0__annotation,
|
|
488
|
+
__dataclass__init__fields__0__default,
|
|
489
|
+
__dataclass__init__fields__1__annotation,
|
|
490
|
+
__dataclass__init__fields__1__default,
|
|
491
|
+
__dataclass__init__fields__2__annotation,
|
|
492
|
+
__dataclass__init__fields__2__default,
|
|
493
|
+
__dataclass__init__fields__3__annotation,
|
|
494
|
+
__dataclass__init__fields__3__default,
|
|
495
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
496
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
497
|
+
__dataclass__FnValidationError, # noqa
|
|
498
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
499
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
500
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
501
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
502
|
+
__dataclass__None=None, # noqa
|
|
503
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
504
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
505
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
506
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
507
|
+
__dataclass__property=property, # noqa
|
|
508
|
+
):
|
|
509
|
+
def __copy__(self):
|
|
510
|
+
if self.__class__ is not __dataclass__cls:
|
|
511
|
+
raise TypeError(self)
|
|
512
|
+
return __dataclass__cls( # noqa
|
|
513
|
+
enable_tools=self.enable_tools,
|
|
514
|
+
dangerous_no_tool_confirmation=self.dangerous_no_tool_confirmation,
|
|
515
|
+
interactive=self.interactive,
|
|
516
|
+
use_readline=self.use_readline,
|
|
517
|
+
)
|
|
518
|
+
|
|
519
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
520
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
521
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
522
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
523
|
+
|
|
524
|
+
def __eq__(self, other):
|
|
525
|
+
if self is other:
|
|
526
|
+
return True
|
|
527
|
+
if self.__class__ is not other.__class__:
|
|
528
|
+
return NotImplemented
|
|
529
|
+
return (
|
|
530
|
+
self.enable_tools == other.enable_tools and
|
|
531
|
+
self.dangerous_no_tool_confirmation == other.dangerous_no_tool_confirmation and
|
|
532
|
+
self.interactive == other.interactive and
|
|
533
|
+
self.use_readline == other.use_readline
|
|
534
|
+
)
|
|
535
|
+
|
|
536
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
537
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
538
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
539
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
540
|
+
|
|
541
|
+
__dataclass___setattr_frozen_fields = {
|
|
542
|
+
'enable_tools',
|
|
543
|
+
'dangerous_no_tool_confirmation',
|
|
544
|
+
'interactive',
|
|
545
|
+
'use_readline',
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
def __setattr__(self, name, value):
|
|
549
|
+
if (
|
|
550
|
+
type(self) is __dataclass__cls
|
|
551
|
+
or name in __dataclass___setattr_frozen_fields
|
|
552
|
+
):
|
|
553
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
554
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
555
|
+
|
|
556
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
557
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
558
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
559
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
560
|
+
|
|
561
|
+
__dataclass___delattr_frozen_fields = {
|
|
562
|
+
'enable_tools',
|
|
563
|
+
'dangerous_no_tool_confirmation',
|
|
564
|
+
'interactive',
|
|
565
|
+
'use_readline',
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
def __delattr__(self, name):
|
|
569
|
+
if (
|
|
570
|
+
type(self) is __dataclass__cls
|
|
571
|
+
or name in __dataclass___delattr_frozen_fields
|
|
572
|
+
):
|
|
573
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
574
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
575
|
+
|
|
576
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
577
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
578
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
579
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
580
|
+
|
|
581
|
+
def __hash__(self):
|
|
582
|
+
return hash((
|
|
583
|
+
self.enable_tools,
|
|
584
|
+
self.dangerous_no_tool_confirmation,
|
|
585
|
+
self.interactive,
|
|
586
|
+
self.use_readline,
|
|
587
|
+
))
|
|
588
|
+
|
|
589
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
590
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
591
|
+
|
|
592
|
+
def __init__(
|
|
593
|
+
self,
|
|
594
|
+
*,
|
|
595
|
+
enable_tools: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
596
|
+
dangerous_no_tool_confirmation: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
597
|
+
interactive: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
598
|
+
use_readline: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
599
|
+
) -> __dataclass__None:
|
|
600
|
+
__dataclass__object_setattr(self, 'enable_tools', enable_tools)
|
|
601
|
+
__dataclass__object_setattr(self, 'dangerous_no_tool_confirmation', dangerous_no_tool_confirmation)
|
|
602
|
+
__dataclass__object_setattr(self, 'interactive', interactive)
|
|
603
|
+
__dataclass__object_setattr(self, 'use_readline', use_readline)
|
|
604
|
+
|
|
605
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
606
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
607
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
608
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
609
|
+
|
|
610
|
+
@__dataclass___recursive_repr()
|
|
611
|
+
def __repr__(self):
|
|
612
|
+
parts = []
|
|
613
|
+
parts.append(f"enable_tools={self.enable_tools!r}")
|
|
614
|
+
parts.append(f"dangerous_no_tool_confirmation={self.dangerous_no_tool_confirmation!r}")
|
|
615
|
+
parts.append(f"interactive={self.interactive!r}")
|
|
616
|
+
parts.append(f"use_readline={self.use_readline!r}")
|
|
617
|
+
return (
|
|
618
|
+
f"{self.__class__.__qualname__}("
|
|
619
|
+
f"{', '.join(parts)}"
|
|
620
|
+
f")"
|
|
621
|
+
)
|
|
622
|
+
|
|
623
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
624
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
625
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
626
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
627
|
+
|
|
628
|
+
return _process_dataclass
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
@_register(
|
|
632
|
+
plan_repr=(
|
|
633
|
+
"Plans(tup=(CopyPlan(fields=('driver', 'facade', 'interface', 'rendering')), EqPlan(fields=('driver', 'facade',"
|
|
634
|
+
" 'interface', 'rendering')), FrozenPlan(fields=('driver', 'facade', 'interface', 'rendering'), allow_dynamic_d"
|
|
635
|
+
"under_attrs=False), HashPlan(action='add', fields=('driver', 'facade', 'interface', 'rendering'), cache=False)"
|
|
636
|
+
", InitPlan(fields=(InitPlan.Field(name='driver', annotation=OpRef(name='init.fields.0.annotation'), default=Op"
|
|
637
|
+
"Ref(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTA"
|
|
638
|
+
"NCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='facade', annotation=OpRef(name='init.f"
|
|
639
|
+
"ields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True, override=F"
|
|
640
|
+
"alse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='interf"
|
|
641
|
+
"ace', annotation=OpRef(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_"
|
|
642
|
+
"factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type"
|
|
643
|
+
"=None), InitPlan.Field(name='rendering', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name"
|
|
644
|
+
"='init.fields.3.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coe"
|
|
645
|
+
"rce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('driver', 'facad"
|
|
646
|
+
"e', 'interface', 'rendering'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()),"
|
|
647
|
+
" ReprPlan(fields=(ReprPlan.Field(name='driver', kw_only=True, fn=None), ReprPlan.Field(name='facade', kw_only="
|
|
648
|
+
"True, fn=None), ReprPlan.Field(name='interface', kw_only=True, fn=None), ReprPlan.Field(name='rendering', kw_o"
|
|
649
|
+
"nly=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
650
|
+
),
|
|
651
|
+
plan_repr_sha1='e6b40ac244fb47a1c6436b8775079bada9725246',
|
|
652
|
+
op_ref_idents=(
|
|
653
|
+
'__dataclass__init__fields__0__annotation',
|
|
654
|
+
'__dataclass__init__fields__0__default',
|
|
655
|
+
'__dataclass__init__fields__1__annotation',
|
|
656
|
+
'__dataclass__init__fields__1__default',
|
|
657
|
+
'__dataclass__init__fields__2__annotation',
|
|
658
|
+
'__dataclass__init__fields__2__default',
|
|
659
|
+
'__dataclass__init__fields__3__annotation',
|
|
660
|
+
'__dataclass__init__fields__3__default',
|
|
661
|
+
),
|
|
662
|
+
cls_names=(
|
|
663
|
+
('ommlds.cli.main', 'ChatConfig'),
|
|
664
|
+
),
|
|
665
|
+
)
|
|
666
|
+
def _process_dataclass__e6b40ac244fb47a1c6436b8775079bada9725246():
|
|
667
|
+
def _process_dataclass(
|
|
668
|
+
*,
|
|
669
|
+
__dataclass__cls,
|
|
670
|
+
__dataclass__init__fields__0__annotation,
|
|
671
|
+
__dataclass__init__fields__0__default,
|
|
672
|
+
__dataclass__init__fields__1__annotation,
|
|
673
|
+
__dataclass__init__fields__1__default,
|
|
674
|
+
__dataclass__init__fields__2__annotation,
|
|
675
|
+
__dataclass__init__fields__2__default,
|
|
676
|
+
__dataclass__init__fields__3__annotation,
|
|
677
|
+
__dataclass__init__fields__3__default,
|
|
678
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
679
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
680
|
+
__dataclass__FnValidationError, # noqa
|
|
681
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
682
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
683
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
684
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
685
|
+
__dataclass__None=None, # noqa
|
|
686
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
687
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
688
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
689
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
690
|
+
__dataclass__property=property, # noqa
|
|
691
|
+
):
|
|
692
|
+
def __copy__(self):
|
|
693
|
+
if self.__class__ is not __dataclass__cls:
|
|
694
|
+
raise TypeError(self)
|
|
695
|
+
return __dataclass__cls( # noqa
|
|
696
|
+
driver=self.driver,
|
|
697
|
+
facade=self.facade,
|
|
698
|
+
interface=self.interface,
|
|
699
|
+
rendering=self.rendering,
|
|
700
|
+
)
|
|
701
|
+
|
|
702
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
703
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
704
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
705
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
706
|
+
|
|
707
|
+
def __eq__(self, other):
|
|
708
|
+
if self is other:
|
|
709
|
+
return True
|
|
710
|
+
if self.__class__ is not other.__class__:
|
|
711
|
+
return NotImplemented
|
|
712
|
+
return (
|
|
713
|
+
self.driver == other.driver and
|
|
714
|
+
self.facade == other.facade and
|
|
715
|
+
self.interface == other.interface and
|
|
716
|
+
self.rendering == other.rendering
|
|
717
|
+
)
|
|
718
|
+
|
|
719
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
720
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
721
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
722
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
723
|
+
|
|
724
|
+
__dataclass___setattr_frozen_fields = {
|
|
725
|
+
'driver',
|
|
726
|
+
'facade',
|
|
727
|
+
'interface',
|
|
728
|
+
'rendering',
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
def __setattr__(self, name, value):
|
|
732
|
+
if (
|
|
733
|
+
type(self) is __dataclass__cls
|
|
734
|
+
or name in __dataclass___setattr_frozen_fields
|
|
735
|
+
):
|
|
736
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
737
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
738
|
+
|
|
739
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
740
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
741
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
742
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
743
|
+
|
|
744
|
+
__dataclass___delattr_frozen_fields = {
|
|
745
|
+
'driver',
|
|
746
|
+
'facade',
|
|
747
|
+
'interface',
|
|
748
|
+
'rendering',
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
def __delattr__(self, name):
|
|
752
|
+
if (
|
|
753
|
+
type(self) is __dataclass__cls
|
|
754
|
+
or name in __dataclass___delattr_frozen_fields
|
|
755
|
+
):
|
|
756
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
757
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
758
|
+
|
|
759
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
760
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
761
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
762
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
763
|
+
|
|
764
|
+
def __hash__(self):
|
|
765
|
+
return hash((
|
|
766
|
+
self.driver,
|
|
767
|
+
self.facade,
|
|
768
|
+
self.interface,
|
|
769
|
+
self.rendering,
|
|
770
|
+
))
|
|
771
|
+
|
|
772
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
773
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
774
|
+
|
|
775
|
+
def __init__(
|
|
776
|
+
self,
|
|
777
|
+
*,
|
|
778
|
+
driver: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
779
|
+
facade: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
780
|
+
interface: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
781
|
+
rendering: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
782
|
+
) -> __dataclass__None:
|
|
783
|
+
__dataclass__object_setattr(self, 'driver', driver)
|
|
784
|
+
__dataclass__object_setattr(self, 'facade', facade)
|
|
785
|
+
__dataclass__object_setattr(self, 'interface', interface)
|
|
786
|
+
__dataclass__object_setattr(self, 'rendering', rendering)
|
|
787
|
+
|
|
788
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
789
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
790
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
791
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
792
|
+
|
|
793
|
+
@__dataclass___recursive_repr()
|
|
794
|
+
def __repr__(self):
|
|
795
|
+
parts = []
|
|
796
|
+
parts.append(f"driver={self.driver!r}")
|
|
797
|
+
parts.append(f"facade={self.facade!r}")
|
|
798
|
+
parts.append(f"interface={self.interface!r}")
|
|
799
|
+
parts.append(f"rendering={self.rendering!r}")
|
|
800
|
+
return (
|
|
801
|
+
f"{self.__class__.__qualname__}("
|
|
802
|
+
f"{', '.join(parts)}"
|
|
803
|
+
f")"
|
|
804
|
+
)
|
|
805
|
+
|
|
806
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
807
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
808
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
809
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
810
|
+
|
|
811
|
+
return _process_dataclass
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
@_register(
|
|
815
|
+
plan_repr=(
|
|
816
|
+
"Plans(tup=(CopyPlan(fields=('content', 'backend')), EqPlan(fields=('content', 'backend')), FrozenPlan(fields=("
|
|
817
|
+
"'content', 'backend'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('content', 'backend')"
|
|
818
|
+
", cache=False), InitPlan(fields=(InitPlan.Field(name='content', annotation=OpRef(name='init.fields.0.annotatio"
|
|
819
|
+
"n'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None"
|
|
820
|
+
", validate=None, check_type=None), InitPlan.Field(name='backend', annotation=OpRef(name='init.fields.1.annotat"
|
|
821
|
+
"ion'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True, override=False, field_typ"
|
|
822
|
+
"e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only"
|
|
823
|
+
"_params=('content', 'backend'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=())"
|
|
824
|
+
", ReprPlan(fields=(ReprPlan.Field(name='content', kw_only=True, fn=None), ReprPlan.Field(name='backend', kw_on"
|
|
825
|
+
"ly=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
826
|
+
),
|
|
827
|
+
plan_repr_sha1='3fffc5e71015066ea8ecac48620fe5be7ba69f26',
|
|
828
|
+
op_ref_idents=(
|
|
829
|
+
'__dataclass__init__fields__0__annotation',
|
|
830
|
+
'__dataclass__init__fields__1__annotation',
|
|
831
|
+
'__dataclass__init__fields__1__default',
|
|
832
|
+
),
|
|
833
|
+
cls_names=(
|
|
834
|
+
('ommlds.cli.main', 'CompletionConfig'),
|
|
835
|
+
('ommlds.cli.main', 'EmbeddingConfig'),
|
|
836
|
+
),
|
|
837
|
+
)
|
|
838
|
+
def _process_dataclass__3fffc5e71015066ea8ecac48620fe5be7ba69f26():
|
|
839
|
+
def _process_dataclass(
|
|
840
|
+
*,
|
|
841
|
+
__dataclass__cls,
|
|
842
|
+
__dataclass__init__fields__0__annotation,
|
|
843
|
+
__dataclass__init__fields__1__annotation,
|
|
844
|
+
__dataclass__init__fields__1__default,
|
|
845
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
846
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
847
|
+
__dataclass__FnValidationError, # noqa
|
|
848
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
849
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
850
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
851
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
852
|
+
__dataclass__None=None, # noqa
|
|
853
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
854
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
855
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
856
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
857
|
+
__dataclass__property=property, # noqa
|
|
858
|
+
):
|
|
859
|
+
def __copy__(self):
|
|
860
|
+
if self.__class__ is not __dataclass__cls:
|
|
861
|
+
raise TypeError(self)
|
|
862
|
+
return __dataclass__cls( # noqa
|
|
863
|
+
content=self.content,
|
|
864
|
+
backend=self.backend,
|
|
865
|
+
)
|
|
866
|
+
|
|
867
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
868
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
869
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
870
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
871
|
+
|
|
872
|
+
def __eq__(self, other):
|
|
873
|
+
if self is other:
|
|
874
|
+
return True
|
|
875
|
+
if self.__class__ is not other.__class__:
|
|
876
|
+
return NotImplemented
|
|
877
|
+
return (
|
|
878
|
+
self.content == other.content and
|
|
879
|
+
self.backend == other.backend
|
|
880
|
+
)
|
|
881
|
+
|
|
882
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
883
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
884
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
885
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
886
|
+
|
|
887
|
+
__dataclass___setattr_frozen_fields = {
|
|
888
|
+
'content',
|
|
889
|
+
'backend',
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
def __setattr__(self, name, value):
|
|
893
|
+
if (
|
|
894
|
+
type(self) is __dataclass__cls
|
|
895
|
+
or name in __dataclass___setattr_frozen_fields
|
|
896
|
+
):
|
|
897
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
898
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
899
|
+
|
|
900
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
901
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
902
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
903
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
904
|
+
|
|
905
|
+
__dataclass___delattr_frozen_fields = {
|
|
906
|
+
'content',
|
|
907
|
+
'backend',
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
def __delattr__(self, name):
|
|
911
|
+
if (
|
|
912
|
+
type(self) is __dataclass__cls
|
|
913
|
+
or name in __dataclass___delattr_frozen_fields
|
|
914
|
+
):
|
|
915
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
916
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
917
|
+
|
|
918
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
919
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
920
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
921
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
922
|
+
|
|
923
|
+
def __hash__(self):
|
|
924
|
+
return hash((
|
|
925
|
+
self.content,
|
|
926
|
+
self.backend,
|
|
927
|
+
))
|
|
928
|
+
|
|
929
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
930
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
931
|
+
|
|
932
|
+
def __init__(
|
|
933
|
+
self,
|
|
934
|
+
*,
|
|
935
|
+
content: __dataclass__init__fields__0__annotation,
|
|
936
|
+
backend: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
937
|
+
) -> __dataclass__None:
|
|
938
|
+
__dataclass__object_setattr(self, 'content', content)
|
|
939
|
+
__dataclass__object_setattr(self, 'backend', backend)
|
|
940
|
+
|
|
941
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
942
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
943
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
944
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
945
|
+
|
|
946
|
+
@__dataclass___recursive_repr()
|
|
947
|
+
def __repr__(self):
|
|
948
|
+
parts = []
|
|
949
|
+
parts.append(f"content={self.content!r}")
|
|
950
|
+
parts.append(f"backend={self.backend!r}")
|
|
951
|
+
return (
|
|
952
|
+
f"{self.__class__.__qualname__}("
|
|
953
|
+
f"{', '.join(parts)}"
|
|
954
|
+
f")"
|
|
955
|
+
)
|
|
956
|
+
|
|
957
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
958
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
959
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
960
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
961
|
+
|
|
962
|
+
return _process_dataclass
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
@_register(
|
|
966
|
+
plan_repr=(
|
|
967
|
+
"Plans(tup=(CopyPlan(fields=('ai', 'backend', 'state', 'tools', 'user')), EqPlan(fields=('ai', 'backend', 'stat"
|
|
968
|
+
"e', 'tools', 'user')), FrozenPlan(fields=('ai', 'backend', 'state', 'tools', 'user'), allow_dynamic_dunder_att"
|
|
969
|
+
"rs=False), HashPlan(action='add', fields=('ai', 'backend', 'state', 'tools', 'user'), cache=False), InitPlan(f"
|
|
970
|
+
"ields=(InitPlan.Field(name='ai', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.f"
|
|
971
|
+
"ields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None"
|
|
972
|
+
", validate=None, check_type=None), InitPlan.Field(name='backend', annotation=OpRef(name='init.fields.1.annotat"
|
|
973
|
+
"ion'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True, override=False, field_typ"
|
|
974
|
+
"e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='state', annotation=Op"
|
|
975
|
+
"Ref(name='init.fields.2.annotation'), default=OpRef(name='init.fields.2.default'), default_factory=None, init="
|
|
976
|
+
"True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Fi"
|
|
977
|
+
"eld(name='tools', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default"
|
|
978
|
+
"'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None"
|
|
979
|
+
", check_type=None), InitPlan.Field(name='user', annotation=OpRef(name='init.fields.4.annotation'), default=OpR"
|
|
980
|
+
"ef(name='init.fields.4.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTAN"
|
|
981
|
+
"CE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=(), kw_only_params=('ai', 'ba"
|
|
982
|
+
"ckend', 'state', 'tools', 'user'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns="
|
|
983
|
+
"()), ReprPlan(fields=(ReprPlan.Field(name='ai', kw_only=True, fn=None), ReprPlan.Field(name='backend', kw_only"
|
|
984
|
+
"=True, fn=None), ReprPlan.Field(name='state', kw_only=True, fn=None), ReprPlan.Field(name='tools', kw_only=Tru"
|
|
985
|
+
"e, fn=None), ReprPlan.Field(name='user', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
986
|
+
),
|
|
987
|
+
plan_repr_sha1='ccc522b0563e76033e8f2d3b6864b8a7c48c0fb7',
|
|
988
|
+
op_ref_idents=(
|
|
989
|
+
'__dataclass__init__fields__0__annotation',
|
|
990
|
+
'__dataclass__init__fields__0__default',
|
|
991
|
+
'__dataclass__init__fields__1__annotation',
|
|
992
|
+
'__dataclass__init__fields__1__default',
|
|
993
|
+
'__dataclass__init__fields__2__annotation',
|
|
994
|
+
'__dataclass__init__fields__2__default',
|
|
995
|
+
'__dataclass__init__fields__3__annotation',
|
|
996
|
+
'__dataclass__init__fields__3__default',
|
|
997
|
+
'__dataclass__init__fields__4__annotation',
|
|
998
|
+
'__dataclass__init__fields__4__default',
|
|
999
|
+
),
|
|
1000
|
+
cls_names=(
|
|
1001
|
+
('ommlds.cli.main', 'DriverConfig'),
|
|
1002
|
+
),
|
|
1003
|
+
)
|
|
1004
|
+
def _process_dataclass__ccc522b0563e76033e8f2d3b6864b8a7c48c0fb7():
|
|
1005
|
+
def _process_dataclass(
|
|
1006
|
+
*,
|
|
1007
|
+
__dataclass__cls,
|
|
1008
|
+
__dataclass__init__fields__0__annotation,
|
|
1009
|
+
__dataclass__init__fields__0__default,
|
|
1010
|
+
__dataclass__init__fields__1__annotation,
|
|
1011
|
+
__dataclass__init__fields__1__default,
|
|
1012
|
+
__dataclass__init__fields__2__annotation,
|
|
1013
|
+
__dataclass__init__fields__2__default,
|
|
1014
|
+
__dataclass__init__fields__3__annotation,
|
|
1015
|
+
__dataclass__init__fields__3__default,
|
|
1016
|
+
__dataclass__init__fields__4__annotation,
|
|
1017
|
+
__dataclass__init__fields__4__default,
|
|
1018
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1019
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1020
|
+
__dataclass__FnValidationError, # noqa
|
|
1021
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1022
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1023
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1024
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1025
|
+
__dataclass__None=None, # noqa
|
|
1026
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1027
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1028
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1029
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1030
|
+
__dataclass__property=property, # noqa
|
|
1031
|
+
):
|
|
1032
|
+
def __copy__(self):
|
|
1033
|
+
if self.__class__ is not __dataclass__cls:
|
|
1034
|
+
raise TypeError(self)
|
|
1035
|
+
return __dataclass__cls( # noqa
|
|
1036
|
+
ai=self.ai,
|
|
1037
|
+
backend=self.backend,
|
|
1038
|
+
state=self.state,
|
|
1039
|
+
tools=self.tools,
|
|
1040
|
+
user=self.user,
|
|
1041
|
+
)
|
|
1042
|
+
|
|
1043
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1044
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1045
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1046
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1047
|
+
|
|
1048
|
+
def __eq__(self, other):
|
|
1049
|
+
if self is other:
|
|
1050
|
+
return True
|
|
1051
|
+
if self.__class__ is not other.__class__:
|
|
1052
|
+
return NotImplemented
|
|
1053
|
+
return (
|
|
1054
|
+
self.ai == other.ai and
|
|
1055
|
+
self.backend == other.backend and
|
|
1056
|
+
self.state == other.state and
|
|
1057
|
+
self.tools == other.tools and
|
|
1058
|
+
self.user == other.user
|
|
1059
|
+
)
|
|
1060
|
+
|
|
1061
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1062
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1063
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1064
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1065
|
+
|
|
1066
|
+
__dataclass___setattr_frozen_fields = {
|
|
1067
|
+
'ai',
|
|
1068
|
+
'backend',
|
|
1069
|
+
'state',
|
|
1070
|
+
'tools',
|
|
1071
|
+
'user',
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
def __setattr__(self, name, value):
|
|
1075
|
+
if (
|
|
1076
|
+
type(self) is __dataclass__cls
|
|
1077
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1078
|
+
):
|
|
1079
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1080
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1081
|
+
|
|
1082
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1083
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1084
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1085
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1086
|
+
|
|
1087
|
+
__dataclass___delattr_frozen_fields = {
|
|
1088
|
+
'ai',
|
|
1089
|
+
'backend',
|
|
1090
|
+
'state',
|
|
1091
|
+
'tools',
|
|
1092
|
+
'user',
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
def __delattr__(self, name):
|
|
1096
|
+
if (
|
|
1097
|
+
type(self) is __dataclass__cls
|
|
1098
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1099
|
+
):
|
|
1100
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1101
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1102
|
+
|
|
1103
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1104
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1105
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1106
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1107
|
+
|
|
1108
|
+
def __hash__(self):
|
|
1109
|
+
return hash((
|
|
1110
|
+
self.ai,
|
|
1111
|
+
self.backend,
|
|
1112
|
+
self.state,
|
|
1113
|
+
self.tools,
|
|
1114
|
+
self.user,
|
|
1115
|
+
))
|
|
1116
|
+
|
|
1117
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1118
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1119
|
+
|
|
1120
|
+
def __init__(
|
|
1121
|
+
self,
|
|
1122
|
+
*,
|
|
1123
|
+
ai: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1124
|
+
backend: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1125
|
+
state: __dataclass__init__fields__2__annotation = __dataclass__init__fields__2__default,
|
|
1126
|
+
tools: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
1127
|
+
user: __dataclass__init__fields__4__annotation = __dataclass__init__fields__4__default,
|
|
1128
|
+
) -> __dataclass__None:
|
|
1129
|
+
__dataclass__object_setattr(self, 'ai', ai)
|
|
1130
|
+
__dataclass__object_setattr(self, 'backend', backend)
|
|
1131
|
+
__dataclass__object_setattr(self, 'state', state)
|
|
1132
|
+
__dataclass__object_setattr(self, 'tools', tools)
|
|
1133
|
+
__dataclass__object_setattr(self, 'user', user)
|
|
1134
|
+
|
|
1135
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1136
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1137
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1138
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1139
|
+
|
|
1140
|
+
@__dataclass___recursive_repr()
|
|
1141
|
+
def __repr__(self):
|
|
1142
|
+
parts = []
|
|
1143
|
+
parts.append(f"ai={self.ai!r}")
|
|
1144
|
+
parts.append(f"backend={self.backend!r}")
|
|
1145
|
+
parts.append(f"state={self.state!r}")
|
|
1146
|
+
parts.append(f"tools={self.tools!r}")
|
|
1147
|
+
parts.append(f"user={self.user!r}")
|
|
1148
|
+
return (
|
|
1149
|
+
f"{self.__class__.__qualname__}("
|
|
1150
|
+
f"{', '.join(parts)}"
|
|
1151
|
+
f")"
|
|
1152
|
+
)
|
|
1153
|
+
|
|
1154
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1155
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1156
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1157
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1158
|
+
|
|
1159
|
+
return _process_dataclass
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
@_register(
|
|
1163
|
+
plan_repr=(
|
|
1164
|
+
"Plans(tup=(CopyPlan(fields=('commands',)), EqPlan(fields=('commands',)), FrozenPlan(fields=('commands',), allo"
|
|
1165
|
+
"w_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('commands',), cache=False), InitPlan(fields=(Ini"
|
|
1166
|
+
"tPlan.Field(name='commands', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.field"
|
|
1167
|
+
"s.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, va"
|
|
1168
|
+
"lidate=None, check_type=None),), self_param='self', std_params=(), kw_only_params=('commands',), frozen=True, "
|
|
1169
|
+
"slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='comma"
|
|
1170
|
+
"nds', kw_only=True, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
1171
|
+
),
|
|
1172
|
+
plan_repr_sha1='2eae35290b327f0d934cd6747eeb9064b6f01259',
|
|
1173
|
+
op_ref_idents=(
|
|
1174
|
+
'__dataclass__init__fields__0__annotation',
|
|
1175
|
+
'__dataclass__init__fields__0__default',
|
|
1176
|
+
),
|
|
1177
|
+
cls_names=(
|
|
1178
|
+
('ommlds.cli.main', 'FacadeConfig'),
|
|
1179
|
+
),
|
|
1180
|
+
)
|
|
1181
|
+
def _process_dataclass__2eae35290b327f0d934cd6747eeb9064b6f01259():
|
|
1182
|
+
def _process_dataclass(
|
|
1183
|
+
*,
|
|
1184
|
+
__dataclass__cls,
|
|
1185
|
+
__dataclass__init__fields__0__annotation,
|
|
1186
|
+
__dataclass__init__fields__0__default,
|
|
1187
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1188
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1189
|
+
__dataclass__FnValidationError, # noqa
|
|
1190
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1191
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1192
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1193
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1194
|
+
__dataclass__None=None, # noqa
|
|
1195
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1196
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1197
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1198
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1199
|
+
__dataclass__property=property, # noqa
|
|
1200
|
+
):
|
|
1201
|
+
def __copy__(self):
|
|
1202
|
+
if self.__class__ is not __dataclass__cls:
|
|
1203
|
+
raise TypeError(self)
|
|
1204
|
+
return __dataclass__cls( # noqa
|
|
1205
|
+
commands=self.commands,
|
|
1206
|
+
)
|
|
1207
|
+
|
|
1208
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1209
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1210
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1211
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1212
|
+
|
|
1213
|
+
def __eq__(self, other):
|
|
1214
|
+
if self is other:
|
|
1215
|
+
return True
|
|
1216
|
+
if self.__class__ is not other.__class__:
|
|
1217
|
+
return NotImplemented
|
|
1218
|
+
return (
|
|
1219
|
+
self.commands == other.commands
|
|
1220
|
+
)
|
|
1221
|
+
|
|
1222
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1223
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1224
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1225
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1226
|
+
|
|
1227
|
+
__dataclass___setattr_frozen_fields = {
|
|
1228
|
+
'commands',
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
def __setattr__(self, name, value):
|
|
1232
|
+
if (
|
|
1233
|
+
type(self) is __dataclass__cls
|
|
1234
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1235
|
+
):
|
|
1236
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1237
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1238
|
+
|
|
1239
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1240
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1241
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1242
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1243
|
+
|
|
1244
|
+
__dataclass___delattr_frozen_fields = {
|
|
1245
|
+
'commands',
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
def __delattr__(self, name):
|
|
1249
|
+
if (
|
|
1250
|
+
type(self) is __dataclass__cls
|
|
1251
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1252
|
+
):
|
|
1253
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1254
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1255
|
+
|
|
1256
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1257
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1258
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1259
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1260
|
+
|
|
1261
|
+
def __hash__(self):
|
|
1262
|
+
return hash((
|
|
1263
|
+
self.commands,
|
|
1264
|
+
))
|
|
1265
|
+
|
|
1266
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1267
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1268
|
+
|
|
1269
|
+
def __init__(
|
|
1270
|
+
self,
|
|
1271
|
+
*,
|
|
1272
|
+
commands: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1273
|
+
) -> __dataclass__None:
|
|
1274
|
+
__dataclass__object_setattr(self, 'commands', commands)
|
|
1275
|
+
|
|
1276
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1277
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1278
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1279
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1280
|
+
|
|
1281
|
+
@__dataclass___recursive_repr()
|
|
1282
|
+
def __repr__(self):
|
|
1283
|
+
parts = []
|
|
1284
|
+
parts.append(f"commands={self.commands!r}")
|
|
1285
|
+
return (
|
|
1286
|
+
f"{self.__class__.__qualname__}("
|
|
1287
|
+
f"{', '.join(parts)}"
|
|
1288
|
+
f")"
|
|
1289
|
+
)
|
|
1290
|
+
|
|
1291
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1292
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1293
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1294
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1295
|
+
|
|
1296
|
+
return _process_dataclass
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
@_register(
|
|
1300
|
+
plan_repr=(
|
|
1301
|
+
"Plans(tup=(CopyPlan(fields=('enable_tools', 'dangerous_no_tool_confirmation')), EqPlan(fields=('enable_tools',"
|
|
1302
|
+
" 'dangerous_no_tool_confirmation')), FrozenPlan(fields=('enable_tools', 'dangerous_no_tool_confirmation'), all"
|
|
1303
|
+
"ow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('enable_tools', 'dangerous_no_tool_confirmation"
|
|
1304
|
+
"'), cache=False), InitPlan(fields=(InitPlan.Field(name='enable_tools', annotation=OpRef(name='init.fields.0.an"
|
|
1305
|
+
"notation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, fiel"
|
|
1306
|
+
"d_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='dangerous_no_too"
|
|
1307
|
+
"l_confirmation', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'"
|
|
1308
|
+
"), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None,"
|
|
1309
|
+
" check_type=None)), self_param='self', std_params=(), kw_only_params=('enable_tools', 'dangerous_no_tool_confi"
|
|
1310
|
+
"rmation'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(Re"
|
|
1311
|
+
"prPlan.Field(name='enable_tools', kw_only=True, fn=None), ReprPlan.Field(name='dangerous_no_tool_confirmation'"
|
|
1312
|
+
", kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1313
|
+
),
|
|
1314
|
+
plan_repr_sha1='d65d18393f357ae0fb02bb80268c6f1473462613',
|
|
1315
|
+
op_ref_idents=(
|
|
1316
|
+
'__dataclass__init__fields__0__annotation',
|
|
1317
|
+
'__dataclass__init__fields__0__default',
|
|
1318
|
+
'__dataclass__init__fields__1__annotation',
|
|
1319
|
+
'__dataclass__init__fields__1__default',
|
|
1320
|
+
),
|
|
1321
|
+
cls_names=(
|
|
1322
|
+
('ommlds.cli.main', 'InterfaceConfig'),
|
|
1323
|
+
('ommlds.cli.main', 'TextualInterfaceConfig'),
|
|
1324
|
+
),
|
|
1325
|
+
)
|
|
1326
|
+
def _process_dataclass__d65d18393f357ae0fb02bb80268c6f1473462613():
|
|
1327
|
+
def _process_dataclass(
|
|
1328
|
+
*,
|
|
1329
|
+
__dataclass__cls,
|
|
1330
|
+
__dataclass__init__fields__0__annotation,
|
|
1331
|
+
__dataclass__init__fields__0__default,
|
|
1332
|
+
__dataclass__init__fields__1__annotation,
|
|
1333
|
+
__dataclass__init__fields__1__default,
|
|
1334
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1335
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1336
|
+
__dataclass__FnValidationError, # noqa
|
|
1337
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1338
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1339
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1340
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1341
|
+
__dataclass__None=None, # noqa
|
|
1342
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1343
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1344
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1345
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1346
|
+
__dataclass__property=property, # noqa
|
|
1347
|
+
):
|
|
1348
|
+
def __copy__(self):
|
|
1349
|
+
if self.__class__ is not __dataclass__cls:
|
|
1350
|
+
raise TypeError(self)
|
|
1351
|
+
return __dataclass__cls( # noqa
|
|
1352
|
+
enable_tools=self.enable_tools,
|
|
1353
|
+
dangerous_no_tool_confirmation=self.dangerous_no_tool_confirmation,
|
|
1354
|
+
)
|
|
1355
|
+
|
|
1356
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1357
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1358
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1359
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1360
|
+
|
|
1361
|
+
def __eq__(self, other):
|
|
1362
|
+
if self is other:
|
|
1363
|
+
return True
|
|
1364
|
+
if self.__class__ is not other.__class__:
|
|
1365
|
+
return NotImplemented
|
|
1366
|
+
return (
|
|
1367
|
+
self.enable_tools == other.enable_tools and
|
|
1368
|
+
self.dangerous_no_tool_confirmation == other.dangerous_no_tool_confirmation
|
|
1369
|
+
)
|
|
1370
|
+
|
|
1371
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1372
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1373
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1374
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1375
|
+
|
|
1376
|
+
__dataclass___setattr_frozen_fields = {
|
|
1377
|
+
'enable_tools',
|
|
1378
|
+
'dangerous_no_tool_confirmation',
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
def __setattr__(self, name, value):
|
|
1382
|
+
if (
|
|
1383
|
+
type(self) is __dataclass__cls
|
|
1384
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1385
|
+
):
|
|
1386
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1387
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1388
|
+
|
|
1389
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1390
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1391
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1392
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1393
|
+
|
|
1394
|
+
__dataclass___delattr_frozen_fields = {
|
|
1395
|
+
'enable_tools',
|
|
1396
|
+
'dangerous_no_tool_confirmation',
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
def __delattr__(self, name):
|
|
1400
|
+
if (
|
|
1401
|
+
type(self) is __dataclass__cls
|
|
1402
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1403
|
+
):
|
|
1404
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1405
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1406
|
+
|
|
1407
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1408
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1409
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1410
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1411
|
+
|
|
1412
|
+
def __hash__(self):
|
|
1413
|
+
return hash((
|
|
1414
|
+
self.enable_tools,
|
|
1415
|
+
self.dangerous_no_tool_confirmation,
|
|
1416
|
+
))
|
|
1417
|
+
|
|
1418
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1419
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1420
|
+
|
|
1421
|
+
def __init__(
|
|
1422
|
+
self,
|
|
1423
|
+
*,
|
|
1424
|
+
enable_tools: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1425
|
+
dangerous_no_tool_confirmation: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1426
|
+
) -> __dataclass__None:
|
|
1427
|
+
__dataclass__object_setattr(self, 'enable_tools', enable_tools)
|
|
1428
|
+
__dataclass__object_setattr(self, 'dangerous_no_tool_confirmation', dangerous_no_tool_confirmation)
|
|
1429
|
+
|
|
1430
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1431
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1432
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1433
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1434
|
+
|
|
1435
|
+
@__dataclass___recursive_repr()
|
|
1436
|
+
def __repr__(self):
|
|
1437
|
+
parts = []
|
|
1438
|
+
parts.append(f"enable_tools={self.enable_tools!r}")
|
|
1439
|
+
parts.append(f"dangerous_no_tool_confirmation={self.dangerous_no_tool_confirmation!r}")
|
|
1440
|
+
return (
|
|
1441
|
+
f"{self.__class__.__qualname__}("
|
|
1442
|
+
f"{', '.join(parts)}"
|
|
1443
|
+
f")"
|
|
1444
|
+
)
|
|
1445
|
+
|
|
1446
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1447
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1448
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1449
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1450
|
+
|
|
1451
|
+
return _process_dataclass
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
@_register(
|
|
1455
|
+
plan_repr=(
|
|
1456
|
+
"Plans(tup=(CopyPlan(fields=('markdown',)), EqPlan(fields=('markdown',)), FrozenPlan(fields=('markdown',), allo"
|
|
1457
|
+
"w_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('markdown',), cache=False), InitPlan(fields=(Ini"
|
|
1458
|
+
"tPlan.Field(name='markdown', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='init.field"
|
|
1459
|
+
"s.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, va"
|
|
1460
|
+
"lidate=None, check_type=None),), self_param='self', std_params=(), kw_only_params=('markdown',), frozen=True, "
|
|
1461
|
+
"slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='markd"
|
|
1462
|
+
"own', kw_only=True, fn=None),), id=False, terse=False, default_fn=None)))"
|
|
1463
|
+
),
|
|
1464
|
+
plan_repr_sha1='254623427d52b86f69ed60d24a0e95b0b1b391ca',
|
|
1465
|
+
op_ref_idents=(
|
|
1466
|
+
'__dataclass__init__fields__0__annotation',
|
|
1467
|
+
'__dataclass__init__fields__0__default',
|
|
1468
|
+
),
|
|
1469
|
+
cls_names=(
|
|
1470
|
+
('ommlds.cli.main', 'RenderingConfig'),
|
|
1471
|
+
),
|
|
1472
|
+
)
|
|
1473
|
+
def _process_dataclass__254623427d52b86f69ed60d24a0e95b0b1b391ca():
|
|
1474
|
+
def _process_dataclass(
|
|
1475
|
+
*,
|
|
1476
|
+
__dataclass__cls,
|
|
1477
|
+
__dataclass__init__fields__0__annotation,
|
|
1478
|
+
__dataclass__init__fields__0__default,
|
|
1479
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1480
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1481
|
+
__dataclass__FnValidationError, # noqa
|
|
1482
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1483
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1484
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1485
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1486
|
+
__dataclass__None=None, # noqa
|
|
1487
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1488
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1489
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1490
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1491
|
+
__dataclass__property=property, # noqa
|
|
1492
|
+
):
|
|
1493
|
+
def __copy__(self):
|
|
1494
|
+
if self.__class__ is not __dataclass__cls:
|
|
1495
|
+
raise TypeError(self)
|
|
1496
|
+
return __dataclass__cls( # noqa
|
|
1497
|
+
markdown=self.markdown,
|
|
1498
|
+
)
|
|
1499
|
+
|
|
1500
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1501
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1502
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1503
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1504
|
+
|
|
1505
|
+
def __eq__(self, other):
|
|
1506
|
+
if self is other:
|
|
1507
|
+
return True
|
|
1508
|
+
if self.__class__ is not other.__class__:
|
|
1509
|
+
return NotImplemented
|
|
1510
|
+
return (
|
|
1511
|
+
self.markdown == other.markdown
|
|
1512
|
+
)
|
|
1513
|
+
|
|
1514
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1515
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1516
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1517
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1518
|
+
|
|
1519
|
+
__dataclass___setattr_frozen_fields = {
|
|
1520
|
+
'markdown',
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
def __setattr__(self, name, value):
|
|
1524
|
+
if (
|
|
1525
|
+
type(self) is __dataclass__cls
|
|
1526
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1527
|
+
):
|
|
1528
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1529
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1530
|
+
|
|
1531
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1532
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1533
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1534
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1535
|
+
|
|
1536
|
+
__dataclass___delattr_frozen_fields = {
|
|
1537
|
+
'markdown',
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
def __delattr__(self, name):
|
|
1541
|
+
if (
|
|
1542
|
+
type(self) is __dataclass__cls
|
|
1543
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1544
|
+
):
|
|
1545
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1546
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1547
|
+
|
|
1548
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1549
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1550
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1551
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1552
|
+
|
|
1553
|
+
def __hash__(self):
|
|
1554
|
+
return hash((
|
|
1555
|
+
self.markdown,
|
|
1556
|
+
))
|
|
1557
|
+
|
|
1558
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1559
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1560
|
+
|
|
1561
|
+
def __init__(
|
|
1562
|
+
self,
|
|
1563
|
+
*,
|
|
1564
|
+
markdown: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1565
|
+
) -> __dataclass__None:
|
|
1566
|
+
__dataclass__object_setattr(self, 'markdown', markdown)
|
|
1567
|
+
|
|
1568
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1569
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1570
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1571
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1572
|
+
|
|
1573
|
+
@__dataclass___recursive_repr()
|
|
1574
|
+
def __repr__(self):
|
|
1575
|
+
parts = []
|
|
1576
|
+
parts.append(f"markdown={self.markdown!r}")
|
|
1577
|
+
return (
|
|
1578
|
+
f"{self.__class__.__qualname__}("
|
|
1579
|
+
f"{', '.join(parts)}"
|
|
1580
|
+
f")"
|
|
1581
|
+
)
|
|
1582
|
+
|
|
1583
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1584
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1585
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1586
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1587
|
+
|
|
1588
|
+
return _process_dataclass
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
@_register(
|
|
1592
|
+
plan_repr=(
|
|
1593
|
+
"Plans(tup=(CopyPlan(fields=('state', 'chat_id')), EqPlan(fields=('state', 'chat_id')), FrozenPlan(fields=('sta"
|
|
1594
|
+
"te', 'chat_id'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('state', 'chat_id'), cache="
|
|
1595
|
+
"False), InitPlan(fields=(InitPlan.Field(name='state', annotation=OpRef(name='init.fields.0.annotation'), defau"
|
|
1596
|
+
"lt=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType."
|
|
1597
|
+
"INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='chat_id', annotation=OpRef(name='"
|
|
1598
|
+
"init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'), default_factory=None, init=True, over"
|
|
1599
|
+
"ride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', s"
|
|
1600
|
+
"td_params=(), kw_only_params=('state', 'chat_id'), frozen=True, slots=False, post_init_params=None, init_fns=("
|
|
1601
|
+
"), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='state', kw_only=True, fn=None), ReprPlan.Field(name"
|
|
1602
|
+
"='chat_id', kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1603
|
+
),
|
|
1604
|
+
plan_repr_sha1='76648be4a999973a966584081092052c01632d85',
|
|
1605
|
+
op_ref_idents=(
|
|
1606
|
+
'__dataclass__init__fields__0__annotation',
|
|
1607
|
+
'__dataclass__init__fields__0__default',
|
|
1608
|
+
'__dataclass__init__fields__1__annotation',
|
|
1609
|
+
'__dataclass__init__fields__1__default',
|
|
1610
|
+
),
|
|
1611
|
+
cls_names=(
|
|
1612
|
+
('ommlds.cli.main', 'StateConfig'),
|
|
1613
|
+
),
|
|
1614
|
+
)
|
|
1615
|
+
def _process_dataclass__76648be4a999973a966584081092052c01632d85():
|
|
1616
|
+
def _process_dataclass(
|
|
1617
|
+
*,
|
|
1618
|
+
__dataclass__cls,
|
|
1619
|
+
__dataclass__init__fields__0__annotation,
|
|
1620
|
+
__dataclass__init__fields__0__default,
|
|
1621
|
+
__dataclass__init__fields__1__annotation,
|
|
1622
|
+
__dataclass__init__fields__1__default,
|
|
1623
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1624
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1625
|
+
__dataclass__FnValidationError, # noqa
|
|
1626
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1627
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1628
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1629
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1630
|
+
__dataclass__None=None, # noqa
|
|
1631
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1632
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1633
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1634
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1635
|
+
__dataclass__property=property, # noqa
|
|
1636
|
+
):
|
|
1637
|
+
def __copy__(self):
|
|
1638
|
+
if self.__class__ is not __dataclass__cls:
|
|
1639
|
+
raise TypeError(self)
|
|
1640
|
+
return __dataclass__cls( # noqa
|
|
1641
|
+
state=self.state,
|
|
1642
|
+
chat_id=self.chat_id,
|
|
1643
|
+
)
|
|
1644
|
+
|
|
1645
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1646
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1647
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1648
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1649
|
+
|
|
1650
|
+
def __eq__(self, other):
|
|
1651
|
+
if self is other:
|
|
1652
|
+
return True
|
|
1653
|
+
if self.__class__ is not other.__class__:
|
|
1654
|
+
return NotImplemented
|
|
1655
|
+
return (
|
|
1656
|
+
self.state == other.state and
|
|
1657
|
+
self.chat_id == other.chat_id
|
|
1658
|
+
)
|
|
1659
|
+
|
|
1660
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1661
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1662
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1663
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1664
|
+
|
|
1665
|
+
__dataclass___setattr_frozen_fields = {
|
|
1666
|
+
'state',
|
|
1667
|
+
'chat_id',
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
def __setattr__(self, name, value):
|
|
1671
|
+
if (
|
|
1672
|
+
type(self) is __dataclass__cls
|
|
1673
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1674
|
+
):
|
|
1675
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1676
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1677
|
+
|
|
1678
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1679
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1680
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1681
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1682
|
+
|
|
1683
|
+
__dataclass___delattr_frozen_fields = {
|
|
1684
|
+
'state',
|
|
1685
|
+
'chat_id',
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
def __delattr__(self, name):
|
|
1689
|
+
if (
|
|
1690
|
+
type(self) is __dataclass__cls
|
|
1691
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1692
|
+
):
|
|
1693
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1694
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1695
|
+
|
|
1696
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1697
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1698
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1699
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1700
|
+
|
|
1701
|
+
def __hash__(self):
|
|
1702
|
+
return hash((
|
|
1703
|
+
self.state,
|
|
1704
|
+
self.chat_id,
|
|
1705
|
+
))
|
|
1706
|
+
|
|
1707
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1708
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1709
|
+
|
|
1710
|
+
def __init__(
|
|
1711
|
+
self,
|
|
1712
|
+
*,
|
|
1713
|
+
state: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1714
|
+
chat_id: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1715
|
+
) -> __dataclass__None:
|
|
1716
|
+
__dataclass__object_setattr(self, 'state', state)
|
|
1717
|
+
__dataclass__object_setattr(self, 'chat_id', chat_id)
|
|
1718
|
+
|
|
1719
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1720
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1721
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1722
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1723
|
+
|
|
1724
|
+
@__dataclass___recursive_repr()
|
|
1725
|
+
def __repr__(self):
|
|
1726
|
+
parts = []
|
|
1727
|
+
parts.append(f"state={self.state!r}")
|
|
1728
|
+
parts.append(f"chat_id={self.chat_id!r}")
|
|
1729
|
+
return (
|
|
1730
|
+
f"{self.__class__.__qualname__}("
|
|
1731
|
+
f"{', '.join(parts)}"
|
|
1732
|
+
f")"
|
|
1733
|
+
)
|
|
1734
|
+
|
|
1735
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1736
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1737
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1738
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1739
|
+
|
|
1740
|
+
return _process_dataclass
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
@_register(
|
|
1744
|
+
plan_repr=(
|
|
1745
|
+
"Plans(tup=(CopyPlan(fields=('enabled_tools', 'verbose')), EqPlan(fields=('enabled_tools', 'verbose')), FrozenP"
|
|
1746
|
+
"lan(fields=('enabled_tools', 'verbose'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('en"
|
|
1747
|
+
"abled_tools', 'verbose'), cache=False), InitPlan(fields=(InitPlan.Field(name='enabled_tools', annotation=OpRef"
|
|
1748
|
+
"(name='init.fields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=Tru"
|
|
1749
|
+
"e, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field"
|
|
1750
|
+
"(name='verbose', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'"
|
|
1751
|
+
"), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None,"
|
|
1752
|
+
" check_type=None)), self_param='self', std_params=(), kw_only_params=('enabled_tools', 'verbose'), frozen=True"
|
|
1753
|
+
", slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='ena"
|
|
1754
|
+
"bled_tools', kw_only=True, fn=None), ReprPlan.Field(name='verbose', kw_only=True, fn=None)), id=False, terse=F"
|
|
1755
|
+
"alse, default_fn=None)))"
|
|
1756
|
+
),
|
|
1757
|
+
plan_repr_sha1='aa22ff44ed3bf3e31aaa2841f61d3f7175c85c42',
|
|
1758
|
+
op_ref_idents=(
|
|
1759
|
+
'__dataclass__init__fields__0__annotation',
|
|
1760
|
+
'__dataclass__init__fields__0__default',
|
|
1761
|
+
'__dataclass__init__fields__1__annotation',
|
|
1762
|
+
'__dataclass__init__fields__1__default',
|
|
1763
|
+
),
|
|
1764
|
+
cls_names=(
|
|
1765
|
+
('ommlds.cli.main', 'ToolsConfig'),
|
|
1766
|
+
),
|
|
1767
|
+
)
|
|
1768
|
+
def _process_dataclass__aa22ff44ed3bf3e31aaa2841f61d3f7175c85c42():
|
|
1769
|
+
def _process_dataclass(
|
|
1770
|
+
*,
|
|
1771
|
+
__dataclass__cls,
|
|
1772
|
+
__dataclass__init__fields__0__annotation,
|
|
1773
|
+
__dataclass__init__fields__0__default,
|
|
1774
|
+
__dataclass__init__fields__1__annotation,
|
|
1775
|
+
__dataclass__init__fields__1__default,
|
|
1776
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1777
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1778
|
+
__dataclass__FnValidationError, # noqa
|
|
1779
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1780
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1781
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1782
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1783
|
+
__dataclass__None=None, # noqa
|
|
1784
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1785
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1786
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1787
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1788
|
+
__dataclass__property=property, # noqa
|
|
1789
|
+
):
|
|
1790
|
+
def __copy__(self):
|
|
1791
|
+
if self.__class__ is not __dataclass__cls:
|
|
1792
|
+
raise TypeError(self)
|
|
1793
|
+
return __dataclass__cls( # noqa
|
|
1794
|
+
enabled_tools=self.enabled_tools,
|
|
1795
|
+
verbose=self.verbose,
|
|
1796
|
+
)
|
|
1797
|
+
|
|
1798
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1799
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1800
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1801
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1802
|
+
|
|
1803
|
+
def __eq__(self, other):
|
|
1804
|
+
if self is other:
|
|
1805
|
+
return True
|
|
1806
|
+
if self.__class__ is not other.__class__:
|
|
1807
|
+
return NotImplemented
|
|
1808
|
+
return (
|
|
1809
|
+
self.enabled_tools == other.enabled_tools and
|
|
1810
|
+
self.verbose == other.verbose
|
|
1811
|
+
)
|
|
1812
|
+
|
|
1813
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1814
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1815
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1816
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1817
|
+
|
|
1818
|
+
__dataclass___setattr_frozen_fields = {
|
|
1819
|
+
'enabled_tools',
|
|
1820
|
+
'verbose',
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
def __setattr__(self, name, value):
|
|
1824
|
+
if (
|
|
1825
|
+
type(self) is __dataclass__cls
|
|
1826
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1827
|
+
):
|
|
1828
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1829
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1830
|
+
|
|
1831
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1832
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1833
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1834
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1835
|
+
|
|
1836
|
+
__dataclass___delattr_frozen_fields = {
|
|
1837
|
+
'enabled_tools',
|
|
1838
|
+
'verbose',
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
def __delattr__(self, name):
|
|
1842
|
+
if (
|
|
1843
|
+
type(self) is __dataclass__cls
|
|
1844
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1845
|
+
):
|
|
1846
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
1847
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
1848
|
+
|
|
1849
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
1850
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
1851
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
1852
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
1853
|
+
|
|
1854
|
+
def __hash__(self):
|
|
1855
|
+
return hash((
|
|
1856
|
+
self.enabled_tools,
|
|
1857
|
+
self.verbose,
|
|
1858
|
+
))
|
|
1859
|
+
|
|
1860
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
1861
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
1862
|
+
|
|
1863
|
+
def __init__(
|
|
1864
|
+
self,
|
|
1865
|
+
*,
|
|
1866
|
+
enabled_tools: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
1867
|
+
verbose: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
1868
|
+
) -> __dataclass__None:
|
|
1869
|
+
__dataclass__object_setattr(self, 'enabled_tools', enabled_tools)
|
|
1870
|
+
__dataclass__object_setattr(self, 'verbose', verbose)
|
|
1871
|
+
|
|
1872
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
1873
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
1874
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
1875
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
1876
|
+
|
|
1877
|
+
@__dataclass___recursive_repr()
|
|
1878
|
+
def __repr__(self):
|
|
1879
|
+
parts = []
|
|
1880
|
+
parts.append(f"enabled_tools={self.enabled_tools!r}")
|
|
1881
|
+
parts.append(f"verbose={self.verbose!r}")
|
|
1882
|
+
return (
|
|
1883
|
+
f"{self.__class__.__qualname__}("
|
|
1884
|
+
f"{', '.join(parts)}"
|
|
1885
|
+
f")"
|
|
1886
|
+
)
|
|
1887
|
+
|
|
1888
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
1889
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
1890
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
1891
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
1892
|
+
|
|
1893
|
+
return _process_dataclass
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
@_register(
|
|
1897
|
+
plan_repr=(
|
|
1898
|
+
"Plans(tup=(CopyPlan(fields=('initial_system_content', 'initial_user_content')), EqPlan(fields=('initial_system"
|
|
1899
|
+
"_content', 'initial_user_content')), FrozenPlan(fields=('initial_system_content', 'initial_user_content'), all"
|
|
1900
|
+
"ow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('initial_system_content', 'initial_user_content"
|
|
1901
|
+
"'), cache=False), InitPlan(fields=(InitPlan.Field(name='initial_system_content', annotation=OpRef(name='init.f"
|
|
1902
|
+
"ields.0.annotation'), default=OpRef(name='init.fields.0.default'), default_factory=None, init=True, override=F"
|
|
1903
|
+
"alse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='initia"
|
|
1904
|
+
"l_user_content', annotation=OpRef(name='init.fields.1.annotation'), default=OpRef(name='init.fields.1.default'"
|
|
1905
|
+
"), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None,"
|
|
1906
|
+
" check_type=None)), self_param='self', std_params=(), kw_only_params=('initial_system_content', 'initial_user_"
|
|
1907
|
+
"content'), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(Re"
|
|
1908
|
+
"prPlan.Field(name='initial_system_content', kw_only=True, fn=None), ReprPlan.Field(name='initial_user_content'"
|
|
1909
|
+
", kw_only=True, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
1910
|
+
),
|
|
1911
|
+
plan_repr_sha1='55eb2b38eb7d4e32f3a9306577040632e1c376fb',
|
|
1912
|
+
op_ref_idents=(
|
|
1913
|
+
'__dataclass__init__fields__0__annotation',
|
|
1914
|
+
'__dataclass__init__fields__0__default',
|
|
1915
|
+
'__dataclass__init__fields__1__annotation',
|
|
1916
|
+
'__dataclass__init__fields__1__default',
|
|
1917
|
+
),
|
|
1918
|
+
cls_names=(
|
|
1919
|
+
('ommlds.cli.main', 'UserConfig'),
|
|
1920
|
+
),
|
|
1921
|
+
)
|
|
1922
|
+
def _process_dataclass__55eb2b38eb7d4e32f3a9306577040632e1c376fb():
|
|
1923
|
+
def _process_dataclass(
|
|
1924
|
+
*,
|
|
1925
|
+
__dataclass__cls,
|
|
1926
|
+
__dataclass__init__fields__0__annotation,
|
|
1927
|
+
__dataclass__init__fields__0__default,
|
|
1928
|
+
__dataclass__init__fields__1__annotation,
|
|
1929
|
+
__dataclass__init__fields__1__default,
|
|
1930
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
1931
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
1932
|
+
__dataclass__FnValidationError, # noqa
|
|
1933
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
1934
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
1935
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
1936
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
1937
|
+
__dataclass__None=None, # noqa
|
|
1938
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
1939
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
1940
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
1941
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
1942
|
+
__dataclass__property=property, # noqa
|
|
1943
|
+
):
|
|
1944
|
+
def __copy__(self):
|
|
1945
|
+
if self.__class__ is not __dataclass__cls:
|
|
1946
|
+
raise TypeError(self)
|
|
1947
|
+
return __dataclass__cls( # noqa
|
|
1948
|
+
initial_system_content=self.initial_system_content,
|
|
1949
|
+
initial_user_content=self.initial_user_content,
|
|
1950
|
+
)
|
|
1951
|
+
|
|
1952
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
1953
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
1954
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
1955
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
1956
|
+
|
|
1957
|
+
def __eq__(self, other):
|
|
1958
|
+
if self is other:
|
|
1959
|
+
return True
|
|
1960
|
+
if self.__class__ is not other.__class__:
|
|
1961
|
+
return NotImplemented
|
|
1962
|
+
return (
|
|
1963
|
+
self.initial_system_content == other.initial_system_content and
|
|
1964
|
+
self.initial_user_content == other.initial_user_content
|
|
1965
|
+
)
|
|
1966
|
+
|
|
1967
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
1968
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
1969
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
1970
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
1971
|
+
|
|
1972
|
+
__dataclass___setattr_frozen_fields = {
|
|
1973
|
+
'initial_system_content',
|
|
1974
|
+
'initial_user_content',
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
def __setattr__(self, name, value):
|
|
1978
|
+
if (
|
|
1979
|
+
type(self) is __dataclass__cls
|
|
1980
|
+
or name in __dataclass___setattr_frozen_fields
|
|
1981
|
+
):
|
|
1982
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
1983
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
1984
|
+
|
|
1985
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
1986
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
1987
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
1988
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
1989
|
+
|
|
1990
|
+
__dataclass___delattr_frozen_fields = {
|
|
1991
|
+
'initial_system_content',
|
|
1992
|
+
'initial_user_content',
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
def __delattr__(self, name):
|
|
1996
|
+
if (
|
|
1997
|
+
type(self) is __dataclass__cls
|
|
1998
|
+
or name in __dataclass___delattr_frozen_fields
|
|
1999
|
+
):
|
|
2000
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2001
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2002
|
+
|
|
2003
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2004
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2005
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2006
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2007
|
+
|
|
2008
|
+
def __hash__(self):
|
|
2009
|
+
return hash((
|
|
2010
|
+
self.initial_system_content,
|
|
2011
|
+
self.initial_user_content,
|
|
2012
|
+
))
|
|
2013
|
+
|
|
2014
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2015
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2016
|
+
|
|
2017
|
+
def __init__(
|
|
2018
|
+
self,
|
|
2019
|
+
*,
|
|
2020
|
+
initial_system_content: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
2021
|
+
initial_user_content: __dataclass__init__fields__1__annotation = __dataclass__init__fields__1__default,
|
|
2022
|
+
) -> __dataclass__None:
|
|
2023
|
+
__dataclass__object_setattr(self, 'initial_system_content', initial_system_content)
|
|
2024
|
+
__dataclass__object_setattr(self, 'initial_user_content', initial_user_content)
|
|
2025
|
+
|
|
2026
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2027
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
2028
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2029
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
2030
|
+
|
|
2031
|
+
@__dataclass___recursive_repr()
|
|
2032
|
+
def __repr__(self):
|
|
2033
|
+
parts = []
|
|
2034
|
+
parts.append(f"initial_system_content={self.initial_system_content!r}")
|
|
2035
|
+
parts.append(f"initial_user_content={self.initial_user_content!r}")
|
|
2036
|
+
return (
|
|
2037
|
+
f"{self.__class__.__qualname__}("
|
|
2038
|
+
f"{', '.join(parts)}"
|
|
2039
|
+
f")"
|
|
2040
|
+
)
|
|
2041
|
+
|
|
2042
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2043
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
2044
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2045
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2046
|
+
|
|
2047
|
+
return _process_dataclass
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
@_register(
|
|
2051
|
+
plan_repr=(
|
|
2052
|
+
"Plans(tup=(CopyPlan(fields=('delta',)), EqPlan(fields=('delta',)), FrozenPlan(fields=('delta',), allow_dynamic"
|
|
2053
|
+
"_dunder_attrs=False), HashPlan(action='add', fields=('delta',), cache=False), InitPlan(fields=(InitPlan.Field("
|
|
2054
|
+
"name='delta', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True"
|
|
2055
|
+
", override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='s"
|
|
2056
|
+
"elf', std_params=('delta',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), "
|
|
2057
|
+
"validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='delta', kw_only=False, fn=None),), id=False, terse=Fal"
|
|
2058
|
+
"se, default_fn=None)))"
|
|
2059
|
+
),
|
|
2060
|
+
plan_repr_sha1='aff24d9a92d53ba94dacb7fb303b9eb4ebd0763f',
|
|
2061
|
+
op_ref_idents=(
|
|
2062
|
+
'__dataclass__init__fields__0__annotation',
|
|
2063
|
+
),
|
|
2064
|
+
cls_names=(
|
|
2065
|
+
('ommlds.cli.sessions.chat.drivers.impl', 'AiDeltaChatEvent'),
|
|
2066
|
+
),
|
|
2067
|
+
)
|
|
2068
|
+
def _process_dataclass__aff24d9a92d53ba94dacb7fb303b9eb4ebd0763f():
|
|
2069
|
+
def _process_dataclass(
|
|
2070
|
+
*,
|
|
2071
|
+
__dataclass__cls,
|
|
2072
|
+
__dataclass__init__fields__0__annotation,
|
|
2073
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
2074
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
2075
|
+
__dataclass__FnValidationError, # noqa
|
|
2076
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2077
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2078
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2079
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2080
|
+
__dataclass__None=None, # noqa
|
|
2081
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
2082
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2083
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
2084
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2085
|
+
__dataclass__property=property, # noqa
|
|
2086
|
+
):
|
|
2087
|
+
def __copy__(self):
|
|
2088
|
+
if self.__class__ is not __dataclass__cls:
|
|
2089
|
+
raise TypeError(self)
|
|
2090
|
+
return __dataclass__cls( # noqa
|
|
2091
|
+
delta=self.delta,
|
|
2092
|
+
)
|
|
2093
|
+
|
|
2094
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2095
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
2096
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2097
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2098
|
+
|
|
2099
|
+
def __eq__(self, other):
|
|
2100
|
+
if self is other:
|
|
2101
|
+
return True
|
|
2102
|
+
if self.__class__ is not other.__class__:
|
|
2103
|
+
return NotImplemented
|
|
2104
|
+
return (
|
|
2105
|
+
self.delta == other.delta
|
|
2106
|
+
)
|
|
2107
|
+
|
|
2108
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2109
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
2110
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2111
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2112
|
+
|
|
2113
|
+
__dataclass___setattr_frozen_fields = {
|
|
2114
|
+
'delta',
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
def __setattr__(self, name, value):
|
|
2118
|
+
if (
|
|
2119
|
+
type(self) is __dataclass__cls
|
|
2120
|
+
or name in __dataclass___setattr_frozen_fields
|
|
2121
|
+
):
|
|
2122
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2123
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2124
|
+
|
|
2125
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2126
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2127
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2128
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2129
|
+
|
|
2130
|
+
__dataclass___delattr_frozen_fields = {
|
|
2131
|
+
'delta',
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
def __delattr__(self, name):
|
|
2135
|
+
if (
|
|
2136
|
+
type(self) is __dataclass__cls
|
|
2137
|
+
or name in __dataclass___delattr_frozen_fields
|
|
2138
|
+
):
|
|
2139
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2140
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2141
|
+
|
|
2142
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2143
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2144
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2145
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2146
|
+
|
|
2147
|
+
def __hash__(self):
|
|
2148
|
+
return hash((
|
|
2149
|
+
self.delta,
|
|
2150
|
+
))
|
|
2151
|
+
|
|
2152
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2153
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2154
|
+
|
|
2155
|
+
def __init__(
|
|
2156
|
+
self,
|
|
2157
|
+
delta: __dataclass__init__fields__0__annotation,
|
|
2158
|
+
) -> __dataclass__None:
|
|
2159
|
+
__dataclass__object_setattr(self, 'delta', delta)
|
|
2160
|
+
|
|
2161
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2162
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
2163
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2164
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
2165
|
+
|
|
2166
|
+
@__dataclass___recursive_repr()
|
|
2167
|
+
def __repr__(self):
|
|
2168
|
+
parts = []
|
|
2169
|
+
parts.append(f"delta={self.delta!r}")
|
|
2170
|
+
return (
|
|
2171
|
+
f"{self.__class__.__qualname__}("
|
|
2172
|
+
f"{', '.join(parts)}"
|
|
2173
|
+
f")"
|
|
2174
|
+
)
|
|
2175
|
+
|
|
2176
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2177
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
2178
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2179
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2180
|
+
|
|
2181
|
+
return _process_dataclass
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
@_register(
|
|
2185
|
+
plan_repr=(
|
|
2186
|
+
"Plans(tup=(CopyPlan(fields=('chat',)), EqPlan(fields=('chat',)), FrozenPlan(fields=('chat',), allow_dynamic_du"
|
|
2187
|
+
"nder_attrs=False), HashPlan(action='add', fields=('chat',), cache=False), InitPlan(fields=(InitPlan.Field(name"
|
|
2188
|
+
"='chat', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
|
|
2189
|
+
"rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self',"
|
|
2190
|
+
" std_params=('chat',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), valida"
|
|
2191
|
+
"te_fns=()), ReprPlan(fields=(ReprPlan.Field(name='chat', kw_only=False, fn=None),), id=False, terse=False, def"
|
|
2192
|
+
"ault_fn=None)))"
|
|
2193
|
+
),
|
|
2194
|
+
plan_repr_sha1='b211fde543b7c2c533cdcf9f21b47d2f7f76e5c9',
|
|
2195
|
+
op_ref_idents=(
|
|
2196
|
+
'__dataclass__init__fields__0__annotation',
|
|
2197
|
+
),
|
|
2198
|
+
cls_names=(
|
|
2199
|
+
('ommlds.cli.sessions.chat.drivers.impl', 'AiMessagesChatEvent'),
|
|
2200
|
+
('ommlds.cli.sessions.chat.drivers.impl', 'UserMessagesChatEvent'),
|
|
2201
|
+
),
|
|
2202
|
+
)
|
|
2203
|
+
def _process_dataclass__b211fde543b7c2c533cdcf9f21b47d2f7f76e5c9():
|
|
2204
|
+
def _process_dataclass(
|
|
2205
|
+
*,
|
|
2206
|
+
__dataclass__cls,
|
|
2207
|
+
__dataclass__init__fields__0__annotation,
|
|
2208
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
2209
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
2210
|
+
__dataclass__FnValidationError, # noqa
|
|
2211
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2212
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2213
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2214
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2215
|
+
__dataclass__None=None, # noqa
|
|
2216
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
2217
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2218
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
2219
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2220
|
+
__dataclass__property=property, # noqa
|
|
2221
|
+
):
|
|
2222
|
+
def __copy__(self):
|
|
2223
|
+
if self.__class__ is not __dataclass__cls:
|
|
2224
|
+
raise TypeError(self)
|
|
2225
|
+
return __dataclass__cls( # noqa
|
|
2226
|
+
chat=self.chat,
|
|
2227
|
+
)
|
|
2228
|
+
|
|
2229
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2230
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
2231
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2232
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2233
|
+
|
|
2234
|
+
def __eq__(self, other):
|
|
2235
|
+
if self is other:
|
|
2236
|
+
return True
|
|
2237
|
+
if self.__class__ is not other.__class__:
|
|
2238
|
+
return NotImplemented
|
|
2239
|
+
return (
|
|
2240
|
+
self.chat == other.chat
|
|
2241
|
+
)
|
|
2242
|
+
|
|
2243
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2244
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
2245
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2246
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2247
|
+
|
|
2248
|
+
__dataclass___setattr_frozen_fields = {
|
|
2249
|
+
'chat',
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
def __setattr__(self, name, value):
|
|
2253
|
+
if (
|
|
2254
|
+
type(self) is __dataclass__cls
|
|
2255
|
+
or name in __dataclass___setattr_frozen_fields
|
|
2256
|
+
):
|
|
2257
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2258
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2259
|
+
|
|
2260
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2261
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2262
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2263
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2264
|
+
|
|
2265
|
+
__dataclass___delattr_frozen_fields = {
|
|
2266
|
+
'chat',
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
def __delattr__(self, name):
|
|
2270
|
+
if (
|
|
2271
|
+
type(self) is __dataclass__cls
|
|
2272
|
+
or name in __dataclass___delattr_frozen_fields
|
|
2273
|
+
):
|
|
2274
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2275
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2276
|
+
|
|
2277
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2278
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2279
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2280
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2281
|
+
|
|
2282
|
+
def __hash__(self):
|
|
2283
|
+
return hash((
|
|
2284
|
+
self.chat,
|
|
2285
|
+
))
|
|
2286
|
+
|
|
2287
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2288
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2289
|
+
|
|
2290
|
+
def __init__(
|
|
2291
|
+
self,
|
|
2292
|
+
chat: __dataclass__init__fields__0__annotation,
|
|
2293
|
+
) -> __dataclass__None:
|
|
2294
|
+
__dataclass__object_setattr(self, 'chat', chat)
|
|
2295
|
+
|
|
2296
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2297
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
2298
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2299
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
2300
|
+
|
|
2301
|
+
@__dataclass___recursive_repr()
|
|
2302
|
+
def __repr__(self):
|
|
2303
|
+
parts = []
|
|
2304
|
+
parts.append(f"chat={self.chat!r}")
|
|
2305
|
+
return (
|
|
2306
|
+
f"{self.__class__.__qualname__}("
|
|
2307
|
+
f"{', '.join(parts)}"
|
|
2308
|
+
f")"
|
|
2309
|
+
)
|
|
2310
|
+
|
|
2311
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2312
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
2313
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2314
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2315
|
+
|
|
2316
|
+
return _process_dataclass
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
@_register(
|
|
2320
|
+
plan_repr=(
|
|
2321
|
+
"Plans(tup=(CopyPlan(fields=('v',)), EqPlan(fields=('v',)), FrozenPlan(fields=('v',), allow_dynamic_dunder_attr"
|
|
2322
|
+
"s=False), HashPlan(action='add', fields=('v',), cache=False), InitPlan(fields=(InitPlan.Field(name='v', annota"
|
|
2323
|
+
"tion=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, fi"
|
|
2324
|
+
"eld_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self', std_params=('v"
|
|
2325
|
+
"',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPl"
|
|
2326
|
+
"an(fields=(ReprPlan.Field(name='v', kw_only=False, fn=None),), id=False, terse=True, default_fn=None)))"
|
|
2327
|
+
),
|
|
2328
|
+
plan_repr_sha1='3576262424b3ef8ff20966fa3744e5dba9a2ae7d',
|
|
2329
|
+
op_ref_idents=(
|
|
2330
|
+
'__dataclass__init__fields__0__annotation',
|
|
2331
|
+
),
|
|
2332
|
+
cls_names=(
|
|
2333
|
+
('ommlds.cli.sessions.chat.drivers.impl', 'ChatDriverId'),
|
|
2334
|
+
('ommlds.cli.sessions.chat.drivers.impl', 'ChatId'),
|
|
2335
|
+
('ommlds.cli.sessions.chat.drivers.state.ids', 'ChatStateStorageKey'),
|
|
2336
|
+
),
|
|
2337
|
+
)
|
|
2338
|
+
def _process_dataclass__3576262424b3ef8ff20966fa3744e5dba9a2ae7d():
|
|
2339
|
+
def _process_dataclass(
|
|
2340
|
+
*,
|
|
2341
|
+
__dataclass__cls,
|
|
2342
|
+
__dataclass__init__fields__0__annotation,
|
|
2343
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
2344
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
2345
|
+
__dataclass__FnValidationError, # noqa
|
|
2346
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2347
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2348
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2349
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2350
|
+
__dataclass__None=None, # noqa
|
|
2351
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
2352
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2353
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
2354
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2355
|
+
__dataclass__property=property, # noqa
|
|
2356
|
+
):
|
|
2357
|
+
def __copy__(self):
|
|
2358
|
+
if self.__class__ is not __dataclass__cls:
|
|
2359
|
+
raise TypeError(self)
|
|
2360
|
+
return __dataclass__cls( # noqa
|
|
2361
|
+
v=self.v,
|
|
2362
|
+
)
|
|
2363
|
+
|
|
2364
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2365
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
2366
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2367
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2368
|
+
|
|
2369
|
+
def __eq__(self, other):
|
|
2370
|
+
if self is other:
|
|
2371
|
+
return True
|
|
2372
|
+
if self.__class__ is not other.__class__:
|
|
2373
|
+
return NotImplemented
|
|
2374
|
+
return (
|
|
2375
|
+
self.v == other.v
|
|
2376
|
+
)
|
|
2377
|
+
|
|
2378
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2379
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
2380
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2381
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2382
|
+
|
|
2383
|
+
__dataclass___setattr_frozen_fields = {
|
|
2384
|
+
'v',
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
def __setattr__(self, name, value):
|
|
2388
|
+
if (
|
|
2389
|
+
type(self) is __dataclass__cls
|
|
2390
|
+
or name in __dataclass___setattr_frozen_fields
|
|
2391
|
+
):
|
|
2392
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2393
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2394
|
+
|
|
2395
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2396
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2397
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2398
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2399
|
+
|
|
2400
|
+
__dataclass___delattr_frozen_fields = {
|
|
2401
|
+
'v',
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
def __delattr__(self, name):
|
|
2405
|
+
if (
|
|
2406
|
+
type(self) is __dataclass__cls
|
|
2407
|
+
or name in __dataclass___delattr_frozen_fields
|
|
2408
|
+
):
|
|
2409
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2410
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2411
|
+
|
|
2412
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2413
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2414
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2415
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2416
|
+
|
|
2417
|
+
def __hash__(self):
|
|
2418
|
+
return hash((
|
|
2419
|
+
self.v,
|
|
2420
|
+
))
|
|
2421
|
+
|
|
2422
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2423
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2424
|
+
|
|
2425
|
+
def __init__(
|
|
2426
|
+
self,
|
|
2427
|
+
v: __dataclass__init__fields__0__annotation,
|
|
2428
|
+
) -> __dataclass__None:
|
|
2429
|
+
__dataclass__object_setattr(self, 'v', v)
|
|
2430
|
+
|
|
2431
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2432
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
2433
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2434
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
2435
|
+
|
|
2436
|
+
@__dataclass___recursive_repr()
|
|
2437
|
+
def __repr__(self):
|
|
2438
|
+
parts = []
|
|
2439
|
+
parts.append(f"{self.v!r}")
|
|
2440
|
+
return (
|
|
2441
|
+
f"{self.__class__.__qualname__}("
|
|
2442
|
+
f"{', '.join(parts)}"
|
|
2443
|
+
f")"
|
|
2444
|
+
)
|
|
2445
|
+
|
|
2446
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2447
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
2448
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2449
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2450
|
+
|
|
2451
|
+
return _process_dataclass
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
@_register(
|
|
2455
|
+
plan_repr=(
|
|
2456
|
+
"Plans(tup=(CopyPlan(fields=('phase', 'fn')), EqPlan(fields=('phase', 'fn')), FrozenPlan(fields=('phase', 'fn')"
|
|
2457
|
+
", allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('phase', 'fn'), cache=False), InitPlan(fie"
|
|
2458
|
+
"lds=(InitPlan.Field(name='phase', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_fac"
|
|
2459
|
+
"tory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=OpRef(name='init.fi"
|
|
2460
|
+
"elds.0.validate'), check_type=None), InitPlan.Field(name='fn', annotation=OpRef(name='init.fields.1.annotation"
|
|
2461
|
+
"'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None,"
|
|
2462
|
+
" validate=None, check_type=None)), self_param='self', std_params=('phase', 'fn'), kw_only_params=(), frozen=Tr"
|
|
2463
|
+
"ue, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='p"
|
|
2464
|
+
"hase', kw_only=False, fn=None), ReprPlan.Field(name='fn', kw_only=False, fn=None)), id=False, terse=False, def"
|
|
2465
|
+
"ault_fn=None)))"
|
|
2466
|
+
),
|
|
2467
|
+
plan_repr_sha1='927265170439340895560333250bc087fa726eff',
|
|
2468
|
+
op_ref_idents=(
|
|
2469
|
+
'__dataclass__init__fields__0__annotation',
|
|
2470
|
+
'__dataclass__init__fields__0__validate',
|
|
2471
|
+
'__dataclass__init__fields__1__annotation',
|
|
2472
|
+
),
|
|
2473
|
+
cls_names=(
|
|
2474
|
+
('ommlds.cli.sessions.chat.drivers.impl', 'ChatPhaseCallback'),
|
|
2475
|
+
),
|
|
2476
|
+
)
|
|
2477
|
+
def _process_dataclass__927265170439340895560333250bc087fa726eff():
|
|
2478
|
+
def _process_dataclass(
|
|
2479
|
+
*,
|
|
2480
|
+
__dataclass__cls,
|
|
2481
|
+
__dataclass__init__fields__0__annotation,
|
|
2482
|
+
__dataclass__init__fields__0__validate,
|
|
2483
|
+
__dataclass__init__fields__1__annotation,
|
|
2484
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
2485
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
2486
|
+
__dataclass__FnValidationError, # noqa
|
|
2487
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2488
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2489
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2490
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2491
|
+
__dataclass__None=None, # noqa
|
|
2492
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
2493
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2494
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
2495
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2496
|
+
__dataclass__property=property, # noqa
|
|
2497
|
+
):
|
|
2498
|
+
def __copy__(self):
|
|
2499
|
+
if self.__class__ is not __dataclass__cls:
|
|
2500
|
+
raise TypeError(self)
|
|
2501
|
+
return __dataclass__cls( # noqa
|
|
2502
|
+
phase=self.phase,
|
|
2503
|
+
fn=self.fn,
|
|
2504
|
+
)
|
|
2505
|
+
|
|
2506
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2507
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
2508
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2509
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2510
|
+
|
|
2511
|
+
def __eq__(self, other):
|
|
2512
|
+
if self is other:
|
|
2513
|
+
return True
|
|
2514
|
+
if self.__class__ is not other.__class__:
|
|
2515
|
+
return NotImplemented
|
|
2516
|
+
return (
|
|
2517
|
+
self.phase == other.phase and
|
|
2518
|
+
self.fn == other.fn
|
|
2519
|
+
)
|
|
2520
|
+
|
|
2521
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2522
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
2523
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2524
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2525
|
+
|
|
2526
|
+
__dataclass___setattr_frozen_fields = {
|
|
2527
|
+
'phase',
|
|
2528
|
+
'fn',
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
def __setattr__(self, name, value):
|
|
2532
|
+
if (
|
|
2533
|
+
type(self) is __dataclass__cls
|
|
2534
|
+
or name in __dataclass___setattr_frozen_fields
|
|
2535
|
+
):
|
|
2536
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2537
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2538
|
+
|
|
2539
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2540
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2541
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2542
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2543
|
+
|
|
2544
|
+
__dataclass___delattr_frozen_fields = {
|
|
2545
|
+
'phase',
|
|
2546
|
+
'fn',
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
def __delattr__(self, name):
|
|
2550
|
+
if (
|
|
2551
|
+
type(self) is __dataclass__cls
|
|
2552
|
+
or name in __dataclass___delattr_frozen_fields
|
|
2553
|
+
):
|
|
2554
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2555
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2556
|
+
|
|
2557
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2558
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2559
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2560
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2561
|
+
|
|
2562
|
+
def __hash__(self):
|
|
2563
|
+
return hash((
|
|
2564
|
+
self.phase,
|
|
2565
|
+
self.fn,
|
|
2566
|
+
))
|
|
2567
|
+
|
|
2568
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2569
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2570
|
+
|
|
2571
|
+
def __init__(
|
|
2572
|
+
self,
|
|
2573
|
+
phase: __dataclass__init__fields__0__annotation,
|
|
2574
|
+
fn: __dataclass__init__fields__1__annotation,
|
|
2575
|
+
) -> __dataclass__None:
|
|
2576
|
+
if not __dataclass__init__fields__0__validate(phase):
|
|
2577
|
+
raise __dataclass__FieldFnValidationError(
|
|
2578
|
+
obj=self,
|
|
2579
|
+
fn=__dataclass__init__fields__0__validate,
|
|
2580
|
+
field='phase',
|
|
2581
|
+
value=phase,
|
|
2582
|
+
)
|
|
2583
|
+
__dataclass__object_setattr(self, 'phase', phase)
|
|
2584
|
+
__dataclass__object_setattr(self, 'fn', fn)
|
|
2585
|
+
|
|
2586
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2587
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
2588
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2589
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
2590
|
+
|
|
2591
|
+
@__dataclass___recursive_repr()
|
|
2592
|
+
def __repr__(self):
|
|
2593
|
+
parts = []
|
|
2594
|
+
parts.append(f"phase={self.phase!r}")
|
|
2595
|
+
parts.append(f"fn={self.fn!r}")
|
|
2596
|
+
return (
|
|
2597
|
+
f"{self.__class__.__qualname__}("
|
|
2598
|
+
f"{', '.join(parts)}"
|
|
2599
|
+
f")"
|
|
2600
|
+
)
|
|
2601
|
+
|
|
2602
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2603
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
2604
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2605
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2606
|
+
|
|
2607
|
+
return _process_dataclass
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
@_register(
|
|
2611
|
+
plan_repr=(
|
|
2612
|
+
"Plans(tup=(CopyPlan(fields=('name', 'created_at', 'updated_at', 'chat')), EqPlan(fields=('name', 'created_at',"
|
|
2613
|
+
" 'updated_at', 'chat')), FrozenPlan(fields=('name', 'created_at', 'updated_at', 'chat'), allow_dynamic_dunder_"
|
|
2614
|
+
"attrs=False), HashPlan(action='add', fields=('name', 'created_at', 'updated_at', 'chat'), cache=False), InitPl"
|
|
2615
|
+
"an(fields=(InitPlan.Field(name='name', annotation=OpRef(name='init.fields.0.annotation'), default=OpRef(name='"
|
|
2616
|
+
"init.fields.0.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerc"
|
|
2617
|
+
"e=None, validate=None, check_type=None), InitPlan.Field(name='created_at', annotation=OpRef(name='init.fields."
|
|
2618
|
+
"1.annotation'), default=None, default_factory=OpRef(name='init.fields.1.default_factory'), init=True, override"
|
|
2619
|
+
"=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='upda"
|
|
2620
|
+
"ted_at', annotation=OpRef(name='init.fields.2.annotation'), default=None, default_factory=OpRef(name='init.fie"
|
|
2621
|
+
"lds.2.default_factory'), init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None,"
|
|
2622
|
+
" check_type=None), InitPlan.Field(name='chat', annotation=OpRef(name='init.fields.3.annotation'), default=OpRe"
|
|
2623
|
+
"f(name='init.fields.3.default'), default_factory=None, init=True, override=False, field_type=FieldType.INSTANC"
|
|
2624
|
+
"E, coerce=None, validate=None, check_type=None)), self_param='self', std_params=('name', 'created_at', 'update"
|
|
2625
|
+
"d_at', 'chat'), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns="
|
|
2626
|
+
"()), ReprPlan(fields=(ReprPlan.Field(name='name', kw_only=False, fn=None), ReprPlan.Field(name='created_at', k"
|
|
2627
|
+
"w_only=False, fn=None), ReprPlan.Field(name='updated_at', kw_only=False, fn=None), ReprPlan.Field(name='chat',"
|
|
2628
|
+
" kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2629
|
+
),
|
|
2630
|
+
plan_repr_sha1='9f7e26a87dd163b610f38caa1ce9b3c6356e632a',
|
|
2631
|
+
op_ref_idents=(
|
|
2632
|
+
'__dataclass__init__fields__0__annotation',
|
|
2633
|
+
'__dataclass__init__fields__0__default',
|
|
2634
|
+
'__dataclass__init__fields__1__annotation',
|
|
2635
|
+
'__dataclass__init__fields__1__default_factory',
|
|
2636
|
+
'__dataclass__init__fields__2__annotation',
|
|
2637
|
+
'__dataclass__init__fields__2__default_factory',
|
|
2638
|
+
'__dataclass__init__fields__3__annotation',
|
|
2639
|
+
'__dataclass__init__fields__3__default',
|
|
2640
|
+
),
|
|
2641
|
+
cls_names=(
|
|
2642
|
+
('ommlds.cli.sessions.chat.drivers.impl', 'ChatState'),
|
|
2643
|
+
),
|
|
2644
|
+
)
|
|
2645
|
+
def _process_dataclass__9f7e26a87dd163b610f38caa1ce9b3c6356e632a():
|
|
2646
|
+
def _process_dataclass(
|
|
2647
|
+
*,
|
|
2648
|
+
__dataclass__cls,
|
|
2649
|
+
__dataclass__init__fields__0__annotation,
|
|
2650
|
+
__dataclass__init__fields__0__default,
|
|
2651
|
+
__dataclass__init__fields__1__annotation,
|
|
2652
|
+
__dataclass__init__fields__1__default_factory,
|
|
2653
|
+
__dataclass__init__fields__2__annotation,
|
|
2654
|
+
__dataclass__init__fields__2__default_factory,
|
|
2655
|
+
__dataclass__init__fields__3__annotation,
|
|
2656
|
+
__dataclass__init__fields__3__default,
|
|
2657
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
2658
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
2659
|
+
__dataclass__FnValidationError, # noqa
|
|
2660
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2661
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2662
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2663
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2664
|
+
__dataclass__None=None, # noqa
|
|
2665
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
2666
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2667
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
2668
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2669
|
+
__dataclass__property=property, # noqa
|
|
2670
|
+
):
|
|
2671
|
+
def __copy__(self):
|
|
2672
|
+
if self.__class__ is not __dataclass__cls:
|
|
2673
|
+
raise TypeError(self)
|
|
2674
|
+
return __dataclass__cls( # noqa
|
|
2675
|
+
name=self.name,
|
|
2676
|
+
created_at=self.created_at,
|
|
2677
|
+
updated_at=self.updated_at,
|
|
2678
|
+
chat=self.chat,
|
|
2679
|
+
)
|
|
2680
|
+
|
|
2681
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2682
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
2683
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2684
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2685
|
+
|
|
2686
|
+
def __eq__(self, other):
|
|
2687
|
+
if self is other:
|
|
2688
|
+
return True
|
|
2689
|
+
if self.__class__ is not other.__class__:
|
|
2690
|
+
return NotImplemented
|
|
2691
|
+
return (
|
|
2692
|
+
self.name == other.name and
|
|
2693
|
+
self.created_at == other.created_at and
|
|
2694
|
+
self.updated_at == other.updated_at and
|
|
2695
|
+
self.chat == other.chat
|
|
2696
|
+
)
|
|
2697
|
+
|
|
2698
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2699
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
2700
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2701
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2702
|
+
|
|
2703
|
+
__dataclass___setattr_frozen_fields = {
|
|
2704
|
+
'name',
|
|
2705
|
+
'created_at',
|
|
2706
|
+
'updated_at',
|
|
2707
|
+
'chat',
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
def __setattr__(self, name, value):
|
|
2711
|
+
if (
|
|
2712
|
+
type(self) is __dataclass__cls
|
|
2713
|
+
or name in __dataclass___setattr_frozen_fields
|
|
2714
|
+
):
|
|
2715
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2716
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2717
|
+
|
|
2718
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2719
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2720
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2721
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2722
|
+
|
|
2723
|
+
__dataclass___delattr_frozen_fields = {
|
|
2724
|
+
'name',
|
|
2725
|
+
'created_at',
|
|
2726
|
+
'updated_at',
|
|
2727
|
+
'chat',
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
def __delattr__(self, name):
|
|
2731
|
+
if (
|
|
2732
|
+
type(self) is __dataclass__cls
|
|
2733
|
+
or name in __dataclass___delattr_frozen_fields
|
|
2734
|
+
):
|
|
2735
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2736
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2737
|
+
|
|
2738
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2739
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2740
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2741
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2742
|
+
|
|
2743
|
+
def __hash__(self):
|
|
2744
|
+
return hash((
|
|
2745
|
+
self.name,
|
|
2746
|
+
self.created_at,
|
|
2747
|
+
self.updated_at,
|
|
2748
|
+
self.chat,
|
|
2749
|
+
))
|
|
2750
|
+
|
|
2751
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2752
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2753
|
+
|
|
2754
|
+
def __init__(
|
|
2755
|
+
self,
|
|
2756
|
+
name: __dataclass__init__fields__0__annotation = __dataclass__init__fields__0__default,
|
|
2757
|
+
created_at: __dataclass__init__fields__1__annotation = __dataclass__HAS_DEFAULT_FACTORY,
|
|
2758
|
+
updated_at: __dataclass__init__fields__2__annotation = __dataclass__HAS_DEFAULT_FACTORY,
|
|
2759
|
+
chat: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
2760
|
+
) -> __dataclass__None:
|
|
2761
|
+
if created_at is __dataclass__HAS_DEFAULT_FACTORY:
|
|
2762
|
+
created_at = __dataclass__init__fields__1__default_factory()
|
|
2763
|
+
if updated_at is __dataclass__HAS_DEFAULT_FACTORY:
|
|
2764
|
+
updated_at = __dataclass__init__fields__2__default_factory()
|
|
2765
|
+
__dataclass__object_setattr(self, 'name', name)
|
|
2766
|
+
__dataclass__object_setattr(self, 'created_at', created_at)
|
|
2767
|
+
__dataclass__object_setattr(self, 'updated_at', updated_at)
|
|
2768
|
+
__dataclass__object_setattr(self, 'chat', chat)
|
|
2769
|
+
|
|
2770
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2771
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
2772
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2773
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
2774
|
+
|
|
2775
|
+
@__dataclass___recursive_repr()
|
|
2776
|
+
def __repr__(self):
|
|
2777
|
+
parts = []
|
|
2778
|
+
parts.append(f"name={self.name!r}")
|
|
2779
|
+
parts.append(f"created_at={self.created_at!r}")
|
|
2780
|
+
parts.append(f"updated_at={self.updated_at!r}")
|
|
2781
|
+
parts.append(f"chat={self.chat!r}")
|
|
2782
|
+
return (
|
|
2783
|
+
f"{self.__class__.__qualname__}("
|
|
2784
|
+
f"{', '.join(parts)}"
|
|
2785
|
+
f")"
|
|
2786
|
+
)
|
|
2787
|
+
|
|
2788
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2789
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
2790
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2791
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2792
|
+
|
|
2793
|
+
return _process_dataclass
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
@_register(
|
|
2797
|
+
plan_repr=(
|
|
2798
|
+
"Plans(tup=(CopyPlan(fields=('version', 'payload', 'created_at', 'updated_at')), EqPlan(fields=('version', 'pay"
|
|
2799
|
+
"load', 'created_at', 'updated_at')), FrozenPlan(fields=('version', 'payload', 'created_at', 'updated_at'), all"
|
|
2800
|
+
"ow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('version', 'payload', 'created_at', 'updated_at"
|
|
2801
|
+
"'), cache=False), InitPlan(fields=(InitPlan.Field(name='version', annotation=OpRef(name='init.fields.0.annotat"
|
|
2802
|
+
"ion'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=No"
|
|
2803
|
+
"ne, validate=None, check_type=None), InitPlan.Field(name='payload', annotation=OpRef(name='init.fields.1.annot"
|
|
2804
|
+
"ation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce="
|
|
2805
|
+
"None, validate=None, check_type=None), InitPlan.Field(name='created_at', annotation=OpRef(name='init.fields.2."
|
|
2806
|
+
"annotation'), default=None, default_factory=OpRef(name='init.fields.2.default_factory'), init=True, override=F"
|
|
2807
|
+
"alse, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='update"
|
|
2808
|
+
"d_at', annotation=OpRef(name='init.fields.3.annotation'), default=None, default_factory=OpRef(name='init.field"
|
|
2809
|
+
"s.3.default_factory'), init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, c"
|
|
2810
|
+
"heck_type=None)), self_param='self', std_params=('version', 'payload', 'created_at', 'updated_at'), kw_only_pa"
|
|
2811
|
+
"rams=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(Repr"
|
|
2812
|
+
"Plan.Field(name='version', kw_only=False, fn=None), ReprPlan.Field(name='payload', kw_only=False, fn=None), Re"
|
|
2813
|
+
"prPlan.Field(name='created_at', kw_only=False, fn=None), ReprPlan.Field(name='updated_at', kw_only=False, fn=N"
|
|
2814
|
+
"one)), id=False, terse=False, default_fn=None)))"
|
|
2815
|
+
),
|
|
2816
|
+
plan_repr_sha1='61e69339fbc885327f4389d705747f188b874a91',
|
|
2817
|
+
op_ref_idents=(
|
|
2818
|
+
'__dataclass__init__fields__0__annotation',
|
|
2819
|
+
'__dataclass__init__fields__1__annotation',
|
|
2820
|
+
'__dataclass__init__fields__2__annotation',
|
|
2821
|
+
'__dataclass__init__fields__2__default_factory',
|
|
2822
|
+
'__dataclass__init__fields__3__annotation',
|
|
2823
|
+
'__dataclass__init__fields__3__default_factory',
|
|
2824
|
+
),
|
|
2825
|
+
cls_names=(
|
|
2826
|
+
('ommlds.cli.sessions.chat.drivers.state.ids', 'MarshaledState'),
|
|
2827
|
+
),
|
|
2828
|
+
)
|
|
2829
|
+
def _process_dataclass__61e69339fbc885327f4389d705747f188b874a91():
|
|
2830
|
+
def _process_dataclass(
|
|
2831
|
+
*,
|
|
2832
|
+
__dataclass__cls,
|
|
2833
|
+
__dataclass__init__fields__0__annotation,
|
|
2834
|
+
__dataclass__init__fields__1__annotation,
|
|
2835
|
+
__dataclass__init__fields__2__annotation,
|
|
2836
|
+
__dataclass__init__fields__2__default_factory,
|
|
2837
|
+
__dataclass__init__fields__3__annotation,
|
|
2838
|
+
__dataclass__init__fields__3__default_factory,
|
|
2839
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
2840
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
2841
|
+
__dataclass__FnValidationError, # noqa
|
|
2842
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
2843
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
2844
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
2845
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
2846
|
+
__dataclass__None=None, # noqa
|
|
2847
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
2848
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
2849
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
2850
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
2851
|
+
__dataclass__property=property, # noqa
|
|
2852
|
+
):
|
|
2853
|
+
def __copy__(self):
|
|
2854
|
+
if self.__class__ is not __dataclass__cls:
|
|
2855
|
+
raise TypeError(self)
|
|
2856
|
+
return __dataclass__cls( # noqa
|
|
2857
|
+
version=self.version,
|
|
2858
|
+
payload=self.payload,
|
|
2859
|
+
created_at=self.created_at,
|
|
2860
|
+
updated_at=self.updated_at,
|
|
2861
|
+
)
|
|
2862
|
+
|
|
2863
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
2864
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
2865
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
2866
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
2867
|
+
|
|
2868
|
+
def __eq__(self, other):
|
|
2869
|
+
if self is other:
|
|
2870
|
+
return True
|
|
2871
|
+
if self.__class__ is not other.__class__:
|
|
2872
|
+
return NotImplemented
|
|
2873
|
+
return (
|
|
2874
|
+
self.version == other.version and
|
|
2875
|
+
self.payload == other.payload and
|
|
2876
|
+
self.created_at == other.created_at and
|
|
2877
|
+
self.updated_at == other.updated_at
|
|
2878
|
+
)
|
|
2879
|
+
|
|
2880
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
2881
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
2882
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
2883
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
2884
|
+
|
|
2885
|
+
__dataclass___setattr_frozen_fields = {
|
|
2886
|
+
'version',
|
|
2887
|
+
'payload',
|
|
2888
|
+
'created_at',
|
|
2889
|
+
'updated_at',
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
def __setattr__(self, name, value):
|
|
2893
|
+
if (
|
|
2894
|
+
type(self) is __dataclass__cls
|
|
2895
|
+
or name in __dataclass___setattr_frozen_fields
|
|
2896
|
+
):
|
|
2897
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
2898
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
2899
|
+
|
|
2900
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
2901
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
2902
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
2903
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
2904
|
+
|
|
2905
|
+
__dataclass___delattr_frozen_fields = {
|
|
2906
|
+
'version',
|
|
2907
|
+
'payload',
|
|
2908
|
+
'created_at',
|
|
2909
|
+
'updated_at',
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
def __delattr__(self, name):
|
|
2913
|
+
if (
|
|
2914
|
+
type(self) is __dataclass__cls
|
|
2915
|
+
or name in __dataclass___delattr_frozen_fields
|
|
2916
|
+
):
|
|
2917
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
2918
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
2919
|
+
|
|
2920
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
2921
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
2922
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
2923
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
2924
|
+
|
|
2925
|
+
def __hash__(self):
|
|
2926
|
+
return hash((
|
|
2927
|
+
self.version,
|
|
2928
|
+
self.payload,
|
|
2929
|
+
self.created_at,
|
|
2930
|
+
self.updated_at,
|
|
2931
|
+
))
|
|
2932
|
+
|
|
2933
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
2934
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
2935
|
+
|
|
2936
|
+
def __init__(
|
|
2937
|
+
self,
|
|
2938
|
+
version: __dataclass__init__fields__0__annotation,
|
|
2939
|
+
payload: __dataclass__init__fields__1__annotation,
|
|
2940
|
+
created_at: __dataclass__init__fields__2__annotation = __dataclass__HAS_DEFAULT_FACTORY,
|
|
2941
|
+
updated_at: __dataclass__init__fields__3__annotation = __dataclass__HAS_DEFAULT_FACTORY,
|
|
2942
|
+
) -> __dataclass__None:
|
|
2943
|
+
if created_at is __dataclass__HAS_DEFAULT_FACTORY:
|
|
2944
|
+
created_at = __dataclass__init__fields__2__default_factory()
|
|
2945
|
+
if updated_at is __dataclass__HAS_DEFAULT_FACTORY:
|
|
2946
|
+
updated_at = __dataclass__init__fields__3__default_factory()
|
|
2947
|
+
__dataclass__object_setattr(self, 'version', version)
|
|
2948
|
+
__dataclass__object_setattr(self, 'payload', payload)
|
|
2949
|
+
__dataclass__object_setattr(self, 'created_at', created_at)
|
|
2950
|
+
__dataclass__object_setattr(self, 'updated_at', updated_at)
|
|
2951
|
+
|
|
2952
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
2953
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
2954
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
2955
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
2956
|
+
|
|
2957
|
+
@__dataclass___recursive_repr()
|
|
2958
|
+
def __repr__(self):
|
|
2959
|
+
parts = []
|
|
2960
|
+
parts.append(f"version={self.version!r}")
|
|
2961
|
+
parts.append(f"payload={self.payload!r}")
|
|
2962
|
+
parts.append(f"created_at={self.created_at!r}")
|
|
2963
|
+
parts.append(f"updated_at={self.updated_at!r}")
|
|
2964
|
+
return (
|
|
2965
|
+
f"{self.__class__.__qualname__}("
|
|
2966
|
+
f"{', '.join(parts)}"
|
|
2967
|
+
f")"
|
|
2968
|
+
)
|
|
2969
|
+
|
|
2970
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
2971
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
2972
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
2973
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
2974
|
+
|
|
2975
|
+
return _process_dataclass
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
@_register(
|
|
2979
|
+
plan_repr=(
|
|
2980
|
+
"Plans(tup=(CopyPlan(fields=('cfg_cls', 'fn')), EqPlan(fields=('cfg_cls', 'fn')), FrozenPlan(fields=('cfg_cls',"
|
|
2981
|
+
" 'fn'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('cfg_cls', 'fn'), cache=False), Init"
|
|
2982
|
+
"Plan(fields=(InitPlan.Field(name='cfg_cls', annotation=OpRef(name='init.fields.0.annotation'), default=None, d"
|
|
2983
|
+
"efault_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, che"
|
|
2984
|
+
"ck_type=None), InitPlan.Field(name='fn', annotation=OpRef(name='init.fields.1.annotation'), default=None, defa"
|
|
2985
|
+
"ult_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_"
|
|
2986
|
+
"type=None)), self_param='self', std_params=('cfg_cls', 'fn'), kw_only_params=(), frozen=True, slots=False, pos"
|
|
2987
|
+
"t_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='cfg_cls', kw_only=Fal"
|
|
2988
|
+
"se, fn=None), ReprPlan.Field(name='fn', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
|
|
2989
|
+
),
|
|
2990
|
+
plan_repr_sha1='0f6d91dd6a878d827836d961e4683d55b1c9095a',
|
|
2991
|
+
op_ref_idents=(
|
|
2992
|
+
'__dataclass__init__fields__0__annotation',
|
|
2993
|
+
'__dataclass__init__fields__1__annotation',
|
|
2994
|
+
),
|
|
2995
|
+
cls_names=(
|
|
2996
|
+
('ommlds.cli.sessions.chat.drivers.tools.inject', 'ToolSetBinder'),
|
|
2997
|
+
),
|
|
2998
|
+
)
|
|
2999
|
+
def _process_dataclass__0f6d91dd6a878d827836d961e4683d55b1c9095a():
|
|
3000
|
+
def _process_dataclass(
|
|
3001
|
+
*,
|
|
3002
|
+
__dataclass__cls,
|
|
3003
|
+
__dataclass__init__fields__0__annotation,
|
|
3004
|
+
__dataclass__init__fields__1__annotation,
|
|
3005
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
3006
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
3007
|
+
__dataclass__FnValidationError, # noqa
|
|
3008
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
3009
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
3010
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
3011
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
3012
|
+
__dataclass__None=None, # noqa
|
|
3013
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
3014
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
3015
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
3016
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
3017
|
+
__dataclass__property=property, # noqa
|
|
3018
|
+
):
|
|
3019
|
+
def __copy__(self):
|
|
3020
|
+
if self.__class__ is not __dataclass__cls:
|
|
3021
|
+
raise TypeError(self)
|
|
3022
|
+
return __dataclass__cls( # noqa
|
|
3023
|
+
cfg_cls=self.cfg_cls,
|
|
3024
|
+
fn=self.fn,
|
|
3025
|
+
)
|
|
3026
|
+
|
|
3027
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
3028
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
3029
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
3030
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
3031
|
+
|
|
3032
|
+
def __eq__(self, other):
|
|
3033
|
+
if self is other:
|
|
3034
|
+
return True
|
|
3035
|
+
if self.__class__ is not other.__class__:
|
|
3036
|
+
return NotImplemented
|
|
3037
|
+
return (
|
|
3038
|
+
self.cfg_cls == other.cfg_cls and
|
|
3039
|
+
self.fn == other.fn
|
|
3040
|
+
)
|
|
3041
|
+
|
|
3042
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
3043
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
3044
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
3045
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3046
|
+
|
|
3047
|
+
__dataclass___setattr_frozen_fields = {
|
|
3048
|
+
'cfg_cls',
|
|
3049
|
+
'fn',
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
def __setattr__(self, name, value):
|
|
3053
|
+
if (
|
|
3054
|
+
type(self) is __dataclass__cls
|
|
3055
|
+
or name in __dataclass___setattr_frozen_fields
|
|
3056
|
+
):
|
|
3057
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
3058
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
3059
|
+
|
|
3060
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
3061
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
3062
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
3063
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3064
|
+
|
|
3065
|
+
__dataclass___delattr_frozen_fields = {
|
|
3066
|
+
'cfg_cls',
|
|
3067
|
+
'fn',
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
def __delattr__(self, name):
|
|
3071
|
+
if (
|
|
3072
|
+
type(self) is __dataclass__cls
|
|
3073
|
+
or name in __dataclass___delattr_frozen_fields
|
|
3074
|
+
):
|
|
3075
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
3076
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
3077
|
+
|
|
3078
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
3079
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
3080
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
3081
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
3082
|
+
|
|
3083
|
+
def __hash__(self):
|
|
3084
|
+
return hash((
|
|
3085
|
+
self.cfg_cls,
|
|
3086
|
+
self.fn,
|
|
3087
|
+
))
|
|
3088
|
+
|
|
3089
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
3090
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
3091
|
+
|
|
3092
|
+
def __init__(
|
|
3093
|
+
self,
|
|
3094
|
+
cfg_cls: __dataclass__init__fields__0__annotation,
|
|
3095
|
+
fn: __dataclass__init__fields__1__annotation,
|
|
3096
|
+
) -> __dataclass__None:
|
|
3097
|
+
__dataclass__object_setattr(self, 'cfg_cls', cfg_cls)
|
|
3098
|
+
__dataclass__object_setattr(self, 'fn', fn)
|
|
3099
|
+
|
|
3100
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3101
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
3102
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
3103
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
3104
|
+
|
|
3105
|
+
@__dataclass___recursive_repr()
|
|
3106
|
+
def __repr__(self):
|
|
3107
|
+
parts = []
|
|
3108
|
+
parts.append(f"cfg_cls={self.cfg_cls!r}")
|
|
3109
|
+
parts.append(f"fn={self.fn!r}")
|
|
3110
|
+
return (
|
|
3111
|
+
f"{self.__class__.__qualname__}("
|
|
3112
|
+
f"{', '.join(parts)}"
|
|
3113
|
+
f")"
|
|
3114
|
+
)
|
|
3115
|
+
|
|
3116
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
3117
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
3118
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
3119
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
3120
|
+
|
|
3121
|
+
return _process_dataclass
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
@_register(
|
|
3125
|
+
plan_repr=(
|
|
3126
|
+
"Plans(tup=(CopyPlan(fields=('command', 'argv', 'help', 'arg_error')), EqPlan(fields=('command', 'argv', 'help'"
|
|
3127
|
+
", 'arg_error')), HashPlan(action='set_none', fields=None, cache=None), InitPlan(fields=(InitPlan.Field(name='c"
|
|
3128
|
+
"ommand', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
|
|
3129
|
+
"rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name="
|
|
3130
|
+
"'argv', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, over"
|
|
3131
|
+
"ride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='"
|
|
3132
|
+
"help', annotation=OpRef(name='init.fields.2.annotation'), default=None, default_factory=None, init=True, overr"
|
|
3133
|
+
"ide=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='a"
|
|
3134
|
+
"rg_error', annotation=OpRef(name='init.fields.3.annotation'), default=OpRef(name='init.fields.3.default'), def"
|
|
3135
|
+
"ault_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check"
|
|
3136
|
+
"_type=None)), self_param='self', std_params=('command', 'argv', 'help', 'arg_error'), kw_only_params=(), froze"
|
|
3137
|
+
"n=False, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(na"
|
|
3138
|
+
"me='command', kw_only=False, fn=None), ReprPlan.Field(name='argv', kw_only=False, fn=None), ReprPlan.Field(nam"
|
|
3139
|
+
"e='help', kw_only=False, fn=None), ReprPlan.Field(name='arg_error', kw_only=False, fn=None)), id=False, terse="
|
|
3140
|
+
"False, default_fn=None)))"
|
|
3141
|
+
),
|
|
3142
|
+
plan_repr_sha1='0843ef2470048b534567b0a1d3bd52e06d96c21b',
|
|
3143
|
+
op_ref_idents=(
|
|
3144
|
+
'__dataclass__init__fields__0__annotation',
|
|
3145
|
+
'__dataclass__init__fields__1__annotation',
|
|
3146
|
+
'__dataclass__init__fields__2__annotation',
|
|
3147
|
+
'__dataclass__init__fields__3__annotation',
|
|
3148
|
+
'__dataclass__init__fields__3__default',
|
|
3149
|
+
),
|
|
3150
|
+
cls_names=(
|
|
3151
|
+
('ommlds.cli.sessions.chat.facades.facade', 'ArgsCommandError'),
|
|
3152
|
+
),
|
|
3153
|
+
)
|
|
3154
|
+
def _process_dataclass__0843ef2470048b534567b0a1d3bd52e06d96c21b():
|
|
3155
|
+
def _process_dataclass(
|
|
3156
|
+
*,
|
|
3157
|
+
__dataclass__cls,
|
|
3158
|
+
__dataclass__init__fields__0__annotation,
|
|
3159
|
+
__dataclass__init__fields__1__annotation,
|
|
3160
|
+
__dataclass__init__fields__2__annotation,
|
|
3161
|
+
__dataclass__init__fields__3__annotation,
|
|
3162
|
+
__dataclass__init__fields__3__default,
|
|
3163
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
3164
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
3165
|
+
__dataclass__FnValidationError, # noqa
|
|
3166
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
3167
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
3168
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
3169
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
3170
|
+
__dataclass__None=None, # noqa
|
|
3171
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
3172
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
3173
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
3174
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
3175
|
+
__dataclass__property=property, # noqa
|
|
3176
|
+
):
|
|
3177
|
+
def __copy__(self):
|
|
3178
|
+
if self.__class__ is not __dataclass__cls:
|
|
3179
|
+
raise TypeError(self)
|
|
3180
|
+
return __dataclass__cls( # noqa
|
|
3181
|
+
command=self.command,
|
|
3182
|
+
argv=self.argv,
|
|
3183
|
+
help=self.help,
|
|
3184
|
+
arg_error=self.arg_error,
|
|
3185
|
+
)
|
|
3186
|
+
|
|
3187
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
3188
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
3189
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
3190
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
3191
|
+
|
|
3192
|
+
def __eq__(self, other):
|
|
3193
|
+
if self is other:
|
|
3194
|
+
return True
|
|
3195
|
+
if self.__class__ is not other.__class__:
|
|
3196
|
+
return NotImplemented
|
|
3197
|
+
return (
|
|
3198
|
+
self.command == other.command and
|
|
3199
|
+
self.argv == other.argv and
|
|
3200
|
+
self.help == other.help and
|
|
3201
|
+
self.arg_error == other.arg_error
|
|
3202
|
+
)
|
|
3203
|
+
|
|
3204
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
3205
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
3206
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
3207
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3208
|
+
|
|
3209
|
+
setattr(__dataclass__cls, '__hash__', None)
|
|
3210
|
+
|
|
3211
|
+
def __init__(
|
|
3212
|
+
self,
|
|
3213
|
+
command: __dataclass__init__fields__0__annotation,
|
|
3214
|
+
argv: __dataclass__init__fields__1__annotation,
|
|
3215
|
+
help: __dataclass__init__fields__2__annotation,
|
|
3216
|
+
arg_error: __dataclass__init__fields__3__annotation = __dataclass__init__fields__3__default,
|
|
3217
|
+
) -> __dataclass__None:
|
|
3218
|
+
self.command = command
|
|
3219
|
+
self.argv = argv
|
|
3220
|
+
self.help = help
|
|
3221
|
+
self.arg_error = arg_error
|
|
3222
|
+
|
|
3223
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3224
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
3225
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
3226
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
3227
|
+
|
|
3228
|
+
@__dataclass___recursive_repr()
|
|
3229
|
+
def __repr__(self):
|
|
3230
|
+
parts = []
|
|
3231
|
+
parts.append(f"command={self.command!r}")
|
|
3232
|
+
parts.append(f"argv={self.argv!r}")
|
|
3233
|
+
parts.append(f"help={self.help!r}")
|
|
3234
|
+
parts.append(f"arg_error={self.arg_error!r}")
|
|
3235
|
+
return (
|
|
3236
|
+
f"{self.__class__.__qualname__}("
|
|
3237
|
+
f"{', '.join(parts)}"
|
|
3238
|
+
f")"
|
|
3239
|
+
)
|
|
3240
|
+
|
|
3241
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
3242
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
3243
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
3244
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
3245
|
+
|
|
3246
|
+
return _process_dataclass
|
|
3247
|
+
|
|
3248
|
+
|
|
3249
|
+
@_register(
|
|
3250
|
+
plan_repr=(
|
|
3251
|
+
"Plans(tup=(CopyPlan(fields=('print',)), EqPlan(fields=('print',)), FrozenPlan(fields=('print',), allow_dynamic"
|
|
3252
|
+
"_dunder_attrs=False), HashPlan(action='add', fields=('print',), cache=False), InitPlan(fields=(InitPlan.Field("
|
|
3253
|
+
"name='print', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True"
|
|
3254
|
+
", override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='s"
|
|
3255
|
+
"elf', std_params=(), kw_only_params=('print',), frozen=True, slots=False, post_init_params=None, init_fns=(), "
|
|
3256
|
+
"validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='print', kw_only=True, fn=None),), id=False, terse=Fals"
|
|
3257
|
+
"e, default_fn=None)))"
|
|
3258
|
+
),
|
|
3259
|
+
plan_repr_sha1='b85c47820b05dab0f4c49061d498738fe67a73a4',
|
|
3260
|
+
op_ref_idents=(
|
|
3261
|
+
'__dataclass__init__fields__0__annotation',
|
|
3262
|
+
),
|
|
3263
|
+
cls_names=(
|
|
3264
|
+
('ommlds.cli.sessions.chat.facades.facade', 'Command.Context'),
|
|
3265
|
+
),
|
|
3266
|
+
)
|
|
3267
|
+
def _process_dataclass__b85c47820b05dab0f4c49061d498738fe67a73a4():
|
|
3268
|
+
def _process_dataclass(
|
|
3269
|
+
*,
|
|
3270
|
+
__dataclass__cls,
|
|
3271
|
+
__dataclass__init__fields__0__annotation,
|
|
3272
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
3273
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
3274
|
+
__dataclass__FnValidationError, # noqa
|
|
3275
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
3276
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
3277
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
3278
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
3279
|
+
__dataclass__None=None, # noqa
|
|
3280
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
3281
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
3282
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
3283
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
3284
|
+
__dataclass__property=property, # noqa
|
|
3285
|
+
):
|
|
3286
|
+
def __copy__(self):
|
|
3287
|
+
if self.__class__ is not __dataclass__cls:
|
|
3288
|
+
raise TypeError(self)
|
|
3289
|
+
return __dataclass__cls( # noqa
|
|
3290
|
+
print=self.print,
|
|
3291
|
+
)
|
|
3292
|
+
|
|
3293
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
3294
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
3295
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
3296
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
3297
|
+
|
|
3298
|
+
def __eq__(self, other):
|
|
3299
|
+
if self is other:
|
|
3300
|
+
return True
|
|
3301
|
+
if self.__class__ is not other.__class__:
|
|
3302
|
+
return NotImplemented
|
|
3303
|
+
return (
|
|
3304
|
+
self.print == other.print
|
|
3305
|
+
)
|
|
3306
|
+
|
|
3307
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
3308
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
3309
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
3310
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3311
|
+
|
|
3312
|
+
__dataclass___setattr_frozen_fields = {
|
|
3313
|
+
'print',
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
def __setattr__(self, name, value):
|
|
3317
|
+
if (
|
|
3318
|
+
type(self) is __dataclass__cls
|
|
3319
|
+
or name in __dataclass___setattr_frozen_fields
|
|
3320
|
+
):
|
|
3321
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
3322
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
3323
|
+
|
|
3324
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
3325
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
3326
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
3327
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3328
|
+
|
|
3329
|
+
__dataclass___delattr_frozen_fields = {
|
|
3330
|
+
'print',
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
def __delattr__(self, name):
|
|
3334
|
+
if (
|
|
3335
|
+
type(self) is __dataclass__cls
|
|
3336
|
+
or name in __dataclass___delattr_frozen_fields
|
|
3337
|
+
):
|
|
3338
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
3339
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
3340
|
+
|
|
3341
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
3342
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
3343
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
3344
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
3345
|
+
|
|
3346
|
+
def __hash__(self):
|
|
3347
|
+
return hash((
|
|
3348
|
+
self.print,
|
|
3349
|
+
))
|
|
3350
|
+
|
|
3351
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
3352
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
3353
|
+
|
|
3354
|
+
def __init__(
|
|
3355
|
+
self,
|
|
3356
|
+
*,
|
|
3357
|
+
print: __dataclass__init__fields__0__annotation,
|
|
3358
|
+
) -> __dataclass__None:
|
|
3359
|
+
__dataclass__object_setattr(self, 'print', print)
|
|
3360
|
+
|
|
3361
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3362
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
3363
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
3364
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
3365
|
+
|
|
3366
|
+
@__dataclass___recursive_repr()
|
|
3367
|
+
def __repr__(self):
|
|
3368
|
+
parts = []
|
|
3369
|
+
parts.append(f"print={self.print!r}")
|
|
3370
|
+
return (
|
|
3371
|
+
f"{self.__class__.__qualname__}("
|
|
3372
|
+
f"{', '.join(parts)}"
|
|
3373
|
+
f")"
|
|
3374
|
+
)
|
|
3375
|
+
|
|
3376
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
3377
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
3378
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
3379
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
3380
|
+
|
|
3381
|
+
return _process_dataclass
|
|
3382
|
+
|
|
3383
|
+
|
|
3384
|
+
@_register(
|
|
3385
|
+
plan_repr=(
|
|
3386
|
+
"Plans(tup=(CopyPlan(fields=('text',)), EqPlan(fields=('text',)), FrozenPlan(fields=('text',), allow_dynamic_du"
|
|
3387
|
+
"nder_attrs=False), HashPlan(action='add', fields=('text',), cache=False), InitPlan(fields=(InitPlan.Field(name"
|
|
3388
|
+
"='text', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
|
|
3389
|
+
"rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self',"
|
|
3390
|
+
" std_params=('text',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), valida"
|
|
3391
|
+
"te_fns=()), ReprPlan(fields=(ReprPlan.Field(name='text', kw_only=False, fn=None),), id=False, terse=False, def"
|
|
3392
|
+
"ault_fn=None)))"
|
|
3393
|
+
),
|
|
3394
|
+
plan_repr_sha1='ce2a4c81e0f66e62a54ea3adfdc532902daece78',
|
|
3395
|
+
op_ref_idents=(
|
|
3396
|
+
'__dataclass__init__fields__0__annotation',
|
|
3397
|
+
),
|
|
3398
|
+
cls_names=(
|
|
3399
|
+
('ommlds.cli.sessions.chat.interfaces.textual.app', 'ChatApp.UserInput'),
|
|
3400
|
+
),
|
|
3401
|
+
)
|
|
3402
|
+
def _process_dataclass__ce2a4c81e0f66e62a54ea3adfdc532902daece78():
|
|
3403
|
+
def _process_dataclass(
|
|
3404
|
+
*,
|
|
3405
|
+
__dataclass__cls,
|
|
3406
|
+
__dataclass__init__fields__0__annotation,
|
|
3407
|
+
__dataclass__FieldFnValidationError, # noqa
|
|
3408
|
+
__dataclass__FieldTypeValidationError, # noqa
|
|
3409
|
+
__dataclass__FnValidationError, # noqa
|
|
3410
|
+
__dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
|
|
3411
|
+
__dataclass__FunctionType=types.FunctionType, # noqa
|
|
3412
|
+
__dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
|
|
3413
|
+
__dataclass__MISSING=dataclasses.MISSING, # noqa
|
|
3414
|
+
__dataclass__None=None, # noqa
|
|
3415
|
+
__dataclass__TypeError=TypeError, # noqa
|
|
3416
|
+
__dataclass___recursive_repr=reprlib.recursive_repr, # noqa
|
|
3417
|
+
__dataclass__isinstance=isinstance, # noqa
|
|
3418
|
+
__dataclass__object_setattr=object.__setattr__, # noqa
|
|
3419
|
+
__dataclass__property=property, # noqa
|
|
3420
|
+
):
|
|
3421
|
+
def __copy__(self):
|
|
3422
|
+
if self.__class__ is not __dataclass__cls:
|
|
3423
|
+
raise TypeError(self)
|
|
3424
|
+
return __dataclass__cls( # noqa
|
|
3425
|
+
text=self.text,
|
|
3426
|
+
)
|
|
3427
|
+
|
|
3428
|
+
__copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
|
|
3429
|
+
if '__copy__' in __dataclass__cls.__dict__:
|
|
3430
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
|
|
3431
|
+
setattr(__dataclass__cls, '__copy__', __copy__)
|
|
3432
|
+
|
|
3433
|
+
def __eq__(self, other):
|
|
3434
|
+
if self is other:
|
|
3435
|
+
return True
|
|
3436
|
+
if self.__class__ is not other.__class__:
|
|
3437
|
+
return NotImplemented
|
|
3438
|
+
return (
|
|
3439
|
+
self.text == other.text
|
|
3440
|
+
)
|
|
3441
|
+
|
|
3442
|
+
__eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
|
|
3443
|
+
if '__eq__' in __dataclass__cls.__dict__:
|
|
3444
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
|
|
3445
|
+
setattr(__dataclass__cls, '__eq__', __eq__)
|
|
3446
|
+
|
|
3447
|
+
__dataclass___setattr_frozen_fields = {
|
|
3448
|
+
'text',
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
def __setattr__(self, name, value):
|
|
3452
|
+
if (
|
|
3453
|
+
type(self) is __dataclass__cls
|
|
3454
|
+
or name in __dataclass___setattr_frozen_fields
|
|
3455
|
+
):
|
|
3456
|
+
raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
|
|
3457
|
+
super(__dataclass__cls, self).__setattr__(name, value)
|
|
3458
|
+
|
|
3459
|
+
__setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
|
|
3460
|
+
if '__setattr__' in __dataclass__cls.__dict__:
|
|
3461
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
|
|
3462
|
+
setattr(__dataclass__cls, '__setattr__', __setattr__)
|
|
3463
|
+
|
|
3464
|
+
__dataclass___delattr_frozen_fields = {
|
|
3465
|
+
'text',
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
def __delattr__(self, name):
|
|
3469
|
+
if (
|
|
3470
|
+
type(self) is __dataclass__cls
|
|
3471
|
+
or name in __dataclass___delattr_frozen_fields
|
|
3472
|
+
):
|
|
3473
|
+
raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
|
|
3474
|
+
super(__dataclass__cls, self).__delattr__(name)
|
|
3475
|
+
|
|
3476
|
+
__delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
|
|
3477
|
+
if '__delattr__' in __dataclass__cls.__dict__:
|
|
3478
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
|
|
3479
|
+
setattr(__dataclass__cls, '__delattr__', __delattr__)
|
|
3480
|
+
|
|
3481
|
+
def __hash__(self):
|
|
3482
|
+
return hash((
|
|
3483
|
+
self.text,
|
|
3484
|
+
))
|
|
3485
|
+
|
|
3486
|
+
__hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
|
|
3487
|
+
setattr(__dataclass__cls, '__hash__', __hash__)
|
|
3488
|
+
|
|
3489
|
+
def __init__(
|
|
3490
|
+
self,
|
|
3491
|
+
text: __dataclass__init__fields__0__annotation,
|
|
3492
|
+
) -> __dataclass__None:
|
|
3493
|
+
__dataclass__object_setattr(self, 'text', text)
|
|
3494
|
+
|
|
3495
|
+
__init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
|
|
3496
|
+
if '__init__' in __dataclass__cls.__dict__:
|
|
3497
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
|
|
3498
|
+
setattr(__dataclass__cls, '__init__', __init__)
|
|
3499
|
+
|
|
3500
|
+
@__dataclass___recursive_repr()
|
|
3501
|
+
def __repr__(self):
|
|
3502
|
+
parts = []
|
|
3503
|
+
parts.append(f"text={self.text!r}")
|
|
3504
|
+
return (
|
|
3505
|
+
f"{self.__class__.__qualname__}("
|
|
3506
|
+
f"{', '.join(parts)}"
|
|
3507
|
+
f")"
|
|
3508
|
+
)
|
|
3509
|
+
|
|
3510
|
+
__repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
|
|
3511
|
+
if '__repr__' in __dataclass__cls.__dict__:
|
|
3512
|
+
raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
|
|
3513
|
+
setattr(__dataclass__cls, '__repr__', __repr__)
|
|
3514
|
+
|
|
3515
|
+
return _process_dataclass
|