CurlGenAiClient

public class CurlGenAiClient
extends Object

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


GenAI API ile etkileşim kurmak ve istem istekleri göndermek için merkezi bir istemci sağlayın. Bunun için geçerli bir API_KEY ayarlanması gerekir.

Özet

Herkese açık oluşturucular

CurlGenAiClient()

Herkese açık yöntemler

PromptResponse runPrompt(CurlGenAiClient.Model model, String apiKey, boolean logPromptOnly, String prompt, List<ContentRequest.InlineData> data)

Yürütülecek bir istem isteyin.

PromptResponse runPrompt(String apiKey, boolean logPromptOnly, String prompt, List<ContentRequest.InlineData> data)

Yürütülecek bir istem isteyin.

PromptResponse runPrompt(String apiKey, boolean logPromptOnly, String prompt)

Yürütülecek bir istem isteyin.

Herkese açık oluşturucular

CurlGenAiClient

public CurlGenAiClient ()

Herkese açık yöntemler

runPrompt

public PromptResponse runPrompt (CurlGenAiClient.Model model, 
                String apiKey, 
                boolean logPromptOnly, 
                String prompt, 
                List<ContentRequest.InlineData> data)

Yürütülecek bir istem isteyin.

Parametreler
model CurlGenAiClient.Model: Kullanılacak model.

apiKey String: Sorgu için kullanılacak API_KEY.

logPromptOnly boolean: Yalnızca istemi döndürür ve çalıştırmaz.

prompt String: Kullanılan istem

data List: İstemle ilişkilendirilecek satır içi dosya verileri.

İadeler
PromptResponse

runPrompt

public PromptResponse runPrompt (String apiKey, 
                boolean logPromptOnly, 
                String prompt, 
                List<ContentRequest.InlineData> data)

Yürütülecek bir istem isteyin.

Parametreler
apiKey String: Sorgu için kullanılacak API_KEY.

logPromptOnly boolean: Yalnızca istemi döndürür ve çalıştırmaz.

prompt String: Kullanılan istem

data List: İstemle ilişkilendirilecek satır içi dosya verileri.

İadeler
PromptResponse

runPrompt

public PromptResponse runPrompt (String apiKey, 
                boolean logPromptOnly, 
                String prompt)

Yürütülecek bir istem isteyin.

Parametreler
apiKey String: Sorgu için kullanılacak API_KEY.

logPromptOnly boolean: Yalnızca istemi döndürür ve çalıştırmaz.

prompt String: Kullanılan istem

İadeler
PromptResponse