Class InvokeInlineAgentRequest

    • Method Detail

      • hasActionGroups

        public final boolean hasActionGroups()
        For responses, this returns true if the service returned a value for the ActionGroups property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • actionGroups

        public final List<AgentActionGroup> actionGroups()

        A list of action groups with each action group defining the action the inline agent needs to carry out.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasActionGroups() method.

        Returns:
        A list of action groups with each action group defining the action the inline agent needs to carry out.
      • bedrockModelConfigurations

        public final InlineBedrockModelConfigurations bedrockModelConfigurations()

        Model settings for the request.

        Returns:
        Model settings for the request.
      • customerEncryptionKeyArn

        public final String customerEncryptionKeyArn()

        The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.

        Returns:
        The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.
      • enableTrace

        public final Boolean enableTrace()

        Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace.

          </p> 
         
        Returns:
        Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace.
         
                  </p> 
      • endSession

        public final Boolean endSession()

        Specifies whether to end the session with the inline agent or not.

        Returns:
        Specifies whether to end the session with the inline agent or not.
      • foundationModel

        public final String foundationModel()

        The model identifier (ID) of the model to use for orchestration by the inline agent. For example, meta.llama3-1-70b-instruct-v1:0.

        Returns:
        The model identifier (ID) of the model to use for orchestration by the inline agent. For example, meta.llama3-1-70b-instruct-v1:0.
      • idleSessionTTLInSeconds

        public final Integer idleSessionTTLInSeconds()

        The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent InvokeInlineAgent request begins a new session.

        A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.

        Returns:
        The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent InvokeInlineAgent request begins a new session.

        A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.

      • inlineSessionState

        public final InlineSessionState inlineSessionState()

        Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. For more information, see Control session context.

        If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

        Returns:
        Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. For more information, see Control session context.

        If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

      • inputText

        public final String inputText()

        The prompt text to send to the agent.

        If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

        Returns:
        The prompt text to send to the agent.

        If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

      • instruction

        public final String instruction()

        The instructions that tell the inline agent what it should do and how it should interact with users.

        Returns:
        The instructions that tell the inline agent what it should do and how it should interact with users.
      • hasKnowledgeBases

        public final boolean hasKnowledgeBases()
        For responses, this returns true if the service returned a value for the KnowledgeBases property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • knowledgeBases

        public final List<KnowledgeBase> knowledgeBases()

        Contains information of the knowledge bases to associate with.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasKnowledgeBases() method.

        Returns:
        Contains information of the knowledge bases to associate with.
      • promptOverrideConfiguration

        public final PromptOverrideConfiguration promptOverrideConfiguration()

        Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.

        Returns:
        Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.
      • sessionId

        public final String sessionId()

        The unique identifier of the session. Use the same value across requests to continue the same conversation.

        Returns:
        The unique identifier of the session. Use the same value across requests to continue the same conversation.
      • streamingConfigurations

        public final StreamingConfigurations streamingConfigurations()

        Specifies the configurations for streaming.

        To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

        Returns:
        Specifies the configurations for streaming.

        To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

      • 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