Interface ModelInvocationInput.Builder

    • Method Detail

      • overrideLambda

        ModelInvocationInput.Builder overrideLambda​(String overrideLambda)

        The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.

        Parameters:
        overrideLambda - The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parserMode

        ModelInvocationInput.Builder parserMode​(String 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CreationMode, CreationMode
      • parserMode

        ModelInvocationInput.Builder parserMode​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CreationMode, CreationMode
      • promptCreationMode

        ModelInvocationInput.Builder promptCreationMode​(String 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CreationMode, CreationMode
      • promptCreationMode

        ModelInvocationInput.Builder promptCreationMode​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CreationMode, CreationMode
      • text

        ModelInvocationInput.Builder text​(String text)

        The text that prompted the agent at this step.

        Parameters:
        text - The text that prompted the agent at this step.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • traceId

        ModelInvocationInput.Builder traceId​(String traceId)

        The unique identifier of the trace.

        Parameters:
        traceId - The unique identifier of the trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.