File indexing completed on 2025-01-05 05:18:57
0001 // SPDX-FileCopyrightText: 2023 Loren Burkholder <computersemiexpert@outlook.com> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 #include "KLLMRequest.h" 0006 0007 using namespace KLLMCore; 0008 KLLMRequest::KLLMRequest(const QString &message) 0009 : m_message{message} 0010 { 0011 } 0012 0013 QString KLLMRequest::message() const 0014 { 0015 return m_message; 0016 } 0017 0018 const KLLMContext &KLLMRequest::context() const 0019 { 0020 return m_context; 0021 } 0022 0023 QString KLLMRequest::model() const 0024 { 0025 return m_model; 0026 } 0027 0028 void KLLMRequest::setMessage(const QString &message) 0029 { 0030 m_message = message; 0031 } 0032 0033 void KLLMRequest::setContext(const KLLMContext &context) 0034 { 0035 m_context = context; 0036 } 0037 0038 void KLLMRequest::setModel(const QString &model) 0039 { 0040 m_model = model; 0041 } 0042 0043 QDebug operator<<(QDebug d, const KLLMRequest &t) 0044 { 0045 d << "Model: " << t.model(); 0046 d << "Message: " << t.message(); 0047 d << "Context: " << t.context(); 0048 return d; 0049 }