Class ProtifyAIPipelineResponse
- java.lang.Object
-
- ai.protify.core.internal.pipeline.ProtifyAIPipelineResponse
-
- All Implemented Interfaces:
AIPipelineResponse,AIResponse
public class ProtifyAIPipelineResponse extends java.lang.Object implements AIPipelineResponse
-
-
Constructor Summary
Constructors Constructor Description ProtifyAIPipelineResponse(AIResponse finalResponse, java.util.List<AIResponse> stepResponses)
-
Method Summary
All 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()intgetStepCount()AIResponsegetStepResponse(int index)java.util.List<AIResponse>getStepResponses()java.lang.StringgetStopReason()java.util.List<AIToolCall>getToolCalls()longgetTotalInputTokens()longgetTotalOutputTokens()longgetTotalProcessingTimeMillis()longgetTotalTokens()longgetTotalTokensUsed()booleanhasToolCalls()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, getReasoningContent
-
-
-
-
Constructor Detail
-
ProtifyAIPipelineResponse
public ProtifyAIPipelineResponse(AIResponse finalResponse, java.util.List<AIResponse> stepResponses)
-
-
Method Detail
-
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
-
getProviderResponse
public java.lang.String getProviderResponse()
- Specified by:
getProviderResponsein interfaceAIResponse
-
hasToolCalls
public boolean hasToolCalls()
- Specified by:
hasToolCallsin interfaceAIResponse
-
getToolCalls
public java.util.List<AIToolCall> getToolCalls()
- Specified by:
getToolCallsin interfaceAIResponse
-
getStopReason
public java.lang.String getStopReason()
- Specified by:
getStopReasonin interfaceAIResponse
-
getStepResponses
public java.util.List<AIResponse> getStepResponses()
- Specified by:
getStepResponsesin interfaceAIPipelineResponse
-
getStepCount
public int getStepCount()
- Specified by:
getStepCountin interfaceAIPipelineResponse
-
getStepResponse
public AIResponse getStepResponse(int index)
- Specified by:
getStepResponsein interfaceAIPipelineResponse
-
getTotalInputTokens
public long getTotalInputTokens()
- Specified by:
getTotalInputTokensin interfaceAIPipelineResponse
-
getTotalOutputTokens
public long getTotalOutputTokens()
- Specified by:
getTotalOutputTokensin interfaceAIPipelineResponse
-
getTotalTokensUsed
public long getTotalTokensUsed()
- Specified by:
getTotalTokensUsedin interfaceAIPipelineResponse
-
getTotalProcessingTimeMillis
public long getTotalProcessingTimeMillis()
- Specified by:
getTotalProcessingTimeMillisin interfaceAIPipelineResponse
-
-