Class ProtifyAIPipelineContext
- java.lang.Object
-
- ai.protify.core.internal.pipeline.ProtifyAIPipelineContext
-
- All Implemented Interfaces:
AIPipelineContext
public class ProtifyAIPipelineContext extends java.lang.Object implements AIPipelineContext
-
-
Constructor Summary
Constructors Constructor Description ProtifyAIPipelineContext(java.util.Map<AIConfigProperty,java.lang.Object> pipelineProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomProperty(java.lang.String key, java.lang.Object value)voidclearCustomProperties()java.util.Map<java.lang.String,java.lang.Object>getCustomContext()java.lang.ObjectgetCustomProperty(java.lang.String key)java.util.Set<java.lang.String>getCustomPropertyKeys()java.util.Map<AIConfigProperty,java.lang.Object>getPipelineProperties()AIResponsegetPreviousStepResponse()booleanhasCustomProperty(java.lang.String key)voidremoveCustomProperty(java.lang.String key)AIResponseresponse()voidsetPreviousStepResponse(AIResponse previousStepResponse)java.lang.Stringtext()
-
-
-
Constructor Detail
-
ProtifyAIPipelineContext
public ProtifyAIPipelineContext(java.util.Map<AIConfigProperty,java.lang.Object> pipelineProperties)
-
-
Method Detail
-
getPreviousStepResponse
public AIResponse getPreviousStepResponse()
- Specified by:
getPreviousStepResponsein interfaceAIPipelineContext
-
setPreviousStepResponse
public void setPreviousStepResponse(AIResponse previousStepResponse)
- Specified by:
setPreviousStepResponsein interfaceAIPipelineContext
-
getPipelineProperties
public java.util.Map<AIConfigProperty,java.lang.Object> getPipelineProperties()
- Specified by:
getPipelinePropertiesin interfaceAIPipelineContext
-
addCustomProperty
public void addCustomProperty(java.lang.String key, java.lang.Object value)- Specified by:
addCustomPropertyin interfaceAIPipelineContext
-
getCustomProperty
public java.lang.Object getCustomProperty(java.lang.String key)
- Specified by:
getCustomPropertyin interfaceAIPipelineContext
-
removeCustomProperty
public void removeCustomProperty(java.lang.String key)
- Specified by:
removeCustomPropertyin interfaceAIPipelineContext
-
hasCustomProperty
public boolean hasCustomProperty(java.lang.String key)
- Specified by:
hasCustomPropertyin interfaceAIPipelineContext
-
clearCustomProperties
public void clearCustomProperties()
- Specified by:
clearCustomPropertiesin interfaceAIPipelineContext
-
getCustomPropertyKeys
public java.util.Set<java.lang.String> getCustomPropertyKeys()
- Specified by:
getCustomPropertyKeysin interfaceAIPipelineContext
-
getCustomContext
public java.util.Map<java.lang.String,java.lang.Object> getCustomContext()
- Specified by:
getCustomContextin interfaceAIPipelineContext
-
response
public AIResponse response()
- Specified by:
responsein interfaceAIPipelineContext
-
text
public java.lang.String text()
- Specified by:
textin interfaceAIPipelineContext
-
-