Class ModelInvocationInput
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.ModelInvocationInput
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ModelInvocationInput.Builder,ModelInvocationInput>
@Generated("software.amazon.awssdk:codegen") public final class ModelInvocationInput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ModelInvocationInput.Builder,ModelInvocationInput>
The input for the pre-processing step.
-
The
typematches the agent step. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceModelInvocationInput.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelInvocationInput.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InferenceConfigurationinferenceConfiguration()Specifications about the inference parameters that were provided alongside the prompt.StringoverrideLambda()The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.CreationModeparserMode()Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by thepromptType.StringparserModeAsString()Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by thepromptType.CreationModepromptCreationMode()Specifies whether the default prompt template wasOVERRIDDEN.StringpromptCreationModeAsString()Specifies whether the default prompt template wasOVERRIDDEN.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ModelInvocationInput.Builder>serializableBuilderClass()Stringtext()The text that prompted the agent at this step.ModelInvocationInput.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtraceId()The unique identifier of the trace.PromptTypetype()The step in the agent sequence.StringtypeAsString()The step in the agent sequence.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
inferenceConfiguration
public final InferenceConfiguration inferenceConfiguration()
Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.
- Returns:
- Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.
-
overrideLambda
public final String overrideLambda()
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.
- Returns:
- The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.
-
parserMode
public final CreationMode parserMode()
Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the
promptType.If the service returns an enum value that is not available in the current SDK version,
parserModewill returnCreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromparserModeAsString().- Returns:
- Specifies whether to override the default parser Lambda function when parsing the raw foundation model
output in the part of the agent sequence defined by the
promptType. - See Also:
CreationMode
-
parserModeAsString
public final String parserModeAsString()
Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the
promptType.If the service returns an enum value that is not available in the current SDK version,
parserModewill returnCreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromparserModeAsString().- Returns:
- Specifies whether to override the default parser Lambda function when parsing the raw foundation model
output in the part of the agent sequence defined by the
promptType. - See Also:
CreationMode
-
promptCreationMode
public final CreationMode promptCreationMode()
Specifies whether the default prompt template was
OVERRIDDEN. If it was, thebasePromptTemplatethat was set in the PromptOverrideConfiguration object when the agent was created or updated is used instead.If the service returns an enum value that is not available in the current SDK version,
promptCreationModewill returnCreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompromptCreationModeAsString().- Returns:
- Specifies whether the default prompt template was
OVERRIDDEN. If it was, thebasePromptTemplatethat was set in the PromptOverrideConfiguration object when the agent was created or updated is used instead. - See Also:
CreationMode
-
promptCreationModeAsString
public final String promptCreationModeAsString()
Specifies whether the default prompt template was
OVERRIDDEN. If it was, thebasePromptTemplatethat was set in the PromptOverrideConfiguration object when the agent was created or updated is used instead.If the service returns an enum value that is not available in the current SDK version,
promptCreationModewill returnCreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompromptCreationModeAsString().- Returns:
- Specifies whether the default prompt template was
OVERRIDDEN. If it was, thebasePromptTemplatethat was set in the PromptOverrideConfiguration object when the agent was created or updated is used instead. - See Also:
CreationMode
-
text
public final String text()
The text that prompted the agent at this step.
- Returns:
- The text that prompted the agent at this step.
-
traceId
public final String traceId()
The unique identifier of the trace.
- Returns:
- The unique identifier of the trace.
-
type
public final PromptType type()
The step in the agent sequence.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPromptType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The step in the agent sequence.
- See Also:
PromptType
-
typeAsString
public final String typeAsString()
The step in the agent sequence.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPromptType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The step in the agent sequence.
- See Also:
PromptType
-
toBuilder
public ModelInvocationInput.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ModelInvocationInput.Builder,ModelInvocationInput>
-
builder
public static ModelInvocationInput.Builder builder()
-
serializableBuilderClass
public static Class<? extends ModelInvocationInput.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-