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.InlineBedrockModelConfigurationsbedrockModelConfigurations()Model settings for the request.static InvokeInlineAgentRequest.Builderbuilder()StringcustomerEncryptionKeyArn()The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline 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.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.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.
-
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.
-
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.
-
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
-
-