Class MaxkbTestHelper

java.lang.Object
com.bytedesk.ai.springai.providers.maxkb.MaxkbTestHelper

@Component @ConditionalOnProperty(name="bytedesk.maxkb.enabled", havingValue="true", matchIfMissing=false) public class MaxkbTestHelper extends Object
MaxKB 测试工具类 用于验证 MaxKB API 集成功能
  • Field Details

  • Constructor Details

    • MaxkbTestHelper

      public MaxkbTestHelper()
  • Method Details

    • runAllTests

      public void runAllTests()
      运行所有测试
    • testChatCompletion

      public void testChatCompletion()
      测试聊天完成功能
    • testSimpleMessage

      public void testSimpleMessage()
      测试简单消息功能
    • testMessageWithSystemRole

      public void testMessageWithSystemRole()
      测试带系统角色的消息功能
    • testStreamResponse

      public void testStreamResponse()
      测试流式响应功能
    • testErrorHandling

      public void testErrorHandling()
      测试错误处理功能
    • testResponseParsing

      public void testResponseParsing()
      测试响应解析功能
    • testDifferentModels

      public void testDifferentModels()
      测试不同模型
    • performanceTest

      public void performanceTest()
      性能测试
    • printConfiguration

      public void printConfiguration()
      打印配置信息