PromptUtility

public class PromptUtility
extends Object

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


Bağlamdan istem oluşturmaya yarayan bir araç.

Özet

Herkese açık oluşturucular

PromptUtility()

Herkese açık yöntemler

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

Şablona dayalı istem oluşturma

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

Herkese açık oluşturucular

PromptUtility

public PromptUtility ()

Herkese açık yöntemler

runPromptTemplate

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

Şablona dayalı istem oluşturma

Parametreler
logPromptOnly boolean

İadeler
PromptResponse

runPromptTemplate

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

Parametreler
apiKey String

template PromptUtility.PromptTemplate

logPromptOnly boolean

description TestDescription

stacktrace String

contextFiles Map

Return'ler
PromptResponse