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 SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum
- 
Method SummaryModifier 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.ToCopyableBuildercopy
- 
Method Details- 
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. - 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.
 
- 
invocationInputContains 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.
 
- 
observationDetails 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.
 
- 
modelInvocationInputThe 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.
 
- 
         
 
- 
 
- 
modelInvocationOutputContains 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.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<OrchestrationTrace.Builder,- OrchestrationTrace> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription 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 interface- SdkPojo
- 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
- 
fromRationaleCreate 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.
 
- 
fromRationaleCreate 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.
 
- 
fromInvocationInputCreate 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.
 
- 
fromInvocationInputpublic 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.
 
- 
fromObservationCreate 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.
 
- 
fromObservationCreate 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.
 
- 
fromModelInvocationInputpublic 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.
 
- 
        
 
- 
 
- 
fromModelInvocationInputpublic 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.
 
- 
        
 
- 
 
- 
fromModelInvocationOutputpublic 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.
 
- 
fromModelInvocationOutputpublic 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.
 
- 
typeRetrieve 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
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-