diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-06-26 14:39:23 +0200 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-06-26 14:39:23 +0200 |
| commit | 963f59569437fe43a49ce36a003a143fa2f767c8 (patch) | |
| tree | 968b0dad13193536770ae1e6b580b27e22f9366b /agent/orchestrator/models/__init__.py | |
| parent | 741a04c2abcbd77451c0933a19d91fddb9982882 (diff) | |
| download | senia-963f59569437fe43a49ce36a003a143fa2f767c8.tar.xz senia-963f59569437fe43a49ce36a003a143fa2f767c8.zip | |
created custom agent loop
Diffstat (limited to 'agent/orchestrator/models/__init__.py')
| -rw-r--r-- | agent/orchestrator/models/__init__.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/agent/orchestrator/models/__init__.py b/agent/orchestrator/models/__init__.py new file mode 100644 index 0000000..10b2b5a --- /dev/null +++ b/agent/orchestrator/models/__init__.py @@ -0,0 +1,24 @@ +"""The public surface for model invocation. + +Other modules import `call_model` and use it without knowing which backend is +configured. Switching backends means changing one assignment here. +""" + +from .base import Message, ModelBackend, ModelRequest, ModelResponse +from .claude_code import ClaudeCodeBackend + +_backend: ModelBackend = ClaudeCodeBackend() + + +def call_model(request: ModelRequest) -> ModelResponse: + """Invoke the configured model backend.""" + return _backend.call(request) + + +__all__ = [ + "Message", + "ModelBackend", + "ModelRequest", + "ModelResponse", + "call_model", +] |
