PromptUtility

public class PromptUtility
extends Object

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


Ein Dienstprogramm zum Erstellen von Prompts aus dem Kontext.

Zusammenfassung

Öffentliche Konstruktoren

PromptUtility()

Öffentliche Methoden

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

Prompt basierend auf einer Vorlage erstellen

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

Öffentliche Konstruktoren

PromptUtility

public PromptUtility ()

Öffentliche Methoden

runPromptTemplate

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

Prompt basierend auf einer Vorlage erstellen

Parameter
logPromptOnly boolean

Gibt zurück
PromptResponse

runPromptTemplate

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

Parameter
apiKey String

template PromptUtility.PromptTemplate

logPromptOnly boolean

description TestDescription

stacktrace String

contextFiles Map

Gibt zurück
PromptResponse