Class TracePart

    • Method Detail

      • agentAliasId

        public final String agentAliasId()

        The unique identifier of the alias of the agent.

        Returns:
        The unique identifier of the alias of the agent.
      • agentId

        public final String agentId()

        The unique identifier of the agent.

        Returns:
        The unique identifier of the agent.
      • agentVersion

        public final String agentVersion()

        The version of the agent.

        Returns:
        The version of the agent.
      • sessionId

        public final String sessionId()

        The unique identifier of the session with the agent.

        Returns:
        The unique identifier of the session with the agent.
      • trace

        public final 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.

        Returns:
        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)