Class OrchestrationTrace
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic OrchestrationTrace.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.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 OrchestrationTracefromModelInvocationOutput(Consumer<OrchestrationModelInvocationOutput.Builder> modelInvocationOutput) Create an instance of this class withmodelInvocationOutput()initialized to the given value.static OrchestrationTracefromModelInvocationOutput(OrchestrationModelInvocationOutput modelInvocationOutput) Create an instance of this class withmodelInvocationOutput()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.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InvocationInputContains information pertaining to the action group or knowledge base that is being invoked.final ModelInvocationInputThe input for the orchestration step.Contains information pertaining to the output from the foundation model that is being invoked.final ObservationDetails about the observation (the output of the action group Lambda or knowledge base) made by the agent.final RationaleDetails 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.static Class<? extends OrchestrationTrace.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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.
-
-
-
modelInvocationOutput
Contains information pertaining to the output from the foundation model that is being invoked.
- Returns:
- Contains information pertaining to the output from the foundation model that is being invoked.
-
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
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<OrchestrationTrace.Builder,OrchestrationTrace> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromInvocationInput
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.
-
-
-
fromModelInvocationOutput
public static OrchestrationTrace fromModelInvocationOutput(OrchestrationModelInvocationOutput modelInvocationOutput) Create an instance of this class withmodelInvocationOutput()initialized to the given value.Contains information pertaining to the output from the foundation model that is being invoked.
- Parameters:
modelInvocationOutput- Contains information pertaining to the output from the foundation model that is being invoked.
-
fromModelInvocationOutput
public static OrchestrationTrace fromModelInvocationOutput(Consumer<OrchestrationModelInvocationOutput.Builder> modelInvocationOutput) Create an instance of this class withmodelInvocationOutput()initialized to the given value.Contains information pertaining to the output from the foundation model that is being invoked.
- Parameters:
modelInvocationOutput- Contains information pertaining to the output from the foundation model that is being invoked.
-
fromObservation
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
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
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
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
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. -
sdkFields
-