PromptUtility

public class PromptUtility
extends Object

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


ยูทิลิตี้สำหรับสร้างพรอมต์จากบริบท

สรุป

เครื่องมือสร้างสาธารณะ

PromptUtility()

เมธอดสาธารณะ

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

สร้างพรอมต์ตามเทมเพลต

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

เครื่องมือสร้างสาธารณะ

PromptUtility

public PromptUtility ()

เมธอดสาธารณะ

runPromptTemplate

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

สร้างพรอมต์ตามเทมเพลต

พารามิเตอร์
logPromptOnly boolean

การคืนสินค้า
PromptResponse

runPromptTemplate

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

พารามิเตอร์
apiKey String

template PromptUtility.PromptTemplate

logPromptOnly boolean

description TestDescription

stacktrace String

contextFiles Map

การคืนสินค้า
PromptResponse