ommlds 0.0.0.dev452__tar.gz → 0.0.0.dev454__tar.gz
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.
Potentially problematic release.
This version of ommlds might be problematic. Click here for more details.
- {ommlds-0.0.0.dev452/ommlds.egg-info → ommlds-0.0.0.dev454}/PKG-INFO +3 -3
- ommlds-0.0.0.dev454/ommlds/minichain/_marshal.py +67 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/_typedvalues.py +2 -4
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/_marshal.py +20 -17
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/materialize.py +1 -1
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/interleave.py +1 -1
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/squeeze.py +1 -1
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/stringify.py +1 -1
- ommlds-0.0.0.dev454/ommlds/minichain/llms/_marshal.py +57 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/_marshal.py +44 -37
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/_marshal.py +10 -9
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454/ommlds.egg-info}/PKG-INFO +3 -3
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/requires.txt +2 -2
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/pyproject.toml +3 -3
- ommlds-0.0.0.dev452/ommlds/minichain/_marshal.py +0 -66
- ommlds-0.0.0.dev452/ommlds/minichain/llms/_marshal.py +0 -49
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/LICENSE +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/MANIFEST.in +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/README.md +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/.omlish-manifests.json +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/__about__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/_hacks/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/_hacks/patches.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/_marshal.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/assemble.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/events.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/protocol/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/llamacpp/buildwheel.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/llamacpp/logging.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/__main__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/caching.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/cli.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/generation.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/limits.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/loading.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/LICENSE +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/base.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/bpe.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/naive.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/spm.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/loading.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/tokenization.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/_common.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/chunk.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/contentpart.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/message.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/request.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/response.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/responseformat.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/tokenlogprob.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/completionusage.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/LICENSE +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/__main__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/attention.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/cli.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/fetch.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/llm.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/loading.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/quantization.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/sampling.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/tokenization.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/transformer.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/__main__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/cli.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/clip.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/sdxl.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/unet.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/tinygrad.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/backends.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/devices.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/purge.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/__main__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/backends/inject.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/backends/standard.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/inject.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/main.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/base.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/base.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/code.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/inject.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/interactive.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/printing.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/prompt.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/state.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/tools.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/completion/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/completion/completion.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/embedding/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/embedding/embedding.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/inject.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/state.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/config.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/inject.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/weather.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/datasets/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/datasets/lib/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/datasets/lib/movies.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/huggingface.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/base.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/simple.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/strings.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/chat.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/names.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/stream.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/duckduckgo/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/duckduckgo/search.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/chat.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/names.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/search.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/stream.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/tools.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/huggingface/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/huggingface/configs.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/huggingface/repos.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/chat.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/completion.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/format.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/stream.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/mistral.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/mlx/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/mlx/chat.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/chat.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/completion.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/embedding.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/format.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/format2.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/names.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/stream.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/sentencepiece/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/sentencepiece/tokens.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/sqlite.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tinygrad/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tinygrad/chat.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tokenizers/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tokenizers/tokens.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/sentence.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/tokens.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/transformers.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/manifests.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/parsing.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/resolving.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/_marshal.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/adapters.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/services.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/formats.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/history.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/messages.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/metadata.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/services.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/_marshal.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/adapters.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/services.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/templating.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/execution.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/ids.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/parsing.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/base.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/metadata.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/services.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/completion.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/configs.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/images.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/json.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/metadata.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/namespaces.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/placeholders.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/prepare.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/sequence.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/simple.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/text.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/base.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/strings.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/docs.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/dtypes.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/filters.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/envs.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/json.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/bash.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/code/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/code/prompts.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/binfiles.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/context.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/errors.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/suggestions.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/edit.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/ls.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/read.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/execution.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/rendering.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/running.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/context.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/tools/read.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/tools/write.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/llms/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/llms/tokens.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/llms/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/metadata.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/configs.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/names.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/repos/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/repos/resolving.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/globals.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/manifests.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/registry.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/resources.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/search.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/_origclasses.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/_typedvalues.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/facades.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/requests.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/responses.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/services.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/standard.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/stream/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/stream/services.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/stream/wrap.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/applypatch.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/base.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/dumb.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/LICENSE +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/hermes2.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/llama31.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/utils.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/specials.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/tokenizers.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/vocabs.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/_marshal.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/catalog.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/context.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/errors.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/executors.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/reflect.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/fns.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/jsonschema.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/reflect.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/utils.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/embeddings.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/index.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/search.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/similarity.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/stores.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/types.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/__main__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/cli.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/client.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/server.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/service.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/tools/git.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/tools/ocr.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/analyze.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/convert.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/models.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/text/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/text/mfh.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/text/wtp.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/__init__.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/io.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/progress.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/xml.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/xml.py +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/SOURCES.txt +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/dependency_links.txt +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/entry_points.txt +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/top_level.txt +0 -0
- {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ommlds
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev454
|
|
4
4
|
Summary: ommlds
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -14,8 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Requires-Python: >=3.13
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: omdev==0.0.0.
|
|
18
|
-
Requires-Dist: omlish==0.0.0.
|
|
17
|
+
Requires-Dist: omdev==0.0.0.dev454
|
|
18
|
+
Requires-Dist: omlish==0.0.0.dev454
|
|
19
19
|
Provides-Extra: all
|
|
20
20
|
Requires-Dist: llama-cpp-python~=0.3; extra == "all"
|
|
21
21
|
Requires-Dist: mlx~=0.29; extra == "all"
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import dataclasses as dc
|
|
4
|
+
from omlish import lang
|
|
5
|
+
from omlish import marshal as msh
|
|
6
|
+
from omlish import reflect as rfl
|
|
7
|
+
from omlish.typedvalues.marshal import build_typed_values_marshaler
|
|
8
|
+
from omlish.typedvalues.marshal import build_typed_values_unmarshaler
|
|
9
|
+
|
|
10
|
+
from .json import JsonValue
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
##
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dc.dataclass()
|
|
17
|
+
class _TypedValuesFieldMarshalerFactory(msh.MarshalerFactory):
|
|
18
|
+
tvs_rty: rfl.Type
|
|
19
|
+
|
|
20
|
+
def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
|
|
21
|
+
return lambda: build_typed_values_marshaler(ctx, self.tvs_rty)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@dc.dataclass()
|
|
25
|
+
class _TypedValuesFieldUnmarshalerFactory(msh.UnmarshalerFactory):
|
|
26
|
+
tvs_rty: rfl.Type
|
|
27
|
+
|
|
28
|
+
def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
|
|
29
|
+
return lambda: build_typed_values_unmarshaler(ctx, self.tvs_rty)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
##
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MarshalJsonValue(lang.NotInstantiable, lang.Final):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class _JsonValueMarshalerFactory(msh.MarshalerFactory):
|
|
40
|
+
def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
|
|
41
|
+
if rty is not MarshalJsonValue:
|
|
42
|
+
return None
|
|
43
|
+
return lambda: msh.NopMarshalerUnmarshaler()
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class _JsonValueUnmarshalerFactory(msh.UnmarshalerFactory):
|
|
47
|
+
def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
|
|
48
|
+
if rty is not MarshalJsonValue:
|
|
49
|
+
return None
|
|
50
|
+
return lambda: msh.NopMarshalerUnmarshaler()
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
##
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@lang.static_init
|
|
57
|
+
def _install_standard_marshaling() -> None:
|
|
58
|
+
msh.register_global_config(
|
|
59
|
+
JsonValue,
|
|
60
|
+
msh.ReflectOverride(MarshalJsonValue),
|
|
61
|
+
identity=True,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
msh.install_standard_factories(
|
|
65
|
+
_JsonValueMarshalerFactory(),
|
|
66
|
+
_JsonValueUnmarshalerFactory(),
|
|
67
|
+
)
|
|
@@ -74,12 +74,10 @@ def _tv_field_metadata(
|
|
|
74
74
|
omit_if=operator.not_,
|
|
75
75
|
),
|
|
76
76
|
marshaler_factory=msh.FuncMarshalerFactory(
|
|
77
|
-
lambda ctx, rty:
|
|
78
|
-
lambda ctx, rty: _marshal._TypedValuesFieldMarshalerFactory(tvs_rty)(ctx, rty), # noqa
|
|
77
|
+
lambda ctx, rty: _marshal._TypedValuesFieldMarshalerFactory(tvs_rty).make_marshaler(ctx, rty), # noqa
|
|
79
78
|
),
|
|
80
79
|
unmarshaler_factory=msh.FuncUnmarshalerFactory(
|
|
81
|
-
lambda ctx, rty:
|
|
82
|
-
lambda ctx, rty: _marshal._TypedValuesFieldUnmarshalerFactory(tvs_rty)(ctx, rty), # noqa
|
|
80
|
+
lambda ctx, rty: _marshal._TypedValuesFieldUnmarshalerFactory(tvs_rty).make_unmarshaler(ctx, rty), # noqa
|
|
83
81
|
),
|
|
84
82
|
),
|
|
85
83
|
}
|
|
@@ -6,7 +6,6 @@ from omlish import check
|
|
|
6
6
|
from omlish import lang
|
|
7
7
|
from omlish import marshal as msh
|
|
8
8
|
from omlish import reflect as rfl
|
|
9
|
-
from omlish.funcs import match as mfs
|
|
10
9
|
|
|
11
10
|
from .images import ImageContent # noqa
|
|
12
11
|
from .json import JsonContent # noqa
|
|
@@ -53,10 +52,11 @@ class _ContentMarshaler(msh.Marshaler):
|
|
|
53
52
|
raise TypeError(o)
|
|
54
53
|
|
|
55
54
|
|
|
56
|
-
class _ContentMarshalerFactory(msh.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
class _ContentMarshalerFactory(msh.MarshalerFactory):
|
|
56
|
+
def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
|
|
57
|
+
if not (rty is MarshalContent or rty == _MARSHAL_CONTENT_UNION_RTY):
|
|
58
|
+
return None
|
|
59
|
+
return lambda: _ContentMarshaler(ctx.make(ExtendedContent))
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
@dc.dataclass(frozen=True)
|
|
@@ -74,10 +74,11 @@ class _ContentUnmarshaler(msh.Unmarshaler):
|
|
|
74
74
|
raise TypeError(v)
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
class _ContentUnmarshalerFactory(msh.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
class _ContentUnmarshalerFactory(msh.UnmarshalerFactory):
|
|
78
|
+
def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
|
|
79
|
+
if not (rty is MarshalContent or rty == _MARSHAL_CONTENT_UNION_RTY):
|
|
80
|
+
return None
|
|
81
|
+
return lambda: _ContentUnmarshaler(ctx.make(ExtendedContent))
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
##
|
|
@@ -104,10 +105,11 @@ class _CanContentMarshaler(msh.Marshaler):
|
|
|
104
105
|
return self.c.marshal(ctx, check.isinstance(o, CONTENT_RUNTIME_TYPES))
|
|
105
106
|
|
|
106
107
|
|
|
107
|
-
class _CanContentMarshalerFactory(msh.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
class _CanContentMarshalerFactory(msh.MarshalerFactory):
|
|
109
|
+
def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
|
|
110
|
+
if not (rty is MarshalCanContent or rty == _MARSHAL_CAN_CONTENT_UNION_RTY):
|
|
111
|
+
return None
|
|
112
|
+
return lambda: _CanContentMarshaler(ctx.make(Content))
|
|
111
113
|
|
|
112
114
|
|
|
113
115
|
@dc.dataclass(frozen=True)
|
|
@@ -118,10 +120,11 @@ class _CanContentUnmarshaler(msh.Unmarshaler):
|
|
|
118
120
|
return self.c.unmarshal(ctx, v)
|
|
119
121
|
|
|
120
122
|
|
|
121
|
-
class _CanContentUnmarshalerFactory(msh.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
class _CanContentUnmarshalerFactory(msh.UnmarshalerFactory):
|
|
124
|
+
def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
|
|
125
|
+
if not (rty is MarshalCanContent or rty == _MARSHAL_CAN_CONTENT_UNION_RTY):
|
|
126
|
+
return None
|
|
127
|
+
return lambda: _CanContentUnmarshaler(ctx.make(Content))
|
|
125
128
|
|
|
126
129
|
|
|
127
130
|
##
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TODO:
|
|
3
|
+
- can this for reuse
|
|
4
|
+
"""
|
|
5
|
+
import typing as ta
|
|
6
|
+
|
|
7
|
+
from omlish import check
|
|
8
|
+
from omlish import dataclasses as dc
|
|
9
|
+
from omlish import lang
|
|
10
|
+
from omlish import marshal as msh
|
|
11
|
+
from omlish import reflect as rfl
|
|
12
|
+
|
|
13
|
+
from .tokens import Tokens
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
##
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class TokensMarshalerFactory(msh.MarshalerFactory):
|
|
20
|
+
def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
|
|
21
|
+
if rty is not Tokens:
|
|
22
|
+
return None
|
|
23
|
+
|
|
24
|
+
dc_rfl = dc.reflect(Tokens)
|
|
25
|
+
dc_f = check.single(dc_rfl.fields.values())
|
|
26
|
+
v_rty = rfl.type_(dc_f.type)
|
|
27
|
+
v_m = ctx.make(v_rty)
|
|
28
|
+
f_n = dc_f.name
|
|
29
|
+
|
|
30
|
+
def inner() -> msh.Marshaler:
|
|
31
|
+
return msh.WrappedMarshaler(lambda _, o: getattr(o, f_n), v_m)
|
|
32
|
+
|
|
33
|
+
return inner
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class TokensUnmarshalerFactory(msh.UnmarshalerFactory):
|
|
37
|
+
def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
|
|
38
|
+
if rty is not Tokens:
|
|
39
|
+
return None
|
|
40
|
+
|
|
41
|
+
dc_rfl = dc.reflect(Tokens)
|
|
42
|
+
dc_f = check.single(dc_rfl.fields.values())
|
|
43
|
+
v_rty = rfl.type_(dc_f.type)
|
|
44
|
+
v_u = ctx.make(v_rty)
|
|
45
|
+
|
|
46
|
+
def inner() -> msh.Unmarshaler:
|
|
47
|
+
return msh.WrappedUnmarshaler(lambda _, v: Tokens(v), v_u)
|
|
48
|
+
|
|
49
|
+
return inner
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@lang.static_init
|
|
53
|
+
def _install_standard_marshaling() -> None:
|
|
54
|
+
msh.install_standard_factories(
|
|
55
|
+
TokensMarshalerFactory(),
|
|
56
|
+
TokensUnmarshalerFactory(),
|
|
57
|
+
)
|
|
@@ -57,26 +57,30 @@ class _RequestResponseMarshaler(msh.Marshaler):
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
class _RequestResponseMarshalerFactory(msh.
|
|
61
|
-
def
|
|
62
|
-
|
|
60
|
+
class _RequestResponseMarshalerFactory(msh.MarshalerFactory):
|
|
61
|
+
def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
|
|
62
|
+
if not _is_rr_rty(rty):
|
|
63
|
+
return None
|
|
63
64
|
|
|
64
|
-
def fn(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
|
|
65
65
|
if isinstance(rty, type):
|
|
66
66
|
rty = rfl.type_(rfl.get_orig_class(rty))
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
v_m =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
67
|
+
|
|
68
|
+
def inner() -> msh.Marshaler:
|
|
69
|
+
if isinstance(rty, rfl.Generic):
|
|
70
|
+
v_rty, tv_rty = rty.args
|
|
71
|
+
else:
|
|
72
|
+
# FIXME: ...
|
|
73
|
+
raise TypeError(rty)
|
|
74
|
+
v_m: msh.Marshaler | None = None
|
|
75
|
+
if not isinstance(v_rty, ta.TypeVar):
|
|
76
|
+
v_m = ctx.make(v_rty)
|
|
77
|
+
return _RequestResponseMarshaler(
|
|
78
|
+
rty,
|
|
79
|
+
_get_tv_fld(rty),
|
|
80
|
+
v_m,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
return inner
|
|
80
84
|
|
|
81
85
|
|
|
82
86
|
#
|
|
@@ -108,26 +112,29 @@ class _RequestResponseUnmarshaler(msh.Unmarshaler):
|
|
|
108
112
|
return cty(v, tvs) # type: ignore
|
|
109
113
|
|
|
110
114
|
|
|
111
|
-
class _RequestResponseUnmarshalerFactory(msh.
|
|
112
|
-
def
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
115
|
+
class _RequestResponseUnmarshalerFactory(msh.UnmarshalerFactory):
|
|
116
|
+
def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
|
|
117
|
+
if not _is_rr_rty(rty):
|
|
118
|
+
return None
|
|
119
|
+
|
|
120
|
+
def inner() -> msh.Unmarshaler:
|
|
121
|
+
if isinstance(rty, rfl.Generic):
|
|
122
|
+
v_rty, tv_rty = rty.args
|
|
123
|
+
else:
|
|
124
|
+
# FIXME: ...
|
|
125
|
+
raise TypeError(rty)
|
|
126
|
+
tv_types_set = check.isinstance(tv_rty, rfl.Union).args
|
|
127
|
+
tv_ta = tv.TypedValues[ta.Union[*tv_types_set]] # type: ignore
|
|
128
|
+
tv_u = ctx.make(tv_ta)
|
|
129
|
+
v_u = ctx.make(v_rty)
|
|
130
|
+
return _RequestResponseUnmarshaler(
|
|
131
|
+
rty,
|
|
132
|
+
_get_tv_fld(rty),
|
|
133
|
+
v_u,
|
|
134
|
+
tv_u,
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
return inner
|
|
131
138
|
|
|
132
139
|
|
|
133
140
|
##
|
|
@@ -9,7 +9,6 @@ from omlish import check
|
|
|
9
9
|
from omlish import lang
|
|
10
10
|
from omlish import marshal as msh
|
|
11
11
|
from omlish import reflect as rfl
|
|
12
|
-
from omlish.funcs import match as mfs
|
|
13
12
|
|
|
14
13
|
from .types import Vector
|
|
15
14
|
|
|
@@ -25,10 +24,11 @@ class _VectorMarshaler(msh.Marshaler):
|
|
|
25
24
|
return self.et.marshal(ctx, list(map(float, check.isinstance(o, Vector))))
|
|
26
25
|
|
|
27
26
|
|
|
28
|
-
class _VectorMarshalerFactory(msh.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
class _VectorMarshalerFactory(msh.MarshalerFactory):
|
|
28
|
+
def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
|
|
29
|
+
if rty is not Vector:
|
|
30
|
+
return None
|
|
31
|
+
return lambda: _VectorMarshaler(ctx.make(ta.Sequence[float]))
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
@dc.dataclass(frozen=True)
|
|
@@ -39,10 +39,11 @@ class _VectorUnmarshaler(msh.Unmarshaler):
|
|
|
39
39
|
return Vector(self.et.unmarshal(ctx, v))
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class _VectorUnmarshalerFactory(msh.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
class _VectorUnmarshalerFactory(msh.UnmarshalerFactory):
|
|
43
|
+
def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
|
|
44
|
+
if rty is not Vector:
|
|
45
|
+
return None
|
|
46
|
+
return lambda: _VectorUnmarshaler(ctx.make(ta.Sequence[float]))
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
##
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ommlds
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev454
|
|
4
4
|
Summary: ommlds
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -14,8 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Requires-Python: >=3.13
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: omdev==0.0.0.
|
|
18
|
-
Requires-Dist: omlish==0.0.0.
|
|
17
|
+
Requires-Dist: omdev==0.0.0.dev454
|
|
18
|
+
Requires-Dist: omlish==0.0.0.dev454
|
|
19
19
|
Provides-Extra: all
|
|
20
20
|
Requires-Dist: llama-cpp-python~=0.3; extra == "all"
|
|
21
21
|
Requires-Dist: mlx~=0.29; extra == "all"
|
|
@@ -13,7 +13,7 @@ urls = {source = 'https://github.com/wrmsr/omlish'}
|
|
|
13
13
|
license = 'BSD-3-Clause'
|
|
14
14
|
readme = 'README.md'
|
|
15
15
|
requires-python = '>=3.13'
|
|
16
|
-
version = '0.0.0.
|
|
16
|
+
version = '0.0.0.dev454'
|
|
17
17
|
classifiers = [
|
|
18
18
|
'Development Status :: 2 - Pre-Alpha',
|
|
19
19
|
'Intended Audience :: Developers',
|
|
@@ -24,8 +24,8 @@ classifiers = [
|
|
|
24
24
|
]
|
|
25
25
|
description = 'ommlds'
|
|
26
26
|
dependencies = [
|
|
27
|
-
'omdev == 0.0.0.
|
|
28
|
-
'omlish == 0.0.0.
|
|
27
|
+
'omdev == 0.0.0.dev454',
|
|
28
|
+
'omlish == 0.0.0.dev454',
|
|
29
29
|
]
|
|
30
30
|
|
|
31
31
|
[project.optional-dependencies]
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
from omlish import dataclasses as dc
|
|
2
|
-
from omlish import lang
|
|
3
|
-
from omlish import marshal as msh
|
|
4
|
-
from omlish import reflect as rfl
|
|
5
|
-
from omlish.funcs import match as mfs
|
|
6
|
-
from omlish.typedvalues.marshal import build_typed_values_marshaler
|
|
7
|
-
from omlish.typedvalues.marshal import build_typed_values_unmarshaler
|
|
8
|
-
|
|
9
|
-
from .json import JsonValue
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
##
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@dc.dataclass()
|
|
16
|
-
class _TypedValuesFieldMarshalerFactory(msh.MarshalerFactoryMatchClass):
|
|
17
|
-
tvs_rty: rfl.Type
|
|
18
|
-
|
|
19
|
-
@mfs.simple(lambda _, ctx, rty: True)
|
|
20
|
-
def _build(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
|
|
21
|
-
return build_typed_values_marshaler(ctx, self.tvs_rty)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
@dc.dataclass()
|
|
25
|
-
class _TypedValuesFieldUnmarshalerFactory(msh.UnmarshalerFactoryMatchClass):
|
|
26
|
-
tvs_rty: rfl.Type
|
|
27
|
-
|
|
28
|
-
@mfs.simple(lambda _, ctx, rty: True)
|
|
29
|
-
def _build(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
|
|
30
|
-
return build_typed_values_unmarshaler(ctx, self.tvs_rty)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
##
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class MarshalJsonValue(lang.NotInstantiable, lang.Final):
|
|
37
|
-
pass
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
class _JsonValueMarshalerFactory(msh.MarshalerFactoryMatchClass):
|
|
41
|
-
@mfs.simple(lambda _, ctx, rty: rty is MarshalJsonValue)
|
|
42
|
-
def _build(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
|
|
43
|
-
return msh.NopMarshalerUnmarshaler()
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class _JsonValueUnmarshalerFactory(msh.UnmarshalerFactoryMatchClass):
|
|
47
|
-
@mfs.simple(lambda _, ctx, rty: rty is MarshalJsonValue)
|
|
48
|
-
def _build(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
|
|
49
|
-
return msh.NopMarshalerUnmarshaler()
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
##
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@lang.static_init
|
|
56
|
-
def _install_standard_marshaling() -> None:
|
|
57
|
-
msh.register_global_config(
|
|
58
|
-
JsonValue,
|
|
59
|
-
msh.ReflectOverride(MarshalJsonValue),
|
|
60
|
-
identity=True,
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
msh.install_standard_factories(
|
|
64
|
-
_JsonValueMarshalerFactory(),
|
|
65
|
-
_JsonValueUnmarshalerFactory(),
|
|
66
|
-
)
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
TODO:
|
|
3
|
-
- can this for reuse
|
|
4
|
-
"""
|
|
5
|
-
from omlish import check
|
|
6
|
-
from omlish import dataclasses as dc
|
|
7
|
-
from omlish import lang
|
|
8
|
-
from omlish import marshal as msh
|
|
9
|
-
from omlish import reflect as rfl
|
|
10
|
-
|
|
11
|
-
from .tokens import Tokens
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class TokensMarshalerFactory(msh.SimpleMarshalerFactory):
|
|
18
|
-
def guard(self, ctx: msh.MarshalContext, rty: rfl.Type) -> bool:
|
|
19
|
-
return rty is Tokens
|
|
20
|
-
|
|
21
|
-
def fn(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
|
|
22
|
-
rty = check.isinstance(check.is_(rty, Tokens), type)
|
|
23
|
-
dc_rfl = dc.reflect(rty)
|
|
24
|
-
dc_f = check.single(dc_rfl.fields.values())
|
|
25
|
-
v_rty = rfl.type_(dc_f.type)
|
|
26
|
-
v_m = ctx.make(v_rty)
|
|
27
|
-
f_n = dc_f.name
|
|
28
|
-
return msh.WrappedMarshaler(lambda _, o: getattr(o, f_n), v_m)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class TokensUnmarshalerFactory(msh.SimpleUnmarshalerFactory):
|
|
32
|
-
def guard(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> bool:
|
|
33
|
-
return rty is Tokens
|
|
34
|
-
|
|
35
|
-
def fn(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
|
|
36
|
-
rty = check.isinstance(check.is_(rty, Tokens), type)
|
|
37
|
-
dc_rfl = dc.reflect(rty)
|
|
38
|
-
dc_f = check.single(dc_rfl.fields.values())
|
|
39
|
-
v_rty = rfl.type_(dc_f.type)
|
|
40
|
-
v_u = ctx.make(v_rty)
|
|
41
|
-
return msh.WrappedUnmarshaler(lambda _, v: rty(v), v_u)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@lang.static_init
|
|
45
|
-
def _install_standard_marshaling() -> None:
|
|
46
|
-
msh.install_standard_factories(
|
|
47
|
-
TokensMarshalerFactory(),
|
|
48
|
-
TokensUnmarshalerFactory(),
|
|
49
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/__init__.py
RENAMED
|
File without changes
|
{ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/_marshal.py
RENAMED
|
File without changes
|
{ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/assemble.py
RENAMED
|
File without changes
|
{ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/events.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|