Gen AI Evaluation Toolkit on AWS
v2.0.0
Copyright © 2026 Amazon Web Services, Inc. and/or its affiliates. All rights reserved. Amazon’s trademarks and trade dress may not be used in connection with any product or service that is not Amazon’s, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of contents
@awssolutions/gen-ai-evaluation-toolkit-ts-client
@awssolutions/gen-ai-evaluation-toolkit-ts-client / ClientDefaults
Interface: ClientDefaults¶
Extends¶
Partial\<__SmithyConfiguration\<__HttpHandlerOptions>>
Properties¶
base64Decoder?¶
optionalbase64Decoder?:Decoder
Internal
The function that will be used to convert a base64-encoded string to a byte array.
base64Encoder?¶
optionalbase64Encoder?:Encoder
Internal
The function that will be used to convert binary data to a base64-encoded string.
bodyLengthChecker?¶
optionalbodyLengthChecker?:BodyLengthCalculator
Internal
A function that can calculate the length of a request body.
~~credentialDefaultProvider?~~¶
optionalcredentialDefaultProvider?: (input) =>AwsCredentialIdentityProvider
Internal
Default credentials provider; Not available in browser runtime.
Parameters¶
input¶
any
Returns¶
AwsCredentialIdentityProvider
Deprecated¶
defaultsMode?¶
optionaldefaultsMode?:DefaultsMode|Provider\<DefaultsMode>
The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK.
defaultUserAgentProvider?¶
optionaldefaultUserAgentProvider?:Provider\<UserAgent>
Internal
The provider populating default tracking information to be sent with user-agent, x-amz-user-agent header
disableHostPrefix?¶
optionaldisableHostPrefix?:boolean
Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation.
extensions?¶
optionalextensions?:RuntimeExtension[]
Optional extensions
logger?¶
optionallogger?:Logger
Optional logger for logging debug/info/warn/error.
maxAttempts?¶
optionalmaxAttempts?:number|Provider\<number>
Value for how many times a request will be made at most in case of retry.
profile?¶
optionalprofile?:string
Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.
When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.
For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options.
region?¶
optionalregion?:string|Provider\<string>
The AWS region to which this client will send requests
requestHandler?¶
optionalrequestHandler?:HttpHandlerUserInput
The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
Overrides¶
Partial.requestHandler
retryMode?¶
optionalretryMode?:string|Provider\<string>
Specifies which retry algorithm to use.
See¶
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
runtime?¶
optionalruntime?:string
Internal
The runtime environment.
serviceId?¶
optionalserviceId?:string
Internal
Unique service identifier.
sha256?¶
optionalsha256?:ChecksumConstructor|HashConstructor
Internal
A constructor for a class implementing the @smithy/types#ChecksumConstructor interface that computes the SHA-256 HMAC or checksum of a string or binary buffer.
streamCollector?¶
optionalstreamCollector?:StreamCollector
Internal
A function that converts a stream into an array of bytes.
urlParser?¶
optionalurlParser?:UrlParser
Internal
The function that will be used to convert strings into HTTP endpoints.
useDualstackEndpoint?¶
optionaluseDualstackEndpoint?:boolean|Provider\<boolean>
Enables IPv6/IPv4 dualstack endpoint.
useFipsEndpoint?¶
optionaluseFipsEndpoint?:boolean|Provider\<boolean>
Enables FIPS compatible endpoints.
utf8Decoder?¶
optionalutf8Decoder?:Decoder
Internal
The function that will be used to convert a UTF8-encoded string to a byte array.
utf8Encoder?¶
optionalutf8Encoder?:Encoder
Internal
The function that will be used to convert binary data to a UTF-8 encoded string.