Class OrchestrationTrace
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.OrchestrationTrace
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OrchestrationTrace.Builder,OrchestrationTrace>
@Generated("software.amazon.awssdk:codegen") public final class OrchestrationTrace extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OrchestrationTrace.Builder,OrchestrationTrace>
Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOrchestrationTrace.Builderstatic classOrchestrationTrace.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OrchestrationTrace.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static OrchestrationTracefromInvocationInput(Consumer<InvocationInput.Builder> invocationInput)Create an instance of this class withinvocationInput()initialized to the given value.static OrchestrationTracefromInvocationInput(InvocationInput invocationInput)Create an instance of this class withinvocationInput()initialized to the given value.static OrchestrationTracefromModelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput)Create an instance of this class withmodelInvocationInput()initialized to the given value.static OrchestrationTracefromModelInvocationInput(ModelInvocationInput modelInvocationInput)Create an instance of this class withmodelInvocationInput()initialized to the given value.static OrchestrationTracefromObservation(Consumer<Observation.Builder> observation)Create an instance of this class withobservation()initialized to the given value.static OrchestrationTracefromObservation(Observation observation)Create an instance of this class withobservation()initialized to the given value.static OrchestrationTracefromRationale(Consumer<Rationale.Builder> rationale)Create an instance of this class withrationale()initialized to the given value.static OrchestrationTracefromRationale(Rationale rationale)Create an instance of this class withrationale()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InvocationInputinvocationInput()Contains information pertaining to the action group or knowledge base that is being invoked.ModelInvocationInputmodelInvocationInput()The input for the orchestration step.Observationobservation()Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.Rationalerationale()Details about the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.List<SdkField<?>>sdkFields()static Class<? extends OrchestrationTrace.Builder>serializableBuilderClass()OrchestrationTrace.BuildertoBuilder()StringtoString()Returns a string representation of this object.OrchestrationTrace.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
-
invocationInput
public final InvocationInput invocationInput()
Contains information pertaining to the action group or knowledge base that is being invoked.
- Returns:
- Contains information pertaining to the action group or knowledge base that is being invoked.
-
modelInvocationInput
public final ModelInvocationInput modelInvocationInput()
The input for the orchestration step.
-
The
typeisORCHESTRATION. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
- Returns:
- The input for the orchestration step.
-
The
typeisORCHESTRATION. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
-
-
-
observation
public final Observation observation()
Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.
- Returns:
- Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.
-
rationale
public final Rationale rationale()
Details about the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.
- Returns:
- Details about the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.
-
toBuilder
public OrchestrationTrace.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OrchestrationTrace.Builder,OrchestrationTrace>
-
builder
public static OrchestrationTrace.Builder builder()
-
serializableBuilderClass
public static Class<? extends OrchestrationTrace.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.
-
fromInvocationInput
public static OrchestrationTrace fromInvocationInput(InvocationInput invocationInput)
Create an instance of this class withinvocationInput()initialized to the given value.Contains information pertaining to the action group or knowledge base that is being invoked.
- Parameters:
invocationInput- Contains information pertaining to the action group or knowledge base that is being invoked.
-
fromInvocationInput
public static OrchestrationTrace fromInvocationInput(Consumer<InvocationInput.Builder> invocationInput)
Create an instance of this class withinvocationInput()initialized to the given value.Contains information pertaining to the action group or knowledge base that is being invoked.
- Parameters:
invocationInput- Contains information pertaining to the action group or knowledge base that is being invoked.
-
fromModelInvocationInput
public static OrchestrationTrace fromModelInvocationInput(ModelInvocationInput modelInvocationInput)
Create an instance of this class withmodelInvocationInput()initialized to the given value.The input for the orchestration step.
-
The
typeisORCHESTRATION. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
- Parameters:
modelInvocationInput- The input for the orchestration step.-
The
typeisORCHESTRATION. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
-
-
-
fromModelInvocationInput
public static OrchestrationTrace fromModelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput)
Create an instance of this class withmodelInvocationInput()initialized to the given value.The input for the orchestration step.
-
The
typeisORCHESTRATION. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
- Parameters:
modelInvocationInput- The input for the orchestration step.-
The
typeisORCHESTRATION. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
-
-
-
fromObservation
public static OrchestrationTrace fromObservation(Observation observation)
Create an instance of this class withobservation()initialized to the given value.Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.
- Parameters:
observation- Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.
-
fromObservation
public static OrchestrationTrace fromObservation(Consumer<Observation.Builder> observation)
Create an instance of this class withobservation()initialized to the given value.Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.
- Parameters:
observation- Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.
-
fromRationale
public static OrchestrationTrace fromRationale(Rationale rationale)
Create an instance of this class withrationale()initialized to the given value.Details about the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.
- Parameters:
rationale- Details about the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.
-
fromRationale
public static OrchestrationTrace fromRationale(Consumer<Rationale.Builder> rationale)
Create an instance of this class withrationale()initialized to the given value.Details about the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.
- Parameters:
rationale- Details about the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.
-
type
public OrchestrationTrace.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 beOrchestrationTrace.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 beOrchestrationTrace.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-