import Foundation import SprachmittlerEngines import SprachmittlerOllama /// The CLI composition root. Concrete clients are created only here (CODING_STANDARDS). struct CLIEnvironment: Sendable { let baseURL: URL let allowRemote: Bool func makeHTTPClient() throws -> OllamaHTTPClient { try OllamaHTTPClient(baseURL: baseURL, allowRemote: allowRemote) } func makeCatalog() throws -> any OllamaCatalog { try OllamaCatalogClient(http: makeHTTPClient()) } func makeChatClient() throws -> OllamaChatClient { try OllamaChatClient(http: makeHTTPClient()) } func makeRequestFactory(model: String) -> HyMT3RequestFactory { HyMT3RequestFactory(model: model) } }