Class InlineAgentTracePart.BuilderImpl
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.InlineAgentTracePart.BuilderImpl
- All Implemented Interfaces:
SdkPojo,InlineAgentTracePart.Builder,Buildable,CopyableBuilder<InlineAgentTracePart.Builder,,InlineAgentTracePart> SdkBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>
- Enclosing class:
- InlineAgentTracePart
protected static class InlineAgentTracePart.BuilderImpl
extends Object
implements InlineAgentTracePart.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()callerChain(Collection<Caller> callerChain) The caller chain for the trace part.callerChain(Consumer<Caller.Builder>... callerChain) The caller chain for the trace part.callerChain(Caller... callerChain) The caller chain for the trace part.collaboratorName(String collaboratorName) The collaborator name for the trace part.The time that trace occurred.final List<Caller.Builder>final Stringfinal Instantfinal Stringfinal Trace.BuildergetTrace()The unique identifier of the session with the agent.final voidsetCallerChain(Collection<software.amazon.awssdk.services.bedrockagentruntime.model.Caller.BuilderImpl> callerChain) final voidsetCollaboratorName(String collaboratorName) final voidsetEventTime(Instant eventTime) final voidsetSessionId(String sessionId) final voidsetTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace) Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.InlineAgentTracePart.Builder
traceMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutationMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
getCallerChain
-
setCallerChain
public final void setCallerChain(Collection<software.amazon.awssdk.services.bedrockagentruntime.model.Caller.BuilderImpl> callerChain) -
callerChain
Description copied from interface:InlineAgentTracePart.BuilderThe caller chain for the trace part.
- Specified by:
callerChainin interfaceInlineAgentTracePart.Builder- Parameters:
callerChain- The caller chain for the trace part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
Description copied from interface:InlineAgentTracePart.BuilderThe caller chain for the trace part.
- Specified by:
callerChainin interfaceInlineAgentTracePart.Builder- Parameters:
callerChain- The caller chain for the trace part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
@SafeVarargs public final InlineAgentTracePart.Builder callerChain(Consumer<Caller.Builder>... callerChain) Description copied from interface:InlineAgentTracePart.BuilderThe caller chain for the trace part.
This is a convenience method that creates an instance of theCaller.Builderavoiding the need to create one manually viaCaller.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toInlineAgentTracePart.Builder.callerChain(List<Caller>).- Specified by:
callerChainin interfaceInlineAgentTracePart.Builder- Parameters:
callerChain- a consumer that will call methods onCaller.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getCollaboratorName
-
setCollaboratorName
-
collaboratorName
Description copied from interface:InlineAgentTracePart.BuilderThe collaborator name for the trace part.
- Specified by:
collaboratorNamein interfaceInlineAgentTracePart.Builder- Parameters:
collaboratorName- The collaborator name for the trace part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventTime
-
setEventTime
-
eventTime
Description copied from interface:InlineAgentTracePart.BuilderThe time that trace occurred.
- Specified by:
eventTimein interfaceInlineAgentTracePart.Builder- Parameters:
eventTime- The time that trace occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSessionId
-
setSessionId
-
sessionId
Description copied from interface:InlineAgentTracePart.BuilderThe unique identifier of the session with the agent.
- Specified by:
sessionIdin interfaceInlineAgentTracePart.Builder- Parameters:
sessionId- The unique identifier of the session with the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTrace
-
setTrace
public final void setTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace) -
trace
Description copied from interface:InlineAgentTracePart.BuilderContains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.
- Specified by:
tracein interfaceInlineAgentTracePart.Builder- Parameters:
trace- Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
build
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-