ommlds 0.0.0.dev464__tar.gz → 0.0.0.dev465__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.dev464/ommlds.egg-info → ommlds-0.0.0.dev465}/PKG-INFO +3 -3
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/.omlish-manifests.json +2 -2
- ommlds-0.0.0.dev465/ommlds/cli/inject.py +37 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/main.py +14 -11
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/ai/inject.py +10 -13
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/state/storage.py +1 -1
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/inject.py +10 -0
- ommlds-0.0.0.dev465/ommlds/cli/sessions/completion/configs.py +21 -0
- ommlds-0.0.0.dev465/ommlds/cli/sessions/completion/inject.py +28 -0
- ommlds-0.0.0.dev464/ommlds/cli/sessions/completion/completion.py → ommlds-0.0.0.dev465/ommlds/cli/sessions/completion/session.py +4 -9
- ommlds-0.0.0.dev465/ommlds/cli/sessions/embedding/configs.py +21 -0
- ommlds-0.0.0.dev465/ommlds/cli/sessions/embedding/inject.py +28 -0
- ommlds-0.0.0.dev464/ommlds/cli/sessions/embedding/embedding.py → ommlds-0.0.0.dev465/ommlds/cli/sessions/embedding/session.py +4 -9
- ommlds-0.0.0.dev465/ommlds/cli/sessions/inject.py +38 -0
- ommlds-0.0.0.dev465/ommlds/cli/state/inject.py +28 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/anthropic/chat.py +4 -61
- ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/anthropic/protocol.py +109 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/anthropic/stream.py +17 -17
- ommlds-0.0.0.dev465/ommlds/wiki/utils/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465/ommlds.egg-info}/PKG-INFO +3 -3
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds.egg-info/SOURCES.txt +10 -3
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds.egg-info/requires.txt +2 -2
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/pyproject.toml +3 -3
- ommlds-0.0.0.dev464/ommlds/cli/inject.py +0 -50
- ommlds-0.0.0.dev464/ommlds/cli/sessions/inject.py +0 -21
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/LICENSE +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/MANIFEST.in +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/README.md +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/__about__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/_hacks/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/_hacks/patches.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/protocol/sse/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/protocol/sse/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/protocol/sse/assemble.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/protocol/sse/events.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/anthropic/protocol/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/google/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/google/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/google/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/google/protocol/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/llamacpp/buildwheel.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/llamacpp/logging.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/__main__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/caching.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/cli.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/generation.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/limits.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/loading.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/LICENSE +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/detokenization/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/detokenization/base.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/detokenization/bpe.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/detokenization/naive.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/detokenization/spm.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/loading.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/tokenization.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/mlx/tokenization/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/_common.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/chunk.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/contentpart.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/message.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/request.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/response.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/responseformat.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/chatcompletion/tokenlogprob.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/openai/protocol/completionusage.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/LICENSE +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/__main__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/attention.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/cli.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/fetch.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/llm.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/loading.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/quantization.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/sampling.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/tokenization.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/llama3/transformer.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/sdxl/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/sdxl/__main__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/sdxl/cli.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/sdxl/clip.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/sdxl/sdxl.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/models/sdxl/unet.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/tinygrad/tinygrad.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/torch/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/torch/backends.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/torch/devices.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/backends/torch/purge.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/__main__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/backends/inject.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/backends/standard.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/base.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/backends/catalog.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/backends/inject.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/backends/injection.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/backends/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/ai/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/ai/injection.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/ai/rendering.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/ai/services.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/ai/tools.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/ai/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/state/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/state/inject.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/state/inmemory.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/state/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/user/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/user/inject.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/user/interactive.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/user/oneshot.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/chat/user/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/configs.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/content/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/content/messages.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/content/strings.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/driver.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/phases/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/phases/inject.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/phases/injection.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/phases/manager.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/phases/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/rendering/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/rendering/inject.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/rendering/markdown.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/rendering/raw.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/rendering/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/session.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/tools/confirmation.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/tools/execution.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/tools/inject.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/tools/injection.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/tools/rendering.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/chat/tools/weather.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/completion/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/cli/sessions/embedding/__init__.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/datasets → ommlds-0.0.0.dev465/ommlds/cli/state}/__init__.py +0 -0
- /ommlds-0.0.0.dev464/ommlds/cli/state.py → /ommlds-0.0.0.dev465/ommlds/cli/state/storage.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/datasets/lib → ommlds-0.0.0.dev465/ommlds/datasets}/__init__.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends → ommlds-0.0.0.dev465/ommlds/datasets/lib}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/datasets/lib/movies.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/huggingface.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/_typedvalues.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/catalogs → ommlds-0.0.0.dev465/ommlds/minichain/backends}/__init__.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls → ommlds-0.0.0.dev465/ommlds/minichain/backends/catalogs}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/catalogs/base.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/catalogs/simple.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/catalogs/strings.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/anthropic → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls}/__init__.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/duckduckgo → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/anthropic}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/anthropic/names.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/google → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/duckduckgo}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/duckduckgo/search.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/huggingface → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/google}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/google/chat.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/google/names.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/google/search.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/google/stream.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/google/tools.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/llamacpp → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/huggingface}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/huggingface/configs.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/huggingface/repos.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/mlx → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/llamacpp}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/llamacpp/chat.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/llamacpp/completion.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/llamacpp/format.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/llamacpp/stream.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/mistral.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/openai → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/mlx}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/mlx/chat.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/sentencepiece → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/openai}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/openai/chat.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/openai/completion.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/openai/embedding.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/openai/format.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/openai/format2.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/openai/names.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/openai/stream.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/tinygrad → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/sentencepiece}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/sentencepiece/tokens.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/sqlite.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/tokenizers → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/tinygrad}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/tinygrad/chat.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/impls/transformers → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/tokenizers}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/tokenizers/tokens.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/backends/strings → ommlds-0.0.0.dev465/ommlds/minichain/backends/impls/transformers}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/transformers/sentence.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/transformers/tokens.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/transformers/transformers.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/chat → ommlds-0.0.0.dev465/ommlds/minichain/backends/strings}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/strings/manifests.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/strings/parsing.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/strings/resolving.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/chat/choices → ommlds-0.0.0.dev465/ommlds/minichain/chat}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/_marshal.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/chat/stream → ommlds-0.0.0.dev465/ommlds/minichain/chat/choices}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/choices/adapters.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/choices/services.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/choices/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/formats.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/history.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/messages.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/metadata.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/services.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/chat/tools → ommlds-0.0.0.dev465/ommlds/minichain/chat/stream}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/stream/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/stream/adapters.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/stream/services.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/stream/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/templating.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/chat/transforms → ommlds-0.0.0.dev465/ommlds/minichain/chat/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/tools/execution.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/tools/ids.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/tools/parsing.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/tools/types.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/content → ommlds-0.0.0.dev465/ommlds/minichain/chat}/transforms/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/transforms/base.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/transforms/metadata.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/transforms/services.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/chat/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/completion.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/configs.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/images.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/json.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/materialize.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/metadata.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/namespaces.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/placeholders.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/prepare.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/sequence.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/simple.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/text.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/lib → ommlds-0.0.0.dev465/ommlds/minichain/content/transforms}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/transforms/base.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/transforms/interleave.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/transforms/squeeze.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/transforms/stringify.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/transforms/strings.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/content/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/docs/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/docs/docs.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/docs/dtypes.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/docs/filters.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/envs.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/json.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/lib/code → ommlds-0.0.0.dev465/ommlds/minichain/lib}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/bash.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/lib/fs → ommlds-0.0.0.dev465/ommlds/minichain/lib/code}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/code/prompts.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/lib/fs/tools → ommlds-0.0.0.dev465/ommlds/minichain/lib/fs}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/binfiles.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/context.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/errors.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/suggestions.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/lib/fs/tools/recursivels → ommlds-0.0.0.dev465/ommlds/minichain/lib/fs/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/tools/edit.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/tools/ls.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/tools/read.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/lib/todo → ommlds-0.0.0.dev465/ommlds/minichain/lib/fs/tools/recursivels}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/tools/recursivels/execution.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/tools/recursivels/rendering.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/fs/tools/recursivels/running.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/lib/todo/tools → ommlds-0.0.0.dev465/ommlds/minichain/lib/todo}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/todo/context.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/llms → ommlds-0.0.0.dev465/ommlds/minichain/lib/todo/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/todo/tools/read.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/todo/tools/write.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/lib/todo/types.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/models → ommlds-0.0.0.dev465/ommlds/minichain/llms}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/llms/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/llms/tokens.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/llms/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/metadata.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/models/repos → ommlds-0.0.0.dev465/ommlds/minichain/models}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/models/configs.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/models/names.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/registries → ommlds-0.0.0.dev465/ommlds/minichain/models/repos}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/models/repos/resolving.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/stream → ommlds-0.0.0.dev465/ommlds/minichain/registries}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/registries/globals.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/registries/manifests.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/registries/registry.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/resources.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/search.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/_origclasses.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/_typedvalues.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/facades.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/requests.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/responses.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/services/services.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/standard.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/text → ommlds-0.0.0.dev465/ommlds/minichain/stream}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/stream/services.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/stream/wrap.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/text/toolparsing → ommlds-0.0.0.dev465/ommlds/minichain/text}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/applypatch.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/tools → ommlds-0.0.0.dev465/ommlds/minichain/text/toolparsing}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/base.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/dumb.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/llamacpp/LICENSE +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/llamacpp/hermes2.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/llamacpp/llama31.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/llamacpp/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/text/toolparsing/llamacpp/utils.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tokens/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tokens/specials.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tokens/tokenizers.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tokens/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tokens/vocabs.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/tools/execution → ommlds-0.0.0.dev465/ommlds/minichain/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/_marshal.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/minichain/vectors → ommlds-0.0.0.dev465/ommlds/minichain/tools/execution}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/execution/catalog.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/execution/context.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/execution/errors.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/execution/executors.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/execution/reflect.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/fns.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/jsonschema.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/reflect.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/tools/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/types.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/utils.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/server → ommlds-0.0.0.dev465/ommlds/minichain/vectors}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/vectors/_marshal.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/vectors/embeddings.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/vectors/index.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/vectors/search.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/vectors/similarity.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/vectors/stores.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/vectors/types.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/tools → ommlds-0.0.0.dev465/ommlds/server}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/server/__main__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/server/cli.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/server/client.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/server/server.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/server/service.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/wiki → ommlds-0.0.0.dev465/ommlds/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/tools/git.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/tools/ocr.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/wiki/text → ommlds-0.0.0.dev465/ommlds/wiki}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/analyze.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/convert.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/models.py +0 -0
- {ommlds-0.0.0.dev464/ommlds/wiki/utils → ommlds-0.0.0.dev465/ommlds/wiki/text}/__init__.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/text/mfh.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/text/wtp.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/utils/io.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/utils/progress.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/utils/xml.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/wiki/xml.py +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds.egg-info/dependency_links.txt +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds.egg-info/entry_points.txt +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds.egg-info/top_level.txt +0 -0
- {ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/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.dev465
|
|
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.dev465
|
|
18
|
+
Requires-Dist: omlish==0.0.0.dev465
|
|
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"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": ".minichain.backends.impls.anthropic.chat",
|
|
19
19
|
"attr": null,
|
|
20
20
|
"file": "ommlds/minichain/backends/impls/anthropic/chat.py",
|
|
21
|
-
"line":
|
|
21
|
+
"line": 38,
|
|
22
22
|
"value": {
|
|
23
23
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
24
24
|
"module": "ommlds.minichain.backends.impls.anthropic.chat",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"module": ".minichain.backends.impls.anthropic.stream",
|
|
64
64
|
"attr": null,
|
|
65
65
|
"file": "ommlds/minichain/backends/impls/anthropic/stream.py",
|
|
66
|
-
"line":
|
|
66
|
+
"line": 35,
|
|
67
67
|
"value": {
|
|
68
68
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
69
69
|
"module": "ommlds.minichain.backends.impls.anthropic.stream",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import inject as inj
|
|
4
|
+
from omlish import lang
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
with lang.auto_proxy_import(globals()):
|
|
8
|
+
from .backends import inject as _backends
|
|
9
|
+
from .sessions import inject as _sessions
|
|
10
|
+
from .state import inject as _state
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
##
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def bind_main(
|
|
17
|
+
*,
|
|
18
|
+
session_cfg: ta.Any,
|
|
19
|
+
enable_backend_strings: bool = False,
|
|
20
|
+
) -> inj.Elements:
|
|
21
|
+
els: list[inj.Elemental] = []
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
els.extend([
|
|
26
|
+
_backends.bind_backends(
|
|
27
|
+
enable_backend_strings=enable_backend_strings,
|
|
28
|
+
),
|
|
29
|
+
|
|
30
|
+
_sessions.bind_sessions(session_cfg),
|
|
31
|
+
|
|
32
|
+
_state.bind_state(),
|
|
33
|
+
])
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
|
|
37
|
+
return inj.as_elements(*els)
|
|
@@ -24,9 +24,9 @@ from omlish.subprocesses.sync import subprocesses
|
|
|
24
24
|
from .. import minichain as mc
|
|
25
25
|
from .inject import bind_main
|
|
26
26
|
from .sessions.base import Session
|
|
27
|
-
from .sessions.chat.
|
|
28
|
-
from .sessions.completion.
|
|
29
|
-
from .sessions.embedding.
|
|
27
|
+
from .sessions.chat.configs import ChatConfig
|
|
28
|
+
from .sessions.completion.configs import CompletionConfig
|
|
29
|
+
from .sessions.embedding.configs import EmbeddingConfig
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
if ta.TYPE_CHECKING:
|
|
@@ -125,30 +125,33 @@ async def _a_main(args: ta.Any = None) -> None:
|
|
|
125
125
|
|
|
126
126
|
#
|
|
127
127
|
|
|
128
|
-
session_cfg:
|
|
128
|
+
session_cfg: ta.Any
|
|
129
129
|
|
|
130
130
|
if args.embed:
|
|
131
|
-
session_cfg =
|
|
131
|
+
session_cfg = EmbeddingConfig(
|
|
132
132
|
check.not_none(content), # noqa
|
|
133
133
|
backend=args.backend,
|
|
134
134
|
)
|
|
135
135
|
|
|
136
136
|
elif args.completion:
|
|
137
|
-
session_cfg =
|
|
137
|
+
session_cfg = CompletionConfig(
|
|
138
138
|
check.not_none(content), # noqa
|
|
139
139
|
backend=args.backend,
|
|
140
140
|
)
|
|
141
141
|
|
|
142
142
|
else:
|
|
143
|
-
|
|
143
|
+
system_content: mc.Content | None = None
|
|
144
|
+
if (args.new or args.ephemeral) and args.code:
|
|
145
|
+
from ..minichain.lib.code.prompts import CODE_AGENT_SYSTEM_PROMPT
|
|
146
|
+
system_content = CODE_AGENT_SYSTEM_PROMPT
|
|
144
147
|
|
|
145
|
-
session_cfg =
|
|
148
|
+
session_cfg = ChatConfig(
|
|
146
149
|
backend=args.backend,
|
|
147
150
|
model_name=args.model_name,
|
|
148
151
|
state='ephemeral' if args.ephemeral else 'new' if args.new else 'continue',
|
|
149
|
-
initial_system_content=
|
|
152
|
+
initial_system_content=system_content,
|
|
150
153
|
initial_user_content=content, # noqa
|
|
151
|
-
interactive=args.interactive,
|
|
154
|
+
interactive=bool(args.interactive),
|
|
152
155
|
markdown=bool(args.markdown),
|
|
153
156
|
stream=bool(args.stream),
|
|
154
157
|
enable_tools=(
|
|
@@ -171,7 +174,7 @@ async def _a_main(args: ta.Any = None) -> None:
|
|
|
171
174
|
|
|
172
175
|
with inj.create_managed_injector(bind_main(
|
|
173
176
|
session_cfg=session_cfg,
|
|
174
|
-
enable_backend_strings=isinstance(session_cfg,
|
|
177
|
+
enable_backend_strings=isinstance(session_cfg, ChatConfig),
|
|
175
178
|
)) as injector:
|
|
176
179
|
await injector[Session].run()
|
|
177
180
|
|
|
@@ -36,34 +36,31 @@ def bind_ai(
|
|
|
36
36
|
|
|
37
37
|
#
|
|
38
38
|
|
|
39
|
+
ai_stack = inj.wrapper_binder_helper(_types.AiChatGenerator)
|
|
40
|
+
|
|
39
41
|
if stream:
|
|
40
|
-
|
|
42
|
+
stream_ai_stack = inj.wrapper_binder_helper(_types.StreamAiChatGenerator)
|
|
41
43
|
|
|
42
|
-
els.append(
|
|
44
|
+
els.append(stream_ai_stack.push_bind(to_ctor=_services.ChatChoicesStreamServiceStreamAiChatGenerator, singleton=True)) # noqa
|
|
43
45
|
|
|
44
46
|
if not silent:
|
|
45
|
-
els.append(
|
|
46
|
-
|
|
47
|
-
if enable_tools:
|
|
48
|
-
raise NotImplementedError
|
|
47
|
+
els.append(stream_ai_stack.push_bind(to_ctor=_rendering.RenderingStreamAiChatGenerator, singleton=True))
|
|
49
48
|
|
|
50
49
|
els.extend([
|
|
51
|
-
inj.bind(_types.StreamAiChatGenerator, to_key=
|
|
52
|
-
|
|
50
|
+
inj.bind(_types.StreamAiChatGenerator, to_key=stream_ai_stack.top),
|
|
51
|
+
ai_stack.push_bind(to_key=_types.StreamAiChatGenerator),
|
|
53
52
|
])
|
|
54
53
|
|
|
55
54
|
else:
|
|
56
|
-
ai_stack = inj.wrapper_binder_helper(_types.AiChatGenerator)
|
|
57
|
-
|
|
58
55
|
els.append(ai_stack.push_bind(to_ctor=_services.ChatChoicesServiceAiChatGenerator, singleton=True))
|
|
59
56
|
|
|
60
57
|
if not silent:
|
|
61
58
|
els.append(ai_stack.push_bind(to_ctor=_rendering.RenderingAiChatGenerator, singleton=True))
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
if enable_tools:
|
|
61
|
+
els.append(ai_stack.push_bind(to_ctor=_tools.ToolExecutingAiChatGenerator, singleton=True))
|
|
65
62
|
|
|
66
|
-
|
|
63
|
+
els.append(inj.bind(_types.AiChatGenerator, to_key=ai_stack.top))
|
|
67
64
|
|
|
68
65
|
#
|
|
69
66
|
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
from omlish import dataclasses as dc
|
|
1
2
|
from omlish import inject as inj
|
|
2
3
|
from omlish import lang
|
|
3
4
|
|
|
5
|
+
from ..base import Session
|
|
4
6
|
from .configs import DEFAULT_CHAT_MODEL_BACKEND
|
|
5
7
|
from .configs import ChatConfig
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
with lang.auto_proxy_import(globals()):
|
|
9
11
|
from . import driver as _driver
|
|
12
|
+
from . import session as _session
|
|
10
13
|
from .backends import inject as _backends
|
|
11
14
|
from .chat.ai import inject as _chat_ai
|
|
12
15
|
from .chat.state import inject as _chat_state
|
|
@@ -69,4 +72,11 @@ def bind_chat(cfg: ChatConfig) -> inj.Elements:
|
|
|
69
72
|
|
|
70
73
|
#
|
|
71
74
|
|
|
75
|
+
els.extend([
|
|
76
|
+
inj.bind(_session.ChatSession.Config(**dc.asdict(cfg))),
|
|
77
|
+
inj.bind(Session, to_ctor=_session.ChatSession, singleton=True),
|
|
78
|
+
])
|
|
79
|
+
|
|
80
|
+
#
|
|
81
|
+
|
|
72
82
|
return inj.as_elements(*els)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import dataclasses as dc
|
|
2
|
+
|
|
3
|
+
from .... import minichain as mc
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
##
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DEFAULT_COMPLETION_MODEL_BACKEND = 'openai'
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
##
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dc.dataclass(frozen=True)
|
|
16
|
+
class CompletionConfig:
|
|
17
|
+
content: 'mc.Content'
|
|
18
|
+
|
|
19
|
+
_: dc.KW_ONLY
|
|
20
|
+
|
|
21
|
+
backend: str | None = None
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from omlish import dataclasses as dc
|
|
2
|
+
from omlish import inject as inj
|
|
3
|
+
from omlish import lang
|
|
4
|
+
|
|
5
|
+
from ..base import Session
|
|
6
|
+
from .configs import CompletionConfig
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
with lang.auto_proxy_import(globals()):
|
|
10
|
+
from . import session as _session
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
##
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def bind_completion(cfg: CompletionConfig) -> inj.Elements:
|
|
17
|
+
els: list[inj.Elemental] = []
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
|
|
21
|
+
els.extend([
|
|
22
|
+
inj.bind(_session.CompletionSession.Config(**dc.asdict(cfg))),
|
|
23
|
+
inj.bind(Session, to_ctor=_session.CompletionSession, singleton=True),
|
|
24
|
+
])
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
|
|
28
|
+
return inj.as_elements(*els)
|
|
@@ -5,22 +5,17 @@ from omlish import lang
|
|
|
5
5
|
|
|
6
6
|
from .... import minichain as mc
|
|
7
7
|
from ..base import Session
|
|
8
|
+
from .configs import DEFAULT_COMPLETION_MODEL_BACKEND
|
|
9
|
+
from .configs import CompletionConfig
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
##
|
|
11
13
|
|
|
12
14
|
|
|
13
|
-
DEFAULT_COMPLETION_MODEL_BACKEND = 'openai'
|
|
14
|
-
|
|
15
|
-
|
|
16
15
|
class CompletionSession(Session['CompletionSession.Config']):
|
|
17
16
|
@dc.dataclass(frozen=True)
|
|
18
|
-
class Config(Session.Config):
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_: dc.KW_ONLY
|
|
22
|
-
|
|
23
|
-
backend: str | None = None
|
|
17
|
+
class Config(Session.Config, CompletionConfig):
|
|
18
|
+
pass
|
|
24
19
|
|
|
25
20
|
def __init__(
|
|
26
21
|
self,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import dataclasses as dc
|
|
2
|
+
|
|
3
|
+
from .... import minichain as mc
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
##
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DEFAULT_EMBEDDING_MODEL_BACKEND = 'openai'
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
##
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dc.dataclass(frozen=True)
|
|
16
|
+
class EmbeddingConfig:
|
|
17
|
+
content: 'mc.Content'
|
|
18
|
+
|
|
19
|
+
_: dc.KW_ONLY
|
|
20
|
+
|
|
21
|
+
backend: str | None = None
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from omlish import dataclasses as dc
|
|
2
|
+
from omlish import inject as inj
|
|
3
|
+
from omlish import lang
|
|
4
|
+
|
|
5
|
+
from ..base import Session
|
|
6
|
+
from .configs import EmbeddingConfig
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
with lang.auto_proxy_import(globals()):
|
|
10
|
+
from . import session as _session
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
##
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def bind_embedding(cfg: EmbeddingConfig) -> inj.Elements:
|
|
17
|
+
els: list[inj.Elemental] = []
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
|
|
21
|
+
els.extend([
|
|
22
|
+
inj.bind(_session.EmbeddingSession.Config(**dc.asdict(cfg))),
|
|
23
|
+
inj.bind(Session, to_ctor=_session.EmbeddingSession, singleton=True),
|
|
24
|
+
])
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
|
|
28
|
+
return inj.as_elements(*els)
|
|
@@ -5,22 +5,17 @@ from omlish.formats import json
|
|
|
5
5
|
|
|
6
6
|
from .... import minichain as mc
|
|
7
7
|
from ..base import Session
|
|
8
|
+
from .configs import DEFAULT_EMBEDDING_MODEL_BACKEND
|
|
9
|
+
from .configs import EmbeddingConfig
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
##
|
|
11
13
|
|
|
12
14
|
|
|
13
|
-
DEFAULT_EMBEDDING_MODEL_BACKEND = 'openai'
|
|
14
|
-
|
|
15
|
-
|
|
16
15
|
class EmbeddingSession(Session['EmbeddingSession.Config']):
|
|
17
16
|
@dc.dataclass(frozen=True)
|
|
18
|
-
class Config(Session.Config):
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_: dc.KW_ONLY
|
|
22
|
-
|
|
23
|
-
backend: str | None = None
|
|
17
|
+
class Config(Session.Config, EmbeddingConfig):
|
|
18
|
+
pass
|
|
24
19
|
|
|
25
20
|
def __init__(
|
|
26
21
|
self,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import inject as inj
|
|
4
|
+
from omlish import lang
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
with lang.auto_proxy_import(globals()):
|
|
8
|
+
from .chat import configs as _chat_cfgs
|
|
9
|
+
from .chat import inject as _chat_inj
|
|
10
|
+
from .completion import configs as _completion_cfgs
|
|
11
|
+
from .completion import inject as _completion_inj
|
|
12
|
+
from .embedding import configs as _embedding_cfgs
|
|
13
|
+
from .embedding import inject as _embedding_inj
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
##
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def bind_sessions(cfg: ta.Any) -> inj.Elements:
|
|
20
|
+
els: list[inj.Elemental] = []
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
|
|
24
|
+
if isinstance(cfg, _chat_cfgs.ChatConfig):
|
|
25
|
+
els.append(_chat_inj.bind_chat(cfg))
|
|
26
|
+
|
|
27
|
+
elif isinstance(cfg, _completion_cfgs.CompletionConfig):
|
|
28
|
+
els.append(_completion_inj.bind_completion(cfg))
|
|
29
|
+
|
|
30
|
+
elif isinstance(cfg, _embedding_cfgs.EmbeddingConfig):
|
|
31
|
+
els.append(_embedding_inj.bind_embedding(cfg))
|
|
32
|
+
|
|
33
|
+
else:
|
|
34
|
+
raise TypeError(cfg)
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
|
|
38
|
+
return inj.as_elements(*els)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import os.path
|
|
2
|
+
|
|
3
|
+
from omdev.home.paths import get_home_paths
|
|
4
|
+
from omlish import inject as inj
|
|
5
|
+
from omlish import lang
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
with lang.auto_proxy_import(globals()):
|
|
9
|
+
from . import storage as _storage
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
##
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _provide_state_storage() -> '_storage.StateStorage':
|
|
16
|
+
state_dir = os.path.join(get_home_paths().state_dir, 'minichain', 'cli')
|
|
17
|
+
if not os.path.exists(state_dir):
|
|
18
|
+
os.makedirs(state_dir, exist_ok=True)
|
|
19
|
+
os.chmod(state_dir, 0o770) # noqa
|
|
20
|
+
|
|
21
|
+
state_file = os.path.join(state_dir, 'state.json')
|
|
22
|
+
return _storage.JsonFileStateStorage(state_file)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def bind_state() -> inj.Elements:
|
|
26
|
+
return inj.as_elements(
|
|
27
|
+
inj.bind(_provide_state_storage, singleton=True),
|
|
28
|
+
)
|
{ommlds-0.0.0.dev464 → ommlds-0.0.0.dev465}/ommlds/minichain/backends/impls/anthropic/chat.py
RENAMED
|
@@ -22,15 +22,14 @@ from ....chat.messages import AnyAiMessage
|
|
|
22
22
|
from ....chat.messages import Message
|
|
23
23
|
from ....chat.messages import SystemMessage
|
|
24
24
|
from ....chat.messages import ToolUseMessage
|
|
25
|
-
from ....chat.messages import ToolUseResultMessage
|
|
26
25
|
from ....chat.messages import UserMessage
|
|
27
26
|
from ....chat.tools.types import Tool
|
|
28
|
-
from ....content.prepare import prepare_content_str
|
|
29
27
|
from ....models.configs import ModelName
|
|
30
28
|
from ....standard import ApiKey
|
|
31
|
-
from ....tools.jsonschema import build_tool_spec_params_json_schema
|
|
32
29
|
from ....tools.types import ToolUse
|
|
33
30
|
from .names import MODEL_NAMES
|
|
31
|
+
from .protocol import build_protocol_chat_messages
|
|
32
|
+
from .protocol import build_protocol_tool
|
|
34
33
|
|
|
35
34
|
|
|
36
35
|
##
|
|
@@ -44,13 +43,6 @@ from .names import MODEL_NAMES
|
|
|
44
43
|
class AnthropicChatChoicesService:
|
|
45
44
|
DEFAULT_MODEL_NAME: ta.ClassVar[ModelName] = ModelName(check.not_none(MODEL_NAMES.default))
|
|
46
45
|
|
|
47
|
-
ROLES_MAP: ta.ClassVar[ta.Mapping[type[Message], str]] = {
|
|
48
|
-
SystemMessage: 'system',
|
|
49
|
-
UserMessage: 'user',
|
|
50
|
-
AiMessage: 'assistant',
|
|
51
|
-
ToolUseMessage: 'assistant',
|
|
52
|
-
}
|
|
53
|
-
|
|
54
46
|
def __init__(
|
|
55
47
|
self,
|
|
56
48
|
*configs: ApiKey | ModelName,
|
|
@@ -78,62 +70,13 @@ class AnthropicChatChoicesService:
|
|
|
78
70
|
*,
|
|
79
71
|
max_tokens: int = 4096, # FIXME: ChatOption
|
|
80
72
|
) -> ChatChoicesResponse:
|
|
81
|
-
messages
|
|
82
|
-
system: list[pt.Content] | None = None
|
|
83
|
-
for i, m in enumerate(request.v):
|
|
84
|
-
if isinstance(m, SystemMessage):
|
|
85
|
-
if i != 0 or system is not None:
|
|
86
|
-
raise Exception('Only supports one system message and must be first')
|
|
87
|
-
system = [pt.Text(check.not_none(self._get_msg_content(m)))]
|
|
88
|
-
|
|
89
|
-
elif isinstance(m, ToolUseResultMessage):
|
|
90
|
-
messages.append(pt.Message(
|
|
91
|
-
role='user',
|
|
92
|
-
content=[pt.ToolResult(
|
|
93
|
-
tool_use_id=check.not_none(m.tur.id),
|
|
94
|
-
content=json.dumps_compact(msh.marshal(m.tur.c)) if not isinstance(m.tur.c, str) else m.tur.c,
|
|
95
|
-
)],
|
|
96
|
-
))
|
|
97
|
-
|
|
98
|
-
elif isinstance(m, AiMessage):
|
|
99
|
-
# messages.append(pt.Message(
|
|
100
|
-
# role=self.ROLES_MAP[type(m)], # noqa
|
|
101
|
-
# content=[pt.Text(check.isinstance(self._get_msg_content(m), str))],
|
|
102
|
-
# ))
|
|
103
|
-
messages.append(pt.Message(
|
|
104
|
-
role='assistant',
|
|
105
|
-
content=[
|
|
106
|
-
*([pt.Text(check.isinstance(m.c, str))] if m.c is not None else []),
|
|
107
|
-
],
|
|
108
|
-
))
|
|
109
|
-
|
|
110
|
-
elif isinstance(m, ToolUseMessage):
|
|
111
|
-
messages.append(pt.Message(
|
|
112
|
-
role='assistant',
|
|
113
|
-
content=[
|
|
114
|
-
pt.ToolUse(
|
|
115
|
-
id=check.not_none(m.tu.id),
|
|
116
|
-
name=check.not_none(m.tu.name),
|
|
117
|
-
input=m.tu.args,
|
|
118
|
-
),
|
|
119
|
-
],
|
|
120
|
-
))
|
|
121
|
-
|
|
122
|
-
else:
|
|
123
|
-
messages.append(pt.Message(
|
|
124
|
-
role=self.ROLES_MAP[type(m)], # type: ignore[arg-type]
|
|
125
|
-
content=[pt.Text(check.isinstance(self._get_msg_content(m), str))],
|
|
126
|
-
))
|
|
73
|
+
messages, system = build_protocol_chat_messages(request.v)
|
|
127
74
|
|
|
128
75
|
tools: list[pt.ToolSpec] = []
|
|
129
76
|
with tv.TypedValues(*request.options).consume() as oc:
|
|
130
77
|
t: Tool
|
|
131
78
|
for t in oc.pop(Tool, []):
|
|
132
|
-
tools.append(
|
|
133
|
-
name=check.not_none(t.spec.name),
|
|
134
|
-
description=prepare_content_str(t.spec.desc),
|
|
135
|
-
input_schema=build_tool_spec_params_json_schema(t.spec),
|
|
136
|
-
))
|
|
79
|
+
tools.append(build_protocol_tool(t))
|
|
137
80
|
|
|
138
81
|
a_req = pt.MessagesRequest(
|
|
139
82
|
model=MODEL_NAMES.resolve(self._model_name.v),
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import check
|
|
4
|
+
from omlish import marshal as msh
|
|
5
|
+
from omlish.formats import json
|
|
6
|
+
|
|
7
|
+
from .....backends.anthropic.protocol import types as pt
|
|
8
|
+
from ....chat.messages import AiMessage
|
|
9
|
+
from ....chat.messages import Message
|
|
10
|
+
from ....chat.messages import SystemMessage
|
|
11
|
+
from ....chat.messages import ToolUseMessage
|
|
12
|
+
from ....chat.messages import ToolUseResultMessage
|
|
13
|
+
from ....chat.messages import UserMessage
|
|
14
|
+
from ....chat.tools.types import Tool
|
|
15
|
+
from ....content.prepare import prepare_content_str
|
|
16
|
+
from ....tools.jsonschema import build_tool_spec_params_json_schema
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
##
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def get_message_content(m: Message) -> str | None:
|
|
23
|
+
if isinstance(m, AiMessage):
|
|
24
|
+
return check.isinstance(m.c, str)
|
|
25
|
+
|
|
26
|
+
elif isinstance(m, (UserMessage, SystemMessage)):
|
|
27
|
+
return check.isinstance(m.c, str)
|
|
28
|
+
|
|
29
|
+
else:
|
|
30
|
+
raise TypeError(m)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
#
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class BuiltChatMessages(ta.NamedTuple):
|
|
37
|
+
messages: list[pt.Message]
|
|
38
|
+
system: list[pt.Content] | None
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
ROLES_MAP: ta.Mapping[type[Message], str] = {
|
|
42
|
+
SystemMessage: 'system',
|
|
43
|
+
UserMessage: 'user',
|
|
44
|
+
AiMessage: 'assistant',
|
|
45
|
+
ToolUseMessage: 'assistant',
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def build_protocol_chat_messages(msgs: ta.Iterable[Message]) -> BuiltChatMessages:
|
|
50
|
+
messages: list[pt.Message] = []
|
|
51
|
+
system: list[pt.Content] | None = None
|
|
52
|
+
|
|
53
|
+
for i, m in enumerate(msgs):
|
|
54
|
+
if isinstance(m, SystemMessage):
|
|
55
|
+
if i or system is not None:
|
|
56
|
+
raise Exception('Only supports one system message and must be first')
|
|
57
|
+
system = [pt.Text(check.not_none(get_message_content(m)))]
|
|
58
|
+
|
|
59
|
+
elif isinstance(m, ToolUseResultMessage):
|
|
60
|
+
messages.append(pt.Message(
|
|
61
|
+
role='user',
|
|
62
|
+
content=[pt.ToolResult(
|
|
63
|
+
tool_use_id=check.not_none(m.tur.id),
|
|
64
|
+
content=json.dumps_compact(msh.marshal(m.tur.c)) if not isinstance(m.tur.c, str) else m.tur.c,
|
|
65
|
+
)],
|
|
66
|
+
))
|
|
67
|
+
|
|
68
|
+
elif isinstance(m, AiMessage):
|
|
69
|
+
# messages.append(pt.Message(
|
|
70
|
+
# role=ROLES_MAP[type(m)], # noqa
|
|
71
|
+
# content=[pt.Text(check.isinstance(get_message_content(m), str))],
|
|
72
|
+
# ))
|
|
73
|
+
messages.append(pt.Message(
|
|
74
|
+
role='assistant',
|
|
75
|
+
content=[
|
|
76
|
+
*([pt.Text(check.isinstance(m.c, str))] if m.c is not None else []),
|
|
77
|
+
],
|
|
78
|
+
))
|
|
79
|
+
|
|
80
|
+
elif isinstance(m, ToolUseMessage):
|
|
81
|
+
messages.append(pt.Message(
|
|
82
|
+
role='assistant',
|
|
83
|
+
content=[
|
|
84
|
+
pt.ToolUse(
|
|
85
|
+
id=check.not_none(m.tu.id),
|
|
86
|
+
name=check.not_none(m.tu.name),
|
|
87
|
+
input=m.tu.args,
|
|
88
|
+
),
|
|
89
|
+
],
|
|
90
|
+
))
|
|
91
|
+
|
|
92
|
+
else:
|
|
93
|
+
messages.append(pt.Message(
|
|
94
|
+
role=ROLES_MAP[type(m)], # type: ignore[arg-type]
|
|
95
|
+
content=[pt.Text(check.isinstance(get_message_content(m), str))],
|
|
96
|
+
))
|
|
97
|
+
|
|
98
|
+
return BuiltChatMessages(messages, system)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
##
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def build_protocol_tool(t: Tool) -> pt.ToolSpec:
|
|
105
|
+
return pt.ToolSpec(
|
|
106
|
+
name=check.not_none(t.spec.name),
|
|
107
|
+
description=prepare_content_str(t.spec.desc),
|
|
108
|
+
input_schema=build_tool_spec_params_json_schema(t.spec),
|
|
109
|
+
)
|