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