PromptUtility

public class PromptUtility
extends Object

java.lang.Object
com.android.tradefed.ai.PromptUtility


Tiện ích để tạo lời nhắc từ ngữ cảnh.

Tóm tắt

Hàm khởi tạo công khai

PromptUtility()

Phương thức công khai

static PromptResponse runPromptTemplate(String apiKey, File templatePrompt, Set<String> requiredLogs, boolean logPromptOnly, TestDescription description, String stacktrace, Map<String, File> contextFiles)

Tạo lời nhắc dựa trên mẫu

static PromptResponse runPromptTemplate(String apiKey, PromptUtility.PromptTemplate template, boolean logPromptOnly, TestDescription description, String stacktrace, Map<String, File> contextFiles)

Hàm khởi tạo công khai

PromptUtility

public PromptUtility ()

Phương thức công khai

runPromptTemplate

public static PromptResponse runPromptTemplate (String apiKey, 
                File templatePrompt, 
                Set<String> requiredLogs, 
                boolean logPromptOnly, 
                TestDescription description, 
                String stacktrace, 
                Map<String, File> contextFiles)

Tạo lời nhắc dựa trên mẫu

Tham số
logPromptOnly boolean

Giá trị trả về
PromptResponse

runPromptTemplate

public static PromptResponse runPromptTemplate (String apiKey, 
                PromptUtility.PromptTemplate template, 
                boolean logPromptOnly, 
                TestDescription description, 
                String stacktrace, 
                Map<String, File> contextFiles)

Tham số
apiKey String

template PromptUtility.PromptTemplate

logPromptOnly boolean

description TestDescription

stacktrace String

contextFiles Map

Trả về
PromptResponse