Interface TracePart.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TracePart.Builder,TracePart>
,SdkBuilder<TracePart.Builder,TracePart>
,SdkPojo
- All Known Subinterfaces:
DefaultTrace.Builder
- All Known Implementing Classes:
TracePart.BuilderImpl
- Enclosing class:
- TracePart
public static interface TracePart.Builder extends SdkPojo, CopyableBuilder<TracePart.Builder,TracePart>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TracePart.Builder
agentAliasId(String agentAliasId)
The unique identifier of the alias of the agent.TracePart.Builder
agentId(String agentId)
The unique identifier of the agent.TracePart.Builder
agentVersion(String agentVersion)
The version of the agent.TracePart.Builder
callerChain(Collection<Caller> callerChain)
The part's caller chain.TracePart.Builder
callerChain(Consumer<Caller.Builder>... callerChain)
The part's caller chain.TracePart.Builder
callerChain(Caller... callerChain)
The part's caller chain.TracePart.Builder
collaboratorName(String collaboratorName)
The part's collaborator name.TracePart.Builder
sessionId(String sessionId)
The unique identifier of the session with the agent.default TracePart.Builder
trace(Consumer<Trace.Builder> trace)
Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases.TracePart.Builder
trace(Trace trace)
Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
agentAliasId
TracePart.Builder agentAliasId(String agentAliasId)
The unique identifier of the alias of the agent.
- Parameters:
agentAliasId
- The unique identifier of the alias of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentId
TracePart.Builder agentId(String agentId)
The unique identifier of the agent.
- Parameters:
agentId
- The unique identifier of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentVersion
TracePart.Builder agentVersion(String agentVersion)
The version of the agent.
- Parameters:
agentVersion
- The version of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
TracePart.Builder callerChain(Collection<Caller> callerChain)
The part's caller chain.
- Parameters:
callerChain
- The part's caller chain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
TracePart.Builder callerChain(Caller... callerChain)
The part's caller chain.
- Parameters:
callerChain
- The part's caller chain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
TracePart.Builder callerChain(Consumer<Caller.Builder>... callerChain)
The part's caller chain.
This is a convenience method that creates an instance of theCaller.Builder
avoiding the need to create one manually viaCaller.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#callerChain(List
.) - 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:
#callerChain(java.util.Collection
)
-
collaboratorName
TracePart.Builder collaboratorName(String collaboratorName)
The part's collaborator name.
- Parameters:
collaboratorName
- The part's collaborator name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
TracePart.Builder sessionId(String sessionId)
The unique identifier of the session with the agent.
- 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.
-
trace
TracePart.Builder trace(Trace 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.
- 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.
-
trace
default TracePart.Builder trace(Consumer<Trace.Builder> 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.
This is a convenience method that creates an instance of theTrace.Builder
avoiding the need to create one manually viaTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totrace(Trace)
.- Parameters:
trace
- a consumer that will call methods onTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
trace(Trace)
-
-