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