Interface OrchestrationTrace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OrchestrationTrace.Builder,
,OrchestrationTrace> SdkBuilder<OrchestrationTrace.Builder,
,OrchestrationTrace> SdkPojo
- Enclosing class:
OrchestrationTrace
-
Method Summary
Modifier and TypeMethodDescriptiondefault OrchestrationTrace.Builder
invocationInput
(Consumer<InvocationInput.Builder> invocationInput) Contains information pertaining to the action group or knowledge base that is being invoked.invocationInput
(InvocationInput invocationInput) Contains information pertaining to the action group or knowledge base that is being invoked.default OrchestrationTrace.Builder
modelInvocationInput
(Consumer<ModelInvocationInput.Builder> modelInvocationInput) The input for the orchestration step.modelInvocationInput
(ModelInvocationInput modelInvocationInput) The input for the orchestration step.default OrchestrationTrace.Builder
modelInvocationOutput
(Consumer<OrchestrationModelInvocationOutput.Builder> modelInvocationOutput) Contains information pertaining to the output from the foundation model that is being invoked.modelInvocationOutput
(OrchestrationModelInvocationOutput modelInvocationOutput) Contains information pertaining to the output from the foundation model that is being invoked.default OrchestrationTrace.Builder
observation
(Consumer<Observation.Builder> observation) Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.observation
(Observation observation) Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.default OrchestrationTrace.Builder
rationale
(Consumer<Rationale.Builder> 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.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.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
invocationInput
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invocationInput
default OrchestrationTrace.Builder invocationInput(Consumer<InvocationInput.Builder> invocationInput) Contains information pertaining to the action group or knowledge base that is being invoked.
This is a convenience method that creates an instance of theInvocationInput.Builder
avoiding the need to create one manually viaInvocationInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinvocationInput(InvocationInput)
.- Parameters:
invocationInput
- a consumer that will call methods onInvocationInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelInvocationInput
The input for the orchestration step.
-
The
type
isORCHESTRATION
. -
The
text
contains the prompt. -
The
inferenceConfiguration
,parserMode
, andoverrideLambda
values 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
type
isORCHESTRATION
. -
The
text
contains the prompt. -
The
inferenceConfiguration
,parserMode
, andoverrideLambda
values are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
modelInvocationInput
default OrchestrationTrace.Builder modelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput) The input for the orchestration step.
-
The
type
isORCHESTRATION
. -
The
text
contains the prompt. -
The
inferenceConfiguration
,parserMode
, andoverrideLambda
values are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
ModelInvocationInput.Builder
avoiding the need to create one manually viaModelInvocationInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelInvocationInput(ModelInvocationInput)
.- Parameters:
modelInvocationInput
- a consumer that will call methods onModelInvocationInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
modelInvocationOutput
OrchestrationTrace.Builder modelInvocationOutput(OrchestrationModelInvocationOutput modelInvocationOutput) 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelInvocationOutput
default OrchestrationTrace.Builder modelInvocationOutput(Consumer<OrchestrationModelInvocationOutput.Builder> modelInvocationOutput) Contains information pertaining to the output from the foundation model that is being invoked.
This is a convenience method that creates an instance of theOrchestrationModelInvocationOutput.Builder
avoiding the need to create one manually viaOrchestrationModelInvocationOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelInvocationOutput(OrchestrationModelInvocationOutput)
.- Parameters:
modelInvocationOutput
- a consumer that will call methods onOrchestrationModelInvocationOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
observation
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
observation
Details about the observation (the output of the action group Lambda or knowledge base) made by the agent.
This is a convenience method that creates an instance of theObservation.Builder
avoiding the need to create one manually viaObservation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toobservation(Observation)
.- Parameters:
observation
- a consumer that will call methods onObservation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theRationale.Builder
avoiding the need to create one manually viaRationale.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torationale(Rationale)
.- Parameters:
rationale
- a consumer that will call methods onRationale.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-