-- SPDX-FileCopyrightText: © 2026 Vladimir Zorin -- SPDX-License-Identifier: LicenseRef-OWL-1.0-or-later -- Licensed under OWL v1.0+. See LICENSE. local client = require("agent_smith.llm.client") local M = { new = client.new, chat = function(cfg, request) local instance, err = client.new(cfg) if not instance then return nil, err end return instance:chat(request) end, chat_stream = function(cfg, request, handlers) local instance, err = client.new(cfg) if not instance then return nil, err end return instance:chat_stream(request, handlers) end, model = require("agent_smith.llm.model"), tool = require("agent_smith.llm.tool"), } return M