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