Class ProtifyAIResponse
- java.lang.Object
-
- ai.protify.core.internal.response.ProtifyAIResponse
-
- All Implemented Interfaces:
AIResponse
- Direct Known Subclasses:
AnthropicResponse,OpenAIResponse
public abstract class ProtifyAIResponse extends java.lang.Object implements AIResponse
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProtifyAIResponse(boolean cachedResponse, java.lang.String pipelineId, java.lang.String correlationId, java.lang.String modelName, java.lang.String rawResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCorrelationId()protected ProtifyJsonObjectgetJsonObject()java.lang.StringgetModelName()java.lang.StringgetPipelineId()java.lang.StringgetProviderResponse()java.lang.StringgetResponseId()booleanisCachedResponse()java.lang.Stringtext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.protify.core.response.AIResponse
as, asList, getInputTokens, getOutputTokens, getProcessingTimeMillis, getStopReason, getToolCalls, getTotalTokens, hasToolCalls
-
-
-
-
Method Detail
-
getCorrelationId
public java.lang.String getCorrelationId()
- Specified by:
getCorrelationIdin interfaceAIResponse
-
getResponseId
public java.lang.String getResponseId()
- Specified by:
getResponseIdin interfaceAIResponse
-
getPipelineId
public java.lang.String getPipelineId()
- Specified by:
getPipelineIdin interfaceAIResponse
-
getModelName
public java.lang.String getModelName()
- Specified by:
getModelNamein interfaceAIResponse
-
isCachedResponse
public boolean isCachedResponse()
- Specified by:
isCachedResponsein interfaceAIResponse
-
getProviderResponse
public java.lang.String getProviderResponse()
- Specified by:
getProviderResponsein interfaceAIResponse
-
text
public java.lang.String text()
- Specified by:
textin interfaceAIResponse
-
getJsonObject
protected ProtifyJsonObject getJsonObject()
-
-