پرامپت یوتیلیتی

public class PromptUtility
extends 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)

سازندگان عمومی

پرامپت یوتیلیتی

public PromptUtility ()

روش‌های عمومی

قالب اجرای سریع

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

بر اساس یک الگو، یک درخواست ایجاد کنید

پارامترها
logPromptOnly boolean

بازگشت‌ها
PromptResponse

قالب اجرای سریع

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