spb/zyquo-agent Public MIT
The autonomous agent that actually operates your Mac — plans, runs real commands, verifies its own work.
Swift 94.7%
Shell 4.1%
Python 0.7%
Makefile 0.5%
1//2// ProviderRegistry.swift3// Zyquo Agent4//5// Author: Simon-Pierre Boucher6// Mail: contact@spboucher.ai7//8// Ported verbatim from Zyquo Cloud.9//1011import Foundation1213/// Resolves the right client for a provider or custom model. The only place14/// that knows which wire format each provider speaks.15enum ProviderRegistry {16 static func client(for model: AIModel) -> ProviderClient {17 switch model.provider.wireFormat {18 case .anthropicMessages:19 return AnthropicClient()20 case .openAIChatCompletions:21 return OpenAICompatibleClient(22 provider: model.provider,23 baseURLOverride: model.customBaseURL24 )25 }26 }2728 static func client(for provider: ProviderID) -> ProviderClient {29 switch provider.wireFormat {30 case .anthropicMessages:31 return AnthropicClient()32 case .openAIChatCompletions:33 return OpenAICompatibleClient(provider: provider)34 }35 }36}37