Skip to content

ResponseStream

Union Type

Union Member Types

ResponseStreamChunk dataclass

Bases: _SerdeShape

Contains a part of an agent response and citations for it.

Attributes

value instance-attribute
value: PayloadPart

ResponseStreamTrace dataclass

Bases: _SerdeShape

Contains information about the agent and session, alongside the agent's reasoning process and results from calling actions and querying knowledge bases and metadata about the trace. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace events.

Attributes

value instance-attribute
value: TracePart

ResponseStreamReturnControl dataclass

Bases: _SerdeShape

Contains the parameters and information that the agent elicited from the customer to carry out an action. This information is returned to the system and can be used in your own setup for fulfilling the action.

Attributes

value instance-attribute

ResponseStreamInternalServerException dataclass

Bases: _SerdeShape

An internal server error occurred. Retry your request.

Attributes

value instance-attribute

ResponseStreamValidationException dataclass

Bases: _SerdeShape

Input validation failed. Check your request parameters and retry the request.

Attributes

value instance-attribute

ResponseStreamResourceNotFoundException dataclass

Bases: _SerdeShape

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

Attributes

value instance-attribute

ResponseStreamServiceQuotaExceededException dataclass

Bases: _SerdeShape

The number of requests exceeds the service quota. Resubmit your request later.

Attributes

value instance-attribute

ResponseStreamThrottlingException dataclass

Bases: _SerdeShape

The number of requests exceeds the limit. Resubmit your request later.

Attributes

value instance-attribute

ResponseStreamAccessDeniedException dataclass

Bases: _SerdeShape

The request is denied because of missing access permissions. Check your permissions and retry your request.

Attributes

value instance-attribute

ResponseStreamConflictException dataclass

Bases: _SerdeShape

There was a conflict performing an operation. Resolve the conflict and retry your request.

Attributes

value instance-attribute

ResponseStreamDependencyFailedException dataclass

Bases: _SerdeShape

There was an issue with a dependency. Check the resource configurations and retry the request.

Attributes

value instance-attribute

ResponseStreamBadGatewayException dataclass

Bases: _SerdeShape

There was an issue with a dependency due to a server issue. Retry your request.

Attributes

value instance-attribute

ResponseStreamModelNotReadyException dataclass

Bases: _SerdeShape

The model specified in the request is not ready to serve Inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see Retry behavior in the AWS SDKs and Tools reference guide.

Attributes

value instance-attribute

ResponseStreamFiles dataclass

Bases: _SerdeShape

Contains intermediate response for code interpreter if any files have been generated.

Attributes

value instance-attribute
value: FilePart

ResponseStreamUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str