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.
      • agentCollaboration

        public final AgentCollaboration agentCollaboration()

        Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.

        If the service returns an enum value that is not available in the current SDK version, agentCollaboration will return AgentCollaboration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from agentCollaborationAsString().

        Returns:
        Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.
        See Also:
        AgentCollaboration
      • agentCollaborationAsString

        public final String agentCollaborationAsString()

        Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.

        If the service returns an enum value that is not available in the current SDK version, agentCollaboration will return AgentCollaboration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from agentCollaborationAsString().

        Returns:
        Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.
        See Also:
        AgentCollaboration
      • agentName

        public final String agentName()

        The name for the agent.

        Returns:
        The name for the agent.
      • bedrockModelConfigurations

        public final InlineBedrockModelConfigurations bedrockModelConfigurations()

        Model settings for the request.

        Returns:
        Model settings for the request.
      • hasCollaboratorConfigurations

        public final boolean hasCollaboratorConfigurations()
        For responses, this returns true if the service returned a value for the CollaboratorConfigurations 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.
      • collaboratorConfigurations

        public final List<CollaboratorConfiguration> collaboratorConfigurations()

        Settings for an inline agent collaborator called with InvokeInlineAgent.

        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 hasCollaboratorConfigurations() method.

        Returns:
        Settings for an inline agent collaborator called with InvokeInlineAgent.
      • hasCollaborators

        public final boolean hasCollaborators()
        For responses, this returns true if the service returned a value for the Collaborators 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.
      • collaborators

        public final List<Collaborator> collaborators()

        List of collaborator inline agents.

        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 hasCollaborators() method.

        Returns:
        List of collaborator inline agents.
      • customOrchestration

        public final CustomOrchestration customOrchestration()

        Contains details of the custom orchestration configured for the agent.

        Returns:
        Contains details of the custom orchestration configured for the agent.
      • 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.

        Returns:
        Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace.
      • 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.
      • orchestrationType

        public final OrchestrationType orchestrationType()

        Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.

        If the service returns an enum value that is not available in the current SDK version, orchestrationType will return OrchestrationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from orchestrationTypeAsString().

        Returns:
        Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.
        See Also:
        OrchestrationType
      • orchestrationTypeAsString

        public final String orchestrationTypeAsString()

        Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.

        If the service returns an enum value that is not available in the current SDK version, orchestrationType will return OrchestrationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from orchestrationTypeAsString().

        Returns:
        Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.
        See Also:
        OrchestrationType
      • promptCreationConfigurations

        public final PromptCreationConfigurations promptCreationConfigurations()

        Specifies parameters that control how the service populates the agent prompt for an InvokeInlineAgent request. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.

        Returns:
        Specifies parameters that control how the service populates the agent prompt for an InvokeInlineAgent request. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.
      • 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