Class FlowTrace
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.FlowTrace
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FlowTrace.Builder,FlowTrace>
@Generated("software.amazon.awssdk:codegen") public final class FlowTrace extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FlowTrace.Builder,FlowTrace>
Contains information about an input or output for a node in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFlowTrace.Builderstatic classFlowTrace.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlowTrace.Builderbuilder()FlowTraceConditionNodeResultEventconditionNodeResultTrace()Contains information about an output from a condition node.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static FlowTracefromConditionNodeResultTrace(Consumer<FlowTraceConditionNodeResultEvent.Builder> conditionNodeResultTrace)Create an instance of this class withconditionNodeResultTrace()initialized to the given value.static FlowTracefromConditionNodeResultTrace(FlowTraceConditionNodeResultEvent conditionNodeResultTrace)Create an instance of this class withconditionNodeResultTrace()initialized to the given value.static FlowTracefromNodeActionTrace(Consumer<FlowTraceNodeActionEvent.Builder> nodeActionTrace)Create an instance of this class withnodeActionTrace()initialized to the given value.static FlowTracefromNodeActionTrace(FlowTraceNodeActionEvent nodeActionTrace)Create an instance of this class withnodeActionTrace()initialized to the given value.static FlowTracefromNodeInputTrace(Consumer<FlowTraceNodeInputEvent.Builder> nodeInputTrace)Create an instance of this class withnodeInputTrace()initialized to the given value.static FlowTracefromNodeInputTrace(FlowTraceNodeInputEvent nodeInputTrace)Create an instance of this class withnodeInputTrace()initialized to the given value.static FlowTracefromNodeOutputTrace(Consumer<FlowTraceNodeOutputEvent.Builder> nodeOutputTrace)Create an instance of this class withnodeOutputTrace()initialized to the given value.static FlowTracefromNodeOutputTrace(FlowTraceNodeOutputEvent nodeOutputTrace)Create an instance of this class withnodeOutputTrace()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()FlowTraceNodeActionEventnodeActionTrace()Contains information about an action (operation) called by a node.FlowTraceNodeInputEventnodeInputTrace()Contains information about the input into a node.FlowTraceNodeOutputEventnodeOutputTrace()Contains information about the output from a node.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FlowTrace.Builder>serializableBuilderClass()FlowTrace.BuildertoBuilder()StringtoString()Returns a string representation of this object.FlowTrace.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
conditionNodeResultTrace
public final FlowTraceConditionNodeResultEvent conditionNodeResultTrace()
Contains information about an output from a condition node.
- Returns:
- Contains information about an output from a condition node.
-
nodeActionTrace
public final FlowTraceNodeActionEvent nodeActionTrace()
Contains information about an action (operation) called by a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
- Returns:
- Contains information about an action (operation) called by a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
-
nodeInputTrace
public final FlowTraceNodeInputEvent nodeInputTrace()
Contains information about the input into a node.
- Returns:
- Contains information about the input into a node.
-
nodeOutputTrace
public final FlowTraceNodeOutputEvent nodeOutputTrace()
Contains information about the output from a node.
- Returns:
- Contains information about the output from a node.
-
toBuilder
public FlowTrace.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FlowTrace.Builder,FlowTrace>
-
builder
public static FlowTrace.Builder builder()
-
serializableBuilderClass
public static Class<? extends FlowTrace.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
fromConditionNodeResultTrace
public static FlowTrace fromConditionNodeResultTrace(FlowTraceConditionNodeResultEvent conditionNodeResultTrace)
Create an instance of this class withconditionNodeResultTrace()initialized to the given value.Contains information about an output from a condition node.
- Parameters:
conditionNodeResultTrace- Contains information about an output from a condition node.
-
fromConditionNodeResultTrace
public static FlowTrace fromConditionNodeResultTrace(Consumer<FlowTraceConditionNodeResultEvent.Builder> conditionNodeResultTrace)
Create an instance of this class withconditionNodeResultTrace()initialized to the given value.Contains information about an output from a condition node.
- Parameters:
conditionNodeResultTrace- Contains information about an output from a condition node.
-
fromNodeActionTrace
public static FlowTrace fromNodeActionTrace(FlowTraceNodeActionEvent nodeActionTrace)
Create an instance of this class withnodeActionTrace()initialized to the given value.Contains information about an action (operation) called by a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
- Parameters:
nodeActionTrace- Contains information about an action (operation) called by a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
-
fromNodeActionTrace
public static FlowTrace fromNodeActionTrace(Consumer<FlowTraceNodeActionEvent.Builder> nodeActionTrace)
Create an instance of this class withnodeActionTrace()initialized to the given value.Contains information about an action (operation) called by a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
- Parameters:
nodeActionTrace- Contains information about an action (operation) called by a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.
-
fromNodeInputTrace
public static FlowTrace fromNodeInputTrace(FlowTraceNodeInputEvent nodeInputTrace)
Create an instance of this class withnodeInputTrace()initialized to the given value.Contains information about the input into a node.
- Parameters:
nodeInputTrace- Contains information about the input into a node.
-
fromNodeInputTrace
public static FlowTrace fromNodeInputTrace(Consumer<FlowTraceNodeInputEvent.Builder> nodeInputTrace)
Create an instance of this class withnodeInputTrace()initialized to the given value.Contains information about the input into a node.
- Parameters:
nodeInputTrace- Contains information about the input into a node.
-
fromNodeOutputTrace
public static FlowTrace fromNodeOutputTrace(FlowTraceNodeOutputEvent nodeOutputTrace)
Create an instance of this class withnodeOutputTrace()initialized to the given value.Contains information about the output from a node.
- Parameters:
nodeOutputTrace- Contains information about the output from a node.
-
fromNodeOutputTrace
public static FlowTrace fromNodeOutputTrace(Consumer<FlowTraceNodeOutputEvent.Builder> nodeOutputTrace)
Create an instance of this class withnodeOutputTrace()initialized to the given value.Contains information about the output from a node.
- Parameters:
nodeOutputTrace- Contains information about the output from a node.
-
type
public FlowTrace.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beFlowTrace.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beFlowTrace.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-