Class TraceableModelClient<T>
java.lang.Object
ai.driftkit.common.domain.client.ModelClient<T>
ai.driftkit.clients.core.TraceableModelClient<T>
public class TraceableModelClient<T>
extends ai.driftkit.common.domain.client.ModelClient<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class ai.driftkit.common.domain.client.ModelClient
ai.driftkit.common.domain.client.ModelClient.Capability, ai.driftkit.common.domain.client.ModelClient.ModelClientInit, ai.driftkit.common.domain.client.ModelClient.Property, ai.driftkit.common.domain.client.ModelClient.ResponseFormatType, ai.driftkit.common.domain.client.ModelClient.Tool, ai.driftkit.common.domain.client.ModelClient.ToolFunction, ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException -
Field Summary
Fields inherited from class ai.driftkit.common.domain.client.ModelClient
jsonObjectSupport -
Constructor Summary
ConstructorsConstructorDescriptionTraceableModelClient(ai.driftkit.common.domain.client.ModelClient<T> delegate) TraceableModelClient(ai.driftkit.common.domain.client.ModelClient<T> delegate, ai.driftkit.common.utils.Tokenizer tokenizer) -
Method Summary
Modifier and TypeMethodDescriptionSet<ai.driftkit.common.domain.client.ModelClient.Capability> getModel()getStop()getTopP()ai.driftkit.common.domain.client.ModelTextResponseimageToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) ai.driftkit.common.domain.client.ModelClient<T> init(ai.driftkit.config.EtlConfig.VaultConfig config) booleanvoidsetJsonObjectSupport(boolean jsonObjectSupport) voidsetLogprobs(Boolean logprobs) voidsetMaxCompletionTokens(Integer maxCompletionTokens) voidsetMaxTokens(Integer maxTokens) voidvoidvoidsetSystemMessages(List<String> systemMessages) voidsetTemperature(Double temperature) voidsetTopLogprobs(Integer topLogprobs) voidvoidsetWorkflow(T workflow) ai.driftkit.common.domain.client.ModelImageResponsetextToImage(ai.driftkit.common.domain.client.ModelImageRequest prompt) ai.driftkit.common.domain.client.ModelTextResponsetextToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) Methods inherited from class ai.driftkit.common.domain.client.ModelClient
canEqual, equals, getFrequencyPenalty, getLogitBias, getPresencePenalty, getSeed, getTools, hashCode, setFrequencyPenalty, setLogitBias, setPresencePenalty, setSeed, setTools, toString
-
Constructor Details
-
TraceableModelClient
-
TraceableModelClient
public TraceableModelClient(ai.driftkit.common.domain.client.ModelClient<T> delegate, ai.driftkit.common.utils.Tokenizer tokenizer)
-
-
Method Details
-
init
public ai.driftkit.common.domain.client.ModelClient<T> init(ai.driftkit.config.EtlConfig.VaultConfig config) -
getCapabilities
-
textToText
public ai.driftkit.common.domain.client.ModelTextResponse textToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) throws ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException - Overrides:
textToTextin classai.driftkit.common.domain.client.ModelClient<T>- Throws:
ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException
-
textToImage
public ai.driftkit.common.domain.client.ModelImageResponse textToImage(ai.driftkit.common.domain.client.ModelImageRequest prompt) throws ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException - Overrides:
textToImagein classai.driftkit.common.domain.client.ModelClient<T>- Throws:
ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException
-
imageToText
public ai.driftkit.common.domain.client.ModelTextResponse imageToText(ai.driftkit.common.domain.client.ModelTextRequest prompt) throws ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException - Overrides:
imageToTextin classai.driftkit.common.domain.client.ModelClient<T>- Throws:
ai.driftkit.common.domain.client.ModelClient.UnsupportedCapabilityException
-
getWorkflow
-
setWorkflow
-
getModel
-
setModel
-
getSystemMessages
-
setSystemMessages
-
getTemperature
-
setTemperature
-
getTopP
-
setTopP
-
getStop
-
setStop
-
isJsonObjectSupport
public boolean isJsonObjectSupport()- Overrides:
isJsonObjectSupportin classai.driftkit.common.domain.client.ModelClient<T>
-
setJsonObjectSupport
public void setJsonObjectSupport(boolean jsonObjectSupport) - Overrides:
setJsonObjectSupportin classai.driftkit.common.domain.client.ModelClient<T>
-
getLogprobs
-
setLogprobs
-
getTopLogprobs
-
setTopLogprobs
-
getMaxTokens
-
setMaxTokens
-
getMaxCompletionTokens
-
setMaxCompletionTokens
-