Class InvokeInlineAgentRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest
-
- software.amazon.awssdk.services.bedrockagentruntime.model.InvokeInlineAgentRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<InvokeInlineAgentRequest.Builder,InvokeInlineAgentRequest>
@Generated("software.amazon.awssdk:codegen") public final class InvokeInlineAgentRequest extends BedrockAgentRuntimeRequest implements ToCopyableBuilder<InvokeInlineAgentRequest.Builder,InvokeInlineAgentRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInvokeInlineAgentRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AgentActionGroup>actionGroups()A list of action groups with each action group defining the action the inline agent needs to carry out.AgentCollaborationagentCollaboration()Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response.StringagentCollaborationAsString()Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response.StringagentName()The name for the agent.InlineBedrockModelConfigurationsbedrockModelConfigurations()Model settings for the request.static InvokeInlineAgentRequest.Builderbuilder()List<CollaboratorConfiguration>collaboratorConfigurations()Settings for an inline agent collaborator called with InvokeInlineAgent.List<Collaborator>collaborators()List of collaborator inline agents.StringcustomerEncryptionKeyArn()The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.CustomOrchestrationcustomOrchestration()Contains details of the custom orchestration configured for the agent.BooleanenableTrace()Specifies whether to turn on the trace or not to track the agent's reasoning process.BooleanendSession()Specifies whether to end the session with the inline agent or not.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfoundationModel()The model identifier (ID) of the model to use for orchestration by the inline agent.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)GuardrailConfigurationWithArnguardrailConfiguration()The guardrails to assign to the inline agent.booleanhasActionGroups()For responses, this returns true if the service returned a value for the ActionGroups property.booleanhasCollaboratorConfigurations()For responses, this returns true if the service returned a value for the CollaboratorConfigurations property.booleanhasCollaborators()For responses, this returns true if the service returned a value for the Collaborators property.inthashCode()booleanhasKnowledgeBases()For responses, this returns true if the service returned a value for the KnowledgeBases property.IntegeridleSessionTTLInSeconds()The number of seconds for which the inline agent should maintain session information.InlineSessionStateinlineSessionState()Parameters that specify the various attributes of a sessions.StringinputText()The prompt text to send to the agent.Stringinstruction()The instructions that tell the inline agent what it should do and how it should interact with users.List<KnowledgeBase>knowledgeBases()Contains information of the knowledge bases to associate with.OrchestrationTypeorchestrationType()Specifies the type of orchestration strategy for the agent.StringorchestrationTypeAsString()Specifies the type of orchestration strategy for the agent.PromptCreationConfigurationspromptCreationConfigurations()Specifies parameters that control how the service populates the agent prompt for anInvokeInlineAgentrequest.PromptOverrideConfigurationpromptOverrideConfiguration()Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends InvokeInlineAgentRequest.Builder>serializableBuilderClass()StringsessionId()The unique identifier of the session.StreamingConfigurationsstreamingConfigurations()Specifies the configurations for streaming.InvokeInlineAgentRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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 theisEmpty()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,
agentCollaborationwill returnAgentCollaboration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromagentCollaborationAsString().- 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,
agentCollaborationwill returnAgentCollaboration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromagentCollaborationAsString().- 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 theisEmpty()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 theisEmpty()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.
-
guardrailConfiguration
public final GuardrailConfigurationWithArn guardrailConfiguration()
The guardrails to assign to the inline agent.
- Returns:
- The guardrails to assign to the inline agent.
-
idleSessionTTLInSeconds
public final Integer idleSessionTTLInSeconds()
The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent
InvokeInlineAgentrequest 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
InvokeInlineAgentrequest 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
returnControlInvocationResultsin thesessionStatefield, theinputTextfield 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
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.
-
inputText
public final String inputText()
The prompt text to send to the agent.
If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield will be ignored.- Returns:
- The prompt text to send to the agent.
If you include
returnControlInvocationResultsin thesessionStatefield, theinputTextfield 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 theisEmpty()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,
orchestrationTypewill returnOrchestrationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromorchestrationTypeAsString().- 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,
orchestrationTypewill returnOrchestrationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromorchestrationTypeAsString().- 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
InvokeInlineAgentrequest. 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
InvokeInlineAgentrequest. 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:InvokeModelWithResponseStreamaction.- Returns:
- Specifies the configurations for streaming.
To use agent streaming, you need permissions to perform the
bedrock:InvokeModelWithResponseStreamaction.
-
toBuilder
public InvokeInlineAgentRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InvokeInlineAgentRequest.Builder,InvokeInlineAgentRequest>- Specified by:
toBuilderin classBedrockAgentRuntimeRequest
-
builder
public static InvokeInlineAgentRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends InvokeInlineAgentRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-