Class ModelInvocationInput

    • Method Detail

      • 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, parserMode will return CreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from parserModeAsString().

        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, parserMode will return CreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from parserModeAsString().

        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, the basePromptTemplate that 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, promptCreationMode will return CreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from promptCreationModeAsString().

        Returns:
        Specifies whether the default prompt template was OVERRIDDEN. If it was, the basePromptTemplate that 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, the basePromptTemplate that 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, promptCreationMode will return CreationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from promptCreationModeAsString().

        Returns:
        Specifies whether the default prompt template was OVERRIDDEN. If it was, the basePromptTemplate that 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, type will return PromptType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        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, type will return PromptType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The step in the agent sequence.
        See Also:
        PromptType
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)