Class ModelInvocationInput
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelInvocationInput.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InferenceConfigurationSpecifications about the inference parameters that were provided alongside the prompt.final StringThe ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.final CreationModeSpecifies 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.final StringSpecifies 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.final CreationModeSpecifies whether the default prompt template wasOVERRIDDEN.final StringSpecifies whether the default prompt template wasOVERRIDDEN.static Class<? extends ModelInvocationInput.Builder> final Stringtext()The text that prompted the agent at this step.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringtraceId()The unique identifier of the trace.final PromptTypetype()The step in the agent sequence.final StringThe step in the agent sequence.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
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:
-
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:
-
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:
-
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:
-
text
The text that prompted the agent at this step.
- Returns:
- The text that prompted the agent at this step.
-
traceId
The unique identifier of the trace.
- Returns:
- The unique identifier of the trace.
-
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:
-
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:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ModelInvocationInput.Builder,ModelInvocationInput> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-