Interface InlineAgentTracePart.Builder

    • Method Detail

      • callerChain

        InlineAgentTracePart.Builder callerChain​(Collection<Caller> callerChain)

        The caller chain for the trace part.

        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

        InlineAgentTracePart.Builder callerChain​(Caller... callerChain)

        The caller chain for the trace part.

        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

        InlineAgentTracePart.Builder callerChain​(Consumer<Caller.Builder>... callerChain)

        The caller chain for the trace part.

        This is a convenience method that creates an instance of the Caller.Builder avoiding the need to create one manually via Caller.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 on Caller.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #callerChain(java.util.Collection)
      • collaboratorName

        InlineAgentTracePart.Builder collaboratorName​(String collaboratorName)

        The collaborator name for the trace part.

        Parameters:
        collaboratorName - The collaborator name for the trace part.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventTime

        InlineAgentTracePart.Builder eventTime​(Instant eventTime)

        The time that trace occurred.

        Parameters:
        eventTime - The time that trace occurred.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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 the Trace.Builder avoiding the need to create one manually via Trace.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trace(Trace).

        Parameters:
        trace - a consumer that will call methods on Trace.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        trace(Trace)