The SageMakerEndpointInput interface defines the input parameters for the SageMakerEndpoint class, which includes the endpoint name, client options for the SageMaker client, the content handler, and optional keyword arguments for the model and the endpoint.

Hierarchy

Properties

clientOptions: SageMakerRuntimeClientConfig

Options passed to the SageMaker client.

The content handler class that provides an input and output transform functions to handle formats between LLM and the endpoint.

endpointName: string

The name of the endpoint from the deployed SageMaker model. Must be unique within an AWS Region.

cache?: boolean | BaseCache<Generation[]>
callbackManager?: CallbackManager

⚠️ Deprecated ⚠️

Use callbacks instead

This feature is deprecated and will be removed in the future.

It is not recommended for use.

callbacks?: Callbacks
concurrency?: number

Deprecated

Use maxConcurrency instead

endpointKwargs?: Record<string, unknown>

Optional attributes passed to the InvokeEndpointCommand

maxConcurrency?: number

The maximum number of concurrent calls that can be made. Defaults to Infinity, which means no limit.

maxRetries?: number

The maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.

metadata?: Record<string, unknown>
modelKwargs?: Record<string, unknown>

Key word arguments to pass to the model.

onFailedAttempt?: FailedAttemptHandler

Custom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.

streaming?: boolean
tags?: string[]
verbose?: boolean

Generated using TypeDoc