Package com.sap.ai.sdk.orchestration
Class OrchestrationTemplateReference
java.lang.Object
com.sap.ai.sdk.orchestration.TemplateConfig
com.sap.ai.sdk.orchestration.OrchestrationTemplateReference
A reference to a template to use in
OrchestrationModuleConfig.- Since:
- 1.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the scope of the template reference.Nested classes/interfaces inherited from class com.sap.ai.sdk.orchestration.TemplateConfig
TemplateConfig.ReferenceBuilder, TemplateConfig.ReferenceBuilder1, TemplateConfig.ReferenceBuilder2 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOrchestrationTemplateReference(TemplateRefTemplateRef reference, OrchestrationTemplateReference.ScopeEnum scope) Creates a newOrchestrationTemplateReferenceinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetScope()The scope of the template reference.inthashCode()protected PromptTemplatingModuleConfigPromptCreate a low-level representation of the template.toString()The scope of the template reference.Methods inherited from class com.sap.ai.sdk.orchestration.TemplateConfig
create, reference
-
Constructor Details
-
OrchestrationTemplateReference
protected OrchestrationTemplateReference(@Nonnull TemplateRefTemplateRef reference, @Nonnull OrchestrationTemplateReference.ScopeEnum scope) Creates a newOrchestrationTemplateReferenceinstance.- Parameters:
reference-scope- The scope of the template reference.
-
-
Method Details
-
toLowLevel
Create a low-level representation of the template.- Specified by:
toLowLevelin classTemplateConfig- Returns:
- The low-level representation of the template.
-
getReference
-
getScope
The scope of the template reference. -
toString
-
equals
- Overrides:
equalsin classTemplateConfig
-
canEqual
- Overrides:
canEqualin classTemplateConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classTemplateConfig
-
withScope
public OrchestrationTemplateReference withScope(@Nonnull OrchestrationTemplateReference.ScopeEnum scope) The scope of the template reference.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-