Package ai.protify.core.provider.mock
Class MockResponse
- java.lang.Object
-
- ai.protify.core.provider.mock.MockResponse
-
- All Implemented Interfaces:
AIResponse
public class MockResponse extends java.lang.Object implements AIResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMockResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MockResponse.Builderbuilder()java.lang.StringgetCorrelationId()longgetInputTokens()java.lang.StringgetModelName()longgetOutputTokens()java.lang.StringgetPipelineId()longgetProcessingTimeMillis()java.lang.StringgetProviderResponse()java.lang.StringgetReasoningContent()java.lang.StringgetResponseId()java.lang.StringgetStopReason()java.util.List<AIToolCall>getToolCalls()longgetTotalTokens()booleanhasToolCalls()booleanisCachedResponse()static MockResponseof(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
-
-
-
-
Method Detail
-
builder
public static MockResponse.Builder builder()
-
of
public static MockResponse of(java.lang.String text)
-
text
public java.lang.String text()
- Specified by:
textin interfaceAIResponse
-
getModelName
public java.lang.String getModelName()
- Specified by:
getModelNamein interfaceAIResponse
-
getResponseId
public java.lang.String getResponseId()
- Specified by:
getResponseIdin interfaceAIResponse
-
getCorrelationId
public java.lang.String getCorrelationId()
- Specified by:
getCorrelationIdin interfaceAIResponse
-
getPipelineId
public java.lang.String getPipelineId()
- Specified by:
getPipelineIdin 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
-
getReasoningContent
public java.lang.String getReasoningContent()
- Specified by:
getReasoningContentin interfaceAIResponse
-
getStopReason
public java.lang.String getStopReason()
- Specified by:
getStopReasonin interfaceAIResponse
-
hasToolCalls
public boolean hasToolCalls()
- Specified by:
hasToolCallsin interfaceAIResponse
-
getToolCalls
public java.util.List<AIToolCall> getToolCalls()
- Specified by:
getToolCallsin interfaceAIResponse
-
-