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
ommlds/minichain/__init__.py
CHANGED
|
@@ -65,6 +65,33 @@ with _lang.auto_proxy_init(
|
|
|
65
65
|
|
|
66
66
|
##
|
|
67
67
|
|
|
68
|
+
from .chat.choices.stream.adapters import ( # noqa
|
|
69
|
+
ChatChoicesStreamServiceChatChoicesService,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
from .chat.choices.stream.joining import ( # noqa
|
|
73
|
+
AiChoicesDeltaJoiner,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
from .chat.choices.stream.services import ( # noqa
|
|
77
|
+
ChatChoicesStreamRequest,
|
|
78
|
+
ChatChoicesStreamResponse,
|
|
79
|
+
ChatChoicesStreamService,
|
|
80
|
+
AbstractChatChoicesStreamService,
|
|
81
|
+
static_check_is_chat_choices_stream_service,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
from .chat.choices.stream.types import ( # noqa
|
|
85
|
+
ChatChoicesStreamOption,
|
|
86
|
+
ChatChoicesStreamOptions,
|
|
87
|
+
|
|
88
|
+
ChatChoicesStreamOutput,
|
|
89
|
+
ChatChoicesStreamOutputs,
|
|
90
|
+
|
|
91
|
+
AiChoiceDeltas,
|
|
92
|
+
AiChoicesDeltas,
|
|
93
|
+
)
|
|
94
|
+
|
|
68
95
|
from .chat.choices.adapters import ( # noqa
|
|
69
96
|
ChatChoicesServiceChatService,
|
|
70
97
|
)
|
|
@@ -88,37 +115,27 @@ with _lang.auto_proxy_init(
|
|
|
88
115
|
AiChoices,
|
|
89
116
|
)
|
|
90
117
|
|
|
91
|
-
from .chat.stream.adapters import ( # noqa
|
|
92
|
-
ChatChoicesStreamServiceChatChoicesService,
|
|
93
|
-
)
|
|
94
|
-
|
|
95
118
|
from .chat.stream.joining import ( # noqa
|
|
96
|
-
|
|
119
|
+
AiDeltaJoiner,
|
|
97
120
|
)
|
|
98
121
|
|
|
99
122
|
from .chat.stream.services import ( # noqa
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
123
|
+
ChatStreamRequest,
|
|
124
|
+
ChatStreamResponse,
|
|
125
|
+
ChatStreamService,
|
|
126
|
+
AbstractChatStreamService,
|
|
127
|
+
static_check_is_chat_stream_service,
|
|
105
128
|
)
|
|
106
129
|
|
|
107
130
|
from .chat.stream.types import ( # noqa
|
|
108
|
-
|
|
109
|
-
|
|
131
|
+
AiDelta,
|
|
132
|
+
AiDeltas,
|
|
110
133
|
|
|
111
|
-
|
|
112
|
-
ChatChoicesStreamOutputs,
|
|
113
|
-
|
|
114
|
-
AiChoiceDelta,
|
|
115
|
-
ContentAiChoiceDelta,
|
|
116
|
-
AnyToolUseAiChoiceDelta,
|
|
117
|
-
ToolUseAiChoiceDelta,
|
|
118
|
-
PartialToolUseAiChoiceDelta,
|
|
134
|
+
ContentAiDelta,
|
|
119
135
|
|
|
120
|
-
|
|
121
|
-
|
|
136
|
+
AnyToolUseAiDelta,
|
|
137
|
+
ToolUseAiDelta,
|
|
138
|
+
PartialToolUseAiDelta,
|
|
122
139
|
)
|
|
123
140
|
|
|
124
141
|
from .chat.tools.execution import ( # noqa
|
|
@@ -210,6 +227,68 @@ with _lang.auto_proxy_init(
|
|
|
210
227
|
|
|
211
228
|
##
|
|
212
229
|
|
|
230
|
+
from .content.transform.materialize import ( # noqa
|
|
231
|
+
ContentMaterializer,
|
|
232
|
+
|
|
233
|
+
DefaultContentMaterializer,
|
|
234
|
+
materialize_content,
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
from .content.transform.prepare import ( # noqa
|
|
238
|
+
ContentPreparer,
|
|
239
|
+
ContentStrPreparer,
|
|
240
|
+
|
|
241
|
+
DefaultContentPreparer,
|
|
242
|
+
DefaultContentStrPreparer,
|
|
243
|
+
|
|
244
|
+
default_content_preparer,
|
|
245
|
+
default_content_str_preparer,
|
|
246
|
+
prepare_content,
|
|
247
|
+
prepare_content_str,
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
from .content.transform.strings import ( # noqa
|
|
251
|
+
StringFnContentTransform,
|
|
252
|
+
transform_content_strings,
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
from .content.transform.types import ( # noqa
|
|
256
|
+
ContentTransform,
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
from .content.transform.visitors import ( # noqa
|
|
260
|
+
VisitorContentTransform,
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
##
|
|
264
|
+
|
|
265
|
+
from .content.code import ( # noqa
|
|
266
|
+
CodeContent,
|
|
267
|
+
InlineCodeContent,
|
|
268
|
+
BlockCodeContent,
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
from .content.composite import ( # noqa
|
|
272
|
+
CompositeContent,
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
from .content.content import ( # noqa
|
|
276
|
+
BaseContent,
|
|
277
|
+
|
|
278
|
+
Content,
|
|
279
|
+
CONTENT_TYPES,
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
from .content.dynamic import ( # noqa
|
|
283
|
+
DynamicContent,
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
from .content.emphasis import ( # noqa
|
|
287
|
+
BoldContent,
|
|
288
|
+
ItalicContent,
|
|
289
|
+
BoldItalicContent,
|
|
290
|
+
)
|
|
291
|
+
|
|
213
292
|
from .content.images import ( # noqa
|
|
214
293
|
ImageContent,
|
|
215
294
|
)
|
|
@@ -218,64 +297,91 @@ with _lang.auto_proxy_init(
|
|
|
218
297
|
JsonContent,
|
|
219
298
|
)
|
|
220
299
|
|
|
221
|
-
from .content.
|
|
222
|
-
|
|
300
|
+
from .content.link import ( # noqa
|
|
301
|
+
LinkContent,
|
|
302
|
+
)
|
|
223
303
|
|
|
224
|
-
|
|
304
|
+
from .content.markdown import ( # noqa
|
|
305
|
+
MarkdownContent,
|
|
225
306
|
)
|
|
226
307
|
|
|
227
308
|
from .content.metadata import ( # noqa
|
|
228
309
|
ContentMetadata,
|
|
229
310
|
ContentMetadatas,
|
|
311
|
+
|
|
312
|
+
ContentOriginal,
|
|
230
313
|
)
|
|
231
314
|
|
|
232
315
|
from .content.namespaces import ( # noqa
|
|
233
316
|
ContentNamespace,
|
|
317
|
+
NamespaceContent,
|
|
234
318
|
)
|
|
235
319
|
|
|
236
320
|
from .content.placeholders import ( # noqa
|
|
237
321
|
ContentPlaceholder,
|
|
238
|
-
|
|
239
|
-
|
|
322
|
+
PlaceholderContentKey,
|
|
323
|
+
PlaceholderContent,
|
|
240
324
|
)
|
|
241
325
|
|
|
242
|
-
from .content.
|
|
243
|
-
|
|
244
|
-
|
|
326
|
+
from .content.quote import ( # noqa
|
|
327
|
+
QuoteContent,
|
|
328
|
+
)
|
|
245
329
|
|
|
246
|
-
|
|
247
|
-
|
|
330
|
+
from .content.raw import ( # noqa
|
|
331
|
+
NonStrSingleRawContent,
|
|
332
|
+
NON_STR_SINGLE_RAW_CONTENT_TYPES,
|
|
248
333
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
334
|
+
SingleRawContent,
|
|
335
|
+
SINGLE_RAW_CONTENT_TYPES,
|
|
336
|
+
|
|
337
|
+
RawContent,
|
|
338
|
+
RAW_CONTENT_TYPES,
|
|
339
|
+
)
|
|
340
|
+
|
|
341
|
+
from .content.recursive import ( # noqa
|
|
342
|
+
RecursiveContent,
|
|
343
|
+
)
|
|
344
|
+
|
|
345
|
+
from .content.resources import ( # noqa
|
|
346
|
+
ResourceContent,
|
|
347
|
+
resource_content,
|
|
348
|
+
)
|
|
349
|
+
|
|
350
|
+
from .content.section import ( # noqa
|
|
351
|
+
SectionContent,
|
|
253
352
|
)
|
|
254
353
|
|
|
255
354
|
from .content.sequence import ( # noqa
|
|
256
|
-
BlockContent,
|
|
257
|
-
InlineContent,
|
|
258
355
|
SequenceContent,
|
|
356
|
+
InlineContent,
|
|
357
|
+
BlockContent,
|
|
358
|
+
ItemListContent,
|
|
259
359
|
)
|
|
260
360
|
|
|
261
|
-
from .content.
|
|
262
|
-
|
|
361
|
+
from .content.standard import ( # noqa
|
|
362
|
+
StandardContent,
|
|
263
363
|
)
|
|
264
364
|
|
|
265
|
-
from .content.
|
|
266
|
-
|
|
365
|
+
from .content.tag import ( # noqa
|
|
366
|
+
TagContent,
|
|
267
367
|
)
|
|
268
368
|
|
|
269
|
-
from .content.
|
|
270
|
-
|
|
271
|
-
ExtendedContent,
|
|
272
|
-
SingleContent,
|
|
273
|
-
SingleExtendedContent,
|
|
369
|
+
from .content.templates import ( # noqa
|
|
370
|
+
TemplateContent,
|
|
274
371
|
)
|
|
275
372
|
|
|
276
|
-
from .content.
|
|
277
|
-
|
|
278
|
-
|
|
373
|
+
from .content.text import ( # noqa
|
|
374
|
+
TextContent,
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
from .content.visitors import ( # noqa
|
|
378
|
+
ContentVisitor,
|
|
379
|
+
|
|
380
|
+
StandardContentVisitorTypeError,
|
|
381
|
+
StandardContentVisitor,
|
|
382
|
+
|
|
383
|
+
StaticContentVisitorTypeError,
|
|
384
|
+
StaticContentVisitor,
|
|
279
385
|
)
|
|
280
386
|
|
|
281
387
|
##
|
|
@@ -291,6 +397,7 @@ with _lang.auto_proxy_init(
|
|
|
291
397
|
TopK,
|
|
292
398
|
Temperature,
|
|
293
399
|
MaxTokens,
|
|
400
|
+
MaxCompletionTokens,
|
|
294
401
|
|
|
295
402
|
LlmOutput,
|
|
296
403
|
|
|
@@ -322,6 +429,7 @@ with _lang.auto_proxy_init(
|
|
|
322
429
|
##
|
|
323
430
|
|
|
324
431
|
from .registries.globals import ( # noqa
|
|
432
|
+
get_registry_cls,
|
|
325
433
|
register_type,
|
|
326
434
|
registry_new,
|
|
327
435
|
registry_of,
|
|
@@ -330,11 +438,18 @@ with _lang.auto_proxy_init(
|
|
|
330
438
|
##
|
|
331
439
|
|
|
332
440
|
from .services import ( # noqa
|
|
441
|
+
ServiceFacade,
|
|
442
|
+
facade,
|
|
443
|
+
|
|
444
|
+
RequestMetadata,
|
|
445
|
+
RequestMetadatas,
|
|
333
446
|
Request,
|
|
447
|
+
|
|
448
|
+
ResponseMetadata,
|
|
449
|
+
ResponseMetadatas,
|
|
334
450
|
Response,
|
|
451
|
+
|
|
335
452
|
Service,
|
|
336
|
-
ServiceFacade,
|
|
337
|
-
facade,
|
|
338
453
|
)
|
|
339
454
|
|
|
340
455
|
##
|
|
@@ -353,10 +468,6 @@ with _lang.auto_proxy_init(
|
|
|
353
468
|
new_stream_response,
|
|
354
469
|
)
|
|
355
470
|
|
|
356
|
-
from .stream.wrap import ( # noqa
|
|
357
|
-
WrappedStreamService,
|
|
358
|
-
)
|
|
359
|
-
|
|
360
471
|
##
|
|
361
472
|
|
|
362
473
|
from .tools.execution.catalog import ( # noqa
|
|
@@ -372,6 +483,14 @@ with _lang.auto_proxy_init(
|
|
|
372
483
|
tool_context,
|
|
373
484
|
)
|
|
374
485
|
|
|
486
|
+
from .tools.execution.errorhandling import ( # noqa
|
|
487
|
+
ErrorHandlingToolExecutor,
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
from .tools.execution.errors import ( # noqa
|
|
491
|
+
ToolExecutionError,
|
|
492
|
+
)
|
|
493
|
+
|
|
375
494
|
from .tools.execution.executors import ( # noqa
|
|
376
495
|
ToolExecutor,
|
|
377
496
|
|
|
@@ -384,10 +503,6 @@ with _lang.auto_proxy_init(
|
|
|
384
503
|
reflect_tool_catalog_entry,
|
|
385
504
|
)
|
|
386
505
|
|
|
387
|
-
from .tools.execution.errors import ( # noqa
|
|
388
|
-
ToolExecutionError,
|
|
389
|
-
)
|
|
390
|
-
|
|
391
506
|
from .tools.fns import ( # noqa
|
|
392
507
|
ToolFn,
|
|
393
508
|
|
|
@@ -495,6 +610,44 @@ with _lang.auto_proxy_init(
|
|
|
495
610
|
|
|
496
611
|
##
|
|
497
612
|
|
|
613
|
+
from .wrappers.retry import ( # noqa
|
|
614
|
+
AnyRetryService,
|
|
615
|
+
|
|
616
|
+
RetryServiceMaxRetriesExceededError,
|
|
617
|
+
RetryServiceOutput,
|
|
618
|
+
|
|
619
|
+
RetryService,
|
|
620
|
+
|
|
621
|
+
RetryStreamService,
|
|
622
|
+
)
|
|
623
|
+
|
|
624
|
+
from .wrappers.services import ( # noqa
|
|
625
|
+
WrappedRequestV,
|
|
626
|
+
WrappedOptionT,
|
|
627
|
+
WrappedResponseV,
|
|
628
|
+
WrappedOutputT,
|
|
629
|
+
WrappedRequest,
|
|
630
|
+
WrappedResponse,
|
|
631
|
+
WrappedService,
|
|
632
|
+
|
|
633
|
+
WrapperService,
|
|
634
|
+
MultiWrapperService,
|
|
635
|
+
|
|
636
|
+
wrap_service,
|
|
637
|
+
)
|
|
638
|
+
|
|
639
|
+
from .wrappers.stream import ( # noqa
|
|
640
|
+
WrappedStreamOutputT,
|
|
641
|
+
WrappedStreamOptions,
|
|
642
|
+
WrappedStreamRequest,
|
|
643
|
+
WrappedStreamResponse,
|
|
644
|
+
WrappedStreamService,
|
|
645
|
+
|
|
646
|
+
WrapperStreamService,
|
|
647
|
+
)
|
|
648
|
+
|
|
649
|
+
##
|
|
650
|
+
|
|
498
651
|
from .completion import ( # noqa
|
|
499
652
|
CompletionOption,
|
|
500
653
|
CompletionOptions,
|
|
@@ -558,6 +711,10 @@ with _lang.auto_proxy_init(
|
|
|
558
711
|
)
|
|
559
712
|
|
|
560
713
|
from .standard import ( # noqa
|
|
714
|
+
Device,
|
|
715
|
+
|
|
716
|
+
ApiUrl,
|
|
717
|
+
|
|
561
718
|
ApiKey,
|
|
562
719
|
|
|
563
720
|
DefaultOptions,
|