Interface Observation.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Observation.Builder,,- Observation> - SdkBuilder<Observation.Builder,,- Observation> - SdkPojo
- Enclosing class:
- Observation
- 
Method SummaryModifier and TypeMethodDescriptiondefault Observation.BuilderactionGroupInvocationOutput(Consumer<ActionGroupInvocationOutput.Builder> actionGroupInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the action group.actionGroupInvocationOutput(ActionGroupInvocationOutput actionGroupInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the action group.default Observation.BuilderagentCollaboratorInvocationOutput(Consumer<AgentCollaboratorInvocationOutput.Builder> agentCollaboratorInvocationOutput) A collaborator's invocation output.agentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutput agentCollaboratorInvocationOutput) A collaborator's invocation output.default Observation.BuildercodeInterpreterInvocationOutput(Consumer<CodeInterpreterInvocationOutput.Builder> codeInterpreterInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the code interpreter.codeInterpreterInvocationOutput(CodeInterpreterInvocationOutput codeInterpreterInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the code interpreter.default Observation.BuilderfinalResponse(Consumer<FinalResponse.Builder> finalResponse) Contains details about the response to the user.finalResponse(FinalResponse finalResponse) Contains details about the response to the user.default Observation.BuilderknowledgeBaseLookupOutput(Consumer<KnowledgeBaseLookupOutput.Builder> knowledgeBaseLookupOutput) Contains details about the results from looking up the knowledge base.knowledgeBaseLookupOutput(KnowledgeBaseLookupOutput knowledgeBaseLookupOutput) Contains details about the results from looking up the knowledge base.default Observation.BuilderrepromptResponse(Consumer<RepromptResponse.Builder> repromptResponse) Contains details about the response to reprompt the input.repromptResponse(RepromptResponse repromptResponse) Contains details about the response to reprompt the input.The unique identifier of the trace.Specifies what kind of information the agent returns in the observation.Specifies what kind of information the agent returns in the observation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
traceIdThe 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.
 
- 
typeSpecifies what kind of information the agent returns in the observation. The following values are possible. - 
 ACTION_GROUP– The agent returns the result of an action group.
- 
 KNOWLEDGE_BASE– The agent returns information from a knowledge base.
- 
 FINISH– The agent returns a final response to the user with no follow-up.
- 
 ASK_USER– The agent asks the user a question.
- 
 REPROMPT– The agent prompts the user again for the same information.
 - Parameters:
- type- Specifies what kind of information the agent returns in the observation. The following values are possible.- 
        ACTION_GROUP– The agent returns the result of an action group.
- 
        KNOWLEDGE_BASE– The agent returns information from a knowledge base.
- 
        FINISH– The agent returns a final response to the user with no follow-up.
- 
        ASK_USER– The agent asks the user a question.
- 
        REPROMPT– The agent prompts the user again for the same information.
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
 
- 
typeSpecifies what kind of information the agent returns in the observation. The following values are possible. - 
 ACTION_GROUP– The agent returns the result of an action group.
- 
 KNOWLEDGE_BASE– The agent returns information from a knowledge base.
- 
 FINISH– The agent returns a final response to the user with no follow-up.
- 
 ASK_USER– The agent asks the user a question.
- 
 REPROMPT– The agent prompts the user again for the same information.
 - Parameters:
- type- Specifies what kind of information the agent returns in the observation. The following values are possible.- 
        ACTION_GROUP– The agent returns the result of an action group.
- 
        KNOWLEDGE_BASE– The agent returns information from a knowledge base.
- 
        FINISH– The agent returns a final response to the user with no follow-up.
- 
        ASK_USER– The agent asks the user a question.
- 
        REPROMPT– The agent prompts the user again for the same information.
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
 
- 
actionGroupInvocationOutputObservation.Builder actionGroupInvocationOutput(ActionGroupInvocationOutput actionGroupInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the action group. - Parameters:
- actionGroupInvocationOutput- Contains the JSON-formatted string returned by the API invoked by the action group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
actionGroupInvocationOutputdefault Observation.Builder actionGroupInvocationOutput(Consumer<ActionGroupInvocationOutput.Builder> actionGroupInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the action group. This is a convenience method that creates an instance of theActionGroupInvocationOutput.Builderavoiding the need to create one manually viaActionGroupInvocationOutput.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactionGroupInvocationOutput(ActionGroupInvocationOutput).- Parameters:
- actionGroupInvocationOutput- a consumer that will call methods on- ActionGroupInvocationOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
agentCollaboratorInvocationOutputObservation.Builder agentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutput agentCollaboratorInvocationOutput) A collaborator's invocation output. - Parameters:
- agentCollaboratorInvocationOutput- A collaborator's invocation output.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
agentCollaboratorInvocationOutputdefault Observation.Builder agentCollaboratorInvocationOutput(Consumer<AgentCollaboratorInvocationOutput.Builder> agentCollaboratorInvocationOutput) A collaborator's invocation output. This is a convenience method that creates an instance of theAgentCollaboratorInvocationOutput.Builderavoiding the need to create one manually viaAgentCollaboratorInvocationOutput.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentCollaboratorInvocationOutput(AgentCollaboratorInvocationOutput).- Parameters:
- agentCollaboratorInvocationOutput- a consumer that will call methods on- AgentCollaboratorInvocationOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
knowledgeBaseLookupOutputContains details about the results from looking up the knowledge base. - Parameters:
- knowledgeBaseLookupOutput- Contains details about the results from looking up the knowledge base.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
knowledgeBaseLookupOutputdefault Observation.Builder knowledgeBaseLookupOutput(Consumer<KnowledgeBaseLookupOutput.Builder> knowledgeBaseLookupOutput) Contains details about the results from looking up the knowledge base. This is a convenience method that creates an instance of theKnowledgeBaseLookupOutput.Builderavoiding the need to create one manually viaKnowledgeBaseLookupOutput.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toknowledgeBaseLookupOutput(KnowledgeBaseLookupOutput).- Parameters:
- knowledgeBaseLookupOutput- a consumer that will call methods on- KnowledgeBaseLookupOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
finalResponseContains details about the response to the user. - Parameters:
- finalResponse- Contains details about the response to the user.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
finalResponseContains details about the response to the user. This is a convenience method that creates an instance of theFinalResponse.Builderavoiding the need to create one manually viaFinalResponse.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofinalResponse(FinalResponse).- Parameters:
- finalResponse- a consumer that will call methods on- FinalResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
repromptResponseContains details about the response to reprompt the input. - Parameters:
- repromptResponse- Contains details about the response to reprompt the input.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
repromptResponseContains details about the response to reprompt the input. This is a convenience method that creates an instance of theRepromptResponse.Builderavoiding the need to create one manually viaRepromptResponse.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torepromptResponse(RepromptResponse).- Parameters:
- repromptResponse- a consumer that will call methods on- RepromptResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
codeInterpreterInvocationOutputObservation.Builder codeInterpreterInvocationOutput(CodeInterpreterInvocationOutput codeInterpreterInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the code interpreter. - Parameters:
- codeInterpreterInvocationOutput- Contains the JSON-formatted string returned by the API invoked by the code interpreter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
codeInterpreterInvocationOutputdefault Observation.Builder codeInterpreterInvocationOutput(Consumer<CodeInterpreterInvocationOutput.Builder> codeInterpreterInvocationOutput) Contains the JSON-formatted string returned by the API invoked by the code interpreter. This is a convenience method that creates an instance of theCodeInterpreterInvocationOutput.Builderavoiding the need to create one manually viaCodeInterpreterInvocationOutput.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodeInterpreterInvocationOutput(CodeInterpreterInvocationOutput).- Parameters:
- codeInterpreterInvocationOutput- a consumer that will call methods on- CodeInterpreterInvocationOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-