Class PipelineAIResponse
- java.lang.Object
-
- ai.protify.core.internal.pipeline.PipelineAIResponse
-
- All Implemented Interfaces:
AIResponse
public class PipelineAIResponse extends java.lang.Object implements AIResponse
-
-
Constructor Summary
Constructors Constructor Description PipelineAIResponse(java.lang.String text)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCorrelationId()longgetInputTokens()java.lang.StringgetModelName()longgetOutputTokens()java.lang.StringgetPipelineId()longgetProcessingTimeMillis()java.lang.StringgetProviderResponse()java.lang.StringgetResponseId()longgetTotalTokens()booleanisCachedResponse()static PipelineAIResponseof(java.lang.String text)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, getReasoningContent, getStopReason, getToolCalls, hasToolCalls
-
-
-
-
Method Detail
-
of
public static PipelineAIResponse of(java.lang.String text)
-
getProviderResponse
public java.lang.String getProviderResponse()
- Specified by:
getProviderResponsein interfaceAIResponse
-
text
public java.lang.String text()
- Specified by:
textin interfaceAIResponse
-
getCorrelationId
public java.lang.String getCorrelationId()
- Specified by:
getCorrelationIdin interfaceAIResponse
-
getPipelineId
public java.lang.String getPipelineId()
- Specified by:
getPipelineIdin interfaceAIResponse
-
getResponseId
public java.lang.String getResponseId()
- Specified by:
getResponseIdin interfaceAIResponse
-
getModelName
public java.lang.String getModelName()
- Specified by:
getModelNamein interfaceAIResponse
-
getInputTokens
public long getInputTokens()
- Specified by:
getInputTokensin interfaceAIResponse
-
getOutputTokens
public long getOutputTokens()
- Specified by:
getOutputTokensin interfaceAIResponse
-
getTotalTokens
public long getTotalTokens()
- Specified by:
getTotalTokensin interfaceAIResponse
-
getProcessingTimeMillis
public long getProcessingTimeMillis()
- Specified by:
getProcessingTimeMillisin interfaceAIResponse
-
isCachedResponse
public boolean isCachedResponse()
- Specified by:
isCachedResponsein interfaceAIResponse
-
-