Interface InlineAgentTracePart.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>,SdkBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>,SdkPojo
- All Known Subinterfaces:
DefaultTrace.Builder
- All Known Implementing Classes:
InlineAgentTracePart.BuilderImpl
- Enclosing class:
- InlineAgentTracePart
public static interface InlineAgentTracePart.Builder extends SdkPojo, CopyableBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InlineAgentTracePart.BuildersessionId(String sessionId)The unique identifier of the session with the agent.default InlineAgentTracePart.Buildertrace(Consumer<Trace.Builder> trace)Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases.InlineAgentTracePart.Buildertrace(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
-
sessionId
InlineAgentTracePart.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
InlineAgentTracePart.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 InlineAgentTracePart.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.Builderavoiding the need to create one manually viaTrace.builder().When the
Consumercompletes,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)
-
-