@aws-sdk/client-sagemakerjobruntime 3.1059.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +210 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/bdd.js +32 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  6. package/dist-cjs/index.js +201 -0
  7. package/dist-cjs/models/SagemakerJobRuntimeServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +111 -0
  9. package/dist-cjs/runtimeConfig.browser.js +36 -0
  10. package/dist-cjs/runtimeConfig.js +49 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +43 -0
  13. package/dist-cjs/schemas/schemas_0.js +155 -0
  14. package/dist-es/SagemakerJobRuntime.js +15 -0
  15. package/dist-es/SagemakerJobRuntimeClient.js +47 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/CompleteRolloutCommand.js +16 -0
  19. package/dist-es/commands/SampleCommand.js +16 -0
  20. package/dist-es/commands/SampleWithResponseStreamCommand.js +16 -0
  21. package/dist-es/commands/UpdateRewardCommand.js +16 -0
  22. package/dist-es/commands/index.js +4 -0
  23. package/dist-es/endpoint/EndpointParameters.js +11 -0
  24. package/dist-es/endpoint/bdd.js +29 -0
  25. package/dist-es/endpoint/endpointResolver.js +14 -0
  26. package/dist-es/extensionConfiguration.js +1 -0
  27. package/dist-es/index.js +8 -0
  28. package/dist-es/models/SagemakerJobRuntimeServiceException.js +8 -0
  29. package/dist-es/models/enums.js +4 -0
  30. package/dist-es/models/errors.js +101 -0
  31. package/dist-es/models/models_0.js +1 -0
  32. package/dist-es/runtimeConfig.browser.js +31 -0
  33. package/dist-es/runtimeConfig.js +44 -0
  34. package/dist-es/runtimeConfig.native.js +11 -0
  35. package/dist-es/runtimeConfig.shared.js +39 -0
  36. package/dist-es/runtimeExtensions.js +9 -0
  37. package/dist-es/schemas/schemas_0.js +152 -0
  38. package/dist-types/SagemakerJobRuntime.d.ts +39 -0
  39. package/dist-types/SagemakerJobRuntimeClient.d.ts +196 -0
  40. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  41. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  42. package/dist-types/commands/CompleteRolloutCommand.d.ts +115 -0
  43. package/dist-types/commands/SampleCommand.d.ts +127 -0
  44. package/dist-types/commands/SampleWithResponseStreamCommand.d.ts +131 -0
  45. package/dist-types/commands/UpdateRewardCommand.d.ts +121 -0
  46. package/dist-types/commands/index.d.ts +4 -0
  47. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  48. package/dist-types/endpoint/bdd.d.ts +2 -0
  49. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  50. package/dist-types/extensionConfiguration.d.ts +9 -0
  51. package/dist-types/index.d.ts +17 -0
  52. package/dist-types/models/SagemakerJobRuntimeServiceException.d.ts +14 -0
  53. package/dist-types/models/enums.d.ts +18 -0
  54. package/dist-types/models/errors.d.ts +95 -0
  55. package/dist-types/models/models_0.d.ts +141 -0
  56. package/dist-types/runtimeConfig.browser.d.ts +56 -0
  57. package/dist-types/runtimeConfig.d.ts +56 -0
  58. package/dist-types/runtimeConfig.native.d.ts +55 -0
  59. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  60. package/dist-types/runtimeExtensions.d.ts +17 -0
  61. package/dist-types/schemas/schemas_0.d.ts +28 -0
  62. package/dist-types/ts3.4/SagemakerJobRuntime.d.ts +75 -0
  63. package/dist-types/ts3.4/SagemakerJobRuntimeClient.d.ts +139 -0
  64. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  65. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  66. package/dist-types/ts3.4/commands/CompleteRolloutCommand.d.ts +52 -0
  67. package/dist-types/ts3.4/commands/SampleCommand.d.ts +61 -0
  68. package/dist-types/ts3.4/commands/SampleWithResponseStreamCommand.d.ts +68 -0
  69. package/dist-types/ts3.4/commands/UpdateRewardCommand.d.ts +49 -0
  70. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  71. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  72. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  73. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  74. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  75. package/dist-types/ts3.4/index.d.ts +11 -0
  76. package/dist-types/ts3.4/models/SagemakerJobRuntimeServiceException.d.ts +9 -0
  77. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  78. package/dist-types/ts3.4/models/errors.d.ts +58 -0
  79. package/dist-types/ts3.4/models/models_0.d.ts +34 -0
  80. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +103 -0
  81. package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
  82. package/dist-types/ts3.4/runtimeConfig.native.d.ts +107 -0
  83. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +33 -0
  84. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  85. package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -0
  86. package/package.json +71 -0
@@ -0,0 +1,127 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { Uint8ArrayBlobAdapter } from "@smithy/core/serde";
3
+ import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import type { SampleRequest, SampleResponse } from "../models/models_0";
5
+ import type { SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerJobRuntimeClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export type { __MetadataBearer };
10
+ export { $Command };
11
+ /**
12
+ * @public
13
+ */
14
+ export type SampleCommandInputType = Omit<SampleRequest, "Body"> & {
15
+ Body: BlobPayloadInputTypes;
16
+ };
17
+ /**
18
+ * @public
19
+ *
20
+ * The input for {@link SampleCommand}.
21
+ */
22
+ export interface SampleCommandInput extends SampleCommandInputType {
23
+ }
24
+ /**
25
+ * @public
26
+ */
27
+ export type SampleCommandOutputType = Omit<SampleResponse, "Body"> & {
28
+ Body: Uint8ArrayBlobAdapter;
29
+ };
30
+ /**
31
+ * @public
32
+ *
33
+ * The output of {@link SampleCommand}.
34
+ */
35
+ export interface SampleCommandOutput extends SampleCommandOutputType, __MetadataBearer {
36
+ }
37
+ declare const SampleCommand_base: {
38
+ new (input: SampleCommandInput): import("@smithy/core/client").CommandImpl<SampleCommandInput, SampleCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
39
+ new (input: SampleCommandInput): import("@smithy/core/client").CommandImpl<SampleCommandInput, SampleCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
40
+ getEndpointParameterInstructions(): {
41
+ [x: string]: unknown;
42
+ };
43
+ };
44
+ /**
45
+ * Sends an inference request to the model during a job execution. The request
46
+ * and response bodies are forwarded to and from the model without modification.
47
+ * Each turn (prompt and response) is captured for later use.
48
+ * @example
49
+ * Use a bare-bones client and the command you need to make an API call.
50
+ * ```javascript
51
+ * import { SagemakerJobRuntimeClient, SampleCommand } from "@aws-sdk/client-sagemakerjobruntime"; // ES Modules import
52
+ * // const { SagemakerJobRuntimeClient, SampleCommand } = require("@aws-sdk/client-sagemakerjobruntime"); // CommonJS import
53
+ * // import type { SagemakerJobRuntimeClientConfig } from "@aws-sdk/client-sagemakerjobruntime";
54
+ * const config = {}; // type is SagemakerJobRuntimeClientConfig
55
+ * const client = new SagemakerJobRuntimeClient(config);
56
+ * const input = { // SampleRequest
57
+ * JobArn: "STRING_VALUE", // required
58
+ * TrajectoryId: "STRING_VALUE", // required
59
+ * Body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
60
+ * };
61
+ * const command = new SampleCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // SampleResponse
64
+ * // ContentType: "STRING_VALUE",
65
+ * // Body: new Uint8Array(), // required
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param SampleCommandInput - {@link SampleCommandInput}
71
+ * @returns {@link SampleCommandOutput}
72
+ * @see {@link SampleCommandInput} for command's `input` shape.
73
+ * @see {@link SampleCommandOutput} for command's `response` shape.
74
+ * @see {@link SagemakerJobRuntimeClientResolvedConfig | config} for SagemakerJobRuntimeClient's `config` shape.
75
+ *
76
+ * @throws {@link AccessDeniedException} (client fault)
77
+ * You do not have permission to perform this operation.
78
+ *
79
+ * @throws {@link InternalServiceError} (server fault)
80
+ * An internal service error occurred. Retry the request.
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * The specified resource was not found.
84
+ *
85
+ * @throws {@link ServiceQuotaExceededException} (client fault)
86
+ * You have exceeded a service quota.
87
+ *
88
+ * @throws {@link ThrottlingException} (client fault)
89
+ * The request was throttled. Retry the request after a brief wait.
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * The request is not valid. Check the request syntax and parameters
93
+ *
94
+ * @throws {@link SagemakerJobRuntimeServiceException}
95
+ * <p>Base exception class for all service exceptions from SagemakerJobRuntime service.</p>
96
+ *
97
+ *
98
+ * @example Invoke Sample
99
+ * ```javascript
100
+ * // Sends an inference request to the model and receives the response.
101
+ * const input = {
102
+ * Body: "eyJtb2RlbCI6Im15LW1vZGVsIiwibWVzc2FnZXMiOlt7InJvbGUiOiJ1c2VyIiwiY29udGVudCI6IkhlbGxvIn1dfQ==",
103
+ * JobArn: "arn:aws:sagemaker:us-east-1:123456789012:job/AgentRFT/my-training-job",
104
+ * TrajectoryId: "trajectory-001"
105
+ * };
106
+ * const command = new SampleCommand(input);
107
+ * const response = await client.send(command);
108
+ * /* response is
109
+ * { /* metadata only *\/ }
110
+ * *\/
111
+ * ```
112
+ *
113
+ * @public
114
+ */
115
+ export declare class SampleCommand extends SampleCommand_base {
116
+ /** @internal type navigation helper, not in runtime. */
117
+ protected static __types: {
118
+ api: {
119
+ input: SampleRequest;
120
+ output: SampleResponse;
121
+ };
122
+ sdk: {
123
+ input: SampleCommandInput;
124
+ output: SampleCommandOutput;
125
+ };
126
+ };
127
+ }
@@ -0,0 +1,131 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types";
3
+ import type { SampleWithResponseStreamRequest, SampleWithResponseStreamResponse } from "../models/models_0";
4
+ import type { SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerJobRuntimeClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ */
13
+ export type SampleWithResponseStreamCommandInputType = Omit<SampleWithResponseStreamRequest, "Body"> & {
14
+ Body: BlobPayloadInputTypes;
15
+ };
16
+ /**
17
+ * @public
18
+ *
19
+ * The input for {@link SampleWithResponseStreamCommand}.
20
+ */
21
+ export interface SampleWithResponseStreamCommandInput extends SampleWithResponseStreamCommandInputType {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * The output of {@link SampleWithResponseStreamCommand}.
27
+ */
28
+ export interface SampleWithResponseStreamCommandOutput extends Omit<SampleWithResponseStreamResponse, "Body">, __MetadataBearer {
29
+ Body: StreamingBlobPayloadOutputTypes;
30
+ }
31
+ declare const SampleWithResponseStreamCommand_base: {
32
+ new (input: SampleWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<SampleWithResponseStreamCommandInput, SampleWithResponseStreamCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
33
+ new (input: SampleWithResponseStreamCommandInput): import("@smithy/core/client").CommandImpl<SampleWithResponseStreamCommandInput, SampleWithResponseStreamCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
34
+ getEndpointParameterInstructions(): {
35
+ [x: string]: unknown;
36
+ };
37
+ };
38
+ /**
39
+ * Sends a streaming inference request to the model during a job execution.
40
+ * Returns the response as a stream of payload chunks. Each turn is captured
41
+ * for later use.
42
+ * @example
43
+ * Use a bare-bones client and the command you need to make an API call.
44
+ * ```javascript
45
+ * import { SagemakerJobRuntimeClient, SampleWithResponseStreamCommand } from "@aws-sdk/client-sagemakerjobruntime"; // ES Modules import
46
+ * // const { SagemakerJobRuntimeClient, SampleWithResponseStreamCommand } = require("@aws-sdk/client-sagemakerjobruntime"); // CommonJS import
47
+ * // import type { SagemakerJobRuntimeClientConfig } from "@aws-sdk/client-sagemakerjobruntime";
48
+ * const config = {}; // type is SagemakerJobRuntimeClientConfig
49
+ * const client = new SagemakerJobRuntimeClient(config);
50
+ * const input = { // SampleWithResponseStreamRequest
51
+ * JobArn: "STRING_VALUE", // required
52
+ * TrajectoryId: "STRING_VALUE", // required
53
+ * Body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
54
+ * };
55
+ * const command = new SampleWithResponseStreamCommand(input);
56
+ * const response = await client.send(command);
57
+ * // consume or destroy the stream to free the socket.
58
+ * const bytes = await response.Body.transformToByteArray();
59
+ * // const str = await response.Body.transformToString();
60
+ * // response.Body.destroy(); // only applicable to Node.js Readable streams.
61
+ *
62
+ * // { // SampleWithResponseStreamResponse
63
+ * // ContentType: "STRING_VALUE",
64
+ * // Body: "<SdkStream>", // see \@smithy/types -> StreamingBlobPayloadOutputTypes // required
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param SampleWithResponseStreamCommandInput - {@link SampleWithResponseStreamCommandInput}
70
+ * @returns {@link SampleWithResponseStreamCommandOutput}
71
+ * @see {@link SampleWithResponseStreamCommandInput} for command's `input` shape.
72
+ * @see {@link SampleWithResponseStreamCommandOutput} for command's `response` shape.
73
+ * @see {@link SagemakerJobRuntimeClientResolvedConfig | config} for SagemakerJobRuntimeClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * You do not have permission to perform this operation.
77
+ *
78
+ * @throws {@link InternalServiceError} (server fault)
79
+ * An internal service error occurred. Retry the request.
80
+ *
81
+ * @throws {@link ResourceNotFoundException} (client fault)
82
+ * The specified resource was not found.
83
+ *
84
+ * @throws {@link ServiceQuotaExceededException} (client fault)
85
+ * You have exceeded a service quota.
86
+ *
87
+ * @throws {@link ThrottlingException} (client fault)
88
+ * The request was throttled. Retry the request after a brief wait.
89
+ *
90
+ * @throws {@link ValidationException} (client fault)
91
+ * The request is not valid. Check the request syntax and parameters
92
+ *
93
+ * @throws {@link SagemakerJobRuntimeServiceException}
94
+ * <p>Base exception class for all service exceptions from SagemakerJobRuntime service.</p>
95
+ *
96
+ *
97
+ * @example Invoke SampleWithResponseStream
98
+ * ```javascript
99
+ * // Sends a streaming inference request and receives the response as a stream of payload chunks.
100
+ * const input = {
101
+ * Body: "eyJtb2RlbCI6Im15LW1vZGVsIiwibWVzc2FnZXMiOlt7InJvbGUiOiJ1c2VyIiwiY29udGVudCI6IkhlbGxvIn1dfQ==",
102
+ * JobArn: "arn:aws:sagemaker:us-east-1:123456789012:job/AgentRFT/my-training-job",
103
+ * TrajectoryId: "trajectory-001"
104
+ * };
105
+ * const command = new SampleWithResponseStreamCommand(input);
106
+ * const response = await client.send(command);
107
+ * // consume or destroy the stream to free the socket.
108
+ * const bytes = await response.Body.transformToByteArray();
109
+ * // const str = await response.Body.transformToString();
110
+ * // response.Body.destroy(); // only applicable to Node.js Readable streams.
111
+ *
112
+ * /* response is
113
+ * { /* metadata only *\/ }
114
+ * *\/
115
+ * ```
116
+ *
117
+ * @public
118
+ */
119
+ export declare class SampleWithResponseStreamCommand extends SampleWithResponseStreamCommand_base {
120
+ /** @internal type navigation helper, not in runtime. */
121
+ protected static __types: {
122
+ api: {
123
+ input: SampleWithResponseStreamRequest;
124
+ output: SampleWithResponseStreamResponse;
125
+ };
126
+ sdk: {
127
+ input: SampleWithResponseStreamCommandInput;
128
+ output: SampleWithResponseStreamCommandOutput;
129
+ };
130
+ };
131
+ }
@@ -0,0 +1,121 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateRewardRequest, UpdateRewardResponse } from "../models/models_0";
4
+ import type { SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerJobRuntimeClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateRewardCommand}.
14
+ */
15
+ export interface UpdateRewardCommandInput extends UpdateRewardRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateRewardCommand}.
21
+ */
22
+ export interface UpdateRewardCommandOutput extends UpdateRewardResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateRewardCommand_base: {
25
+ new (input: UpdateRewardCommandInput): import("@smithy/core/client").CommandImpl<UpdateRewardCommandInput, UpdateRewardCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateRewardCommandInput): import("@smithy/core/client").CommandImpl<UpdateRewardCommandInput, UpdateRewardCommandOutput, SagemakerJobRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Updates the reward values for a trajectory and transitions it to
33
+ * reward-received status, signaling that it is eligible for processing. Call this
34
+ * operation after CompleteRollout to provide the computed reward scores.
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { SagemakerJobRuntimeClient, UpdateRewardCommand } from "@aws-sdk/client-sagemakerjobruntime"; // ES Modules import
39
+ * // const { SagemakerJobRuntimeClient, UpdateRewardCommand } = require("@aws-sdk/client-sagemakerjobruntime"); // CommonJS import
40
+ * // import type { SagemakerJobRuntimeClientConfig } from "@aws-sdk/client-sagemakerjobruntime";
41
+ * const config = {}; // type is SagemakerJobRuntimeClientConfig
42
+ * const client = new SagemakerJobRuntimeClient(config);
43
+ * const input = { // UpdateRewardRequest
44
+ * JobArn: "STRING_VALUE", // required
45
+ * TrajectoryId: "STRING_VALUE", // required
46
+ * Rewards: [ // DoubleList // required
47
+ * Number("double"),
48
+ * ],
49
+ * ClientToken: "STRING_VALUE",
50
+ * };
51
+ * const command = new UpdateRewardCommand(input);
52
+ * const response = await client.send(command);
53
+ * // {};
54
+ *
55
+ * ```
56
+ *
57
+ * @param UpdateRewardCommandInput - {@link UpdateRewardCommandInput}
58
+ * @returns {@link UpdateRewardCommandOutput}
59
+ * @see {@link UpdateRewardCommandInput} for command's `input` shape.
60
+ * @see {@link UpdateRewardCommandOutput} for command's `response` shape.
61
+ * @see {@link SagemakerJobRuntimeClientResolvedConfig | config} for SagemakerJobRuntimeClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * You do not have permission to perform this operation.
65
+ *
66
+ * @throws {@link ConflictException} (client fault)
67
+ * The request conflicts with the current state of the resource.
68
+ *
69
+ * @throws {@link InternalServiceError} (server fault)
70
+ * An internal service error occurred. Retry the request.
71
+ *
72
+ * @throws {@link ResourceNotFoundException} (client fault)
73
+ * The specified resource was not found.
74
+ *
75
+ * @throws {@link ServiceQuotaExceededException} (client fault)
76
+ * You have exceeded a service quota.
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * The request was throttled. Retry the request after a brief wait.
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * The request is not valid. Check the request syntax and parameters
83
+ *
84
+ * @throws {@link SagemakerJobRuntimeServiceException}
85
+ * <p>Base exception class for all service exceptions from SagemakerJobRuntime service.</p>
86
+ *
87
+ *
88
+ * @example Invoke UpdateReward
89
+ * ```javascript
90
+ * // Updates the reward values for a completed trajectory.
91
+ * const input = {
92
+ * JobArn: "arn:aws:sagemaker:us-east-1:123456789012:job/AgentRFT/my-training-job",
93
+ * Rewards: [
94
+ * 0.85,
95
+ * 0.92,
96
+ * 0.78
97
+ * ],
98
+ * TrajectoryId: "trajectory-001"
99
+ * };
100
+ * const command = new UpdateRewardCommand(input);
101
+ * const response = await client.send(command);
102
+ * /* response is
103
+ * { /* empty *\/ }
104
+ * *\/
105
+ * ```
106
+ *
107
+ * @public
108
+ */
109
+ export declare class UpdateRewardCommand extends UpdateRewardCommand_base {
110
+ /** @internal type navigation helper, not in runtime. */
111
+ protected static __types: {
112
+ api: {
113
+ input: UpdateRewardRequest;
114
+ output: {};
115
+ };
116
+ sdk: {
117
+ input: UpdateRewardCommandInput;
118
+ output: UpdateRewardCommandOutput;
119
+ };
120
+ };
121
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./CompleteRolloutCommand";
2
+ export * from "./SampleCommand";
3
+ export * from "./SampleWithResponseStreamCommand";
4
+ export * from "./UpdateRewardCommand";
@@ -0,0 +1,44 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
7
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
8
+ region?: string | undefined | Provider<string | undefined>;
9
+ }
10
+ /**
11
+ * @public
12
+ */
13
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
14
+ defaultSigningName: string;
15
+ };
16
+ /**
17
+ * @internal
18
+ */
19
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
20
+ /**
21
+ * @internal
22
+ */
23
+ export declare const commonParams: {
24
+ readonly UseFIPS: {
25
+ readonly type: "builtInParams";
26
+ readonly name: "useFipsEndpoint";
27
+ };
28
+ readonly Endpoint: {
29
+ readonly type: "builtInParams";
30
+ readonly name: "endpoint";
31
+ };
32
+ readonly Region: {
33
+ readonly type: "builtInParams";
34
+ readonly name: "region";
35
+ };
36
+ };
37
+ /**
38
+ * @internal
39
+ */
40
+ export interface EndpointParameters extends __EndpointParameters {
41
+ UseFIPS?: boolean | undefined;
42
+ Endpoint?: string | undefined;
43
+ Region?: string | undefined;
44
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface SagemakerJobRuntimeExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Agentic RFT Runtime Service - manages trajectory and transition data
3
+ * for reinforcement fine-tuning jobs.
4
+ *
5
+ * @packageDocumentation
6
+ */
7
+ export * from "./SagemakerJobRuntimeClient";
8
+ export * from "./SagemakerJobRuntime";
9
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
10
+ export type { RuntimeExtension } from "./runtimeExtensions";
11
+ export type { SagemakerJobRuntimeExtensionConfiguration } from "./extensionConfiguration";
12
+ export * from "./commands";
13
+ export * from "./schemas/schemas_0";
14
+ export * from "./models/enums";
15
+ export * from "./models/errors";
16
+ export * from "./models/models_0";
17
+ export { SagemakerJobRuntimeServiceException } from "./models/SagemakerJobRuntimeServiceException";
@@ -0,0 +1,14 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from SagemakerJobRuntime service.
8
+ */
9
+ export declare class SagemakerJobRuntimeServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const CompletionStatus: {
6
+ /**
7
+ * Trajectory failed; terminal state, no further processing.
8
+ */
9
+ readonly FAILED: "failed";
10
+ /**
11
+ * Trajectory completed successfully; sealed and eligible for reward submission.
12
+ */
13
+ readonly READY: "ready";
14
+ };
15
+ /**
16
+ * @public
17
+ */
18
+ export type CompletionStatus = (typeof CompletionStatus)[keyof typeof CompletionStatus];
@@ -0,0 +1,95 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { SagemakerJobRuntimeServiceException as __BaseException } from "./SagemakerJobRuntimeServiceException";
3
+ /**
4
+ * You do not have permission to perform this operation.
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ Message: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * The request conflicts with the current state of the resource.
18
+ * @public
19
+ */
20
+ export declare class ConflictException extends __BaseException {
21
+ readonly name: "ConflictException";
22
+ readonly $fault: "client";
23
+ Message: string | undefined;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
28
+ }
29
+ /**
30
+ * An internal service error occurred. Retry the request.
31
+ * @public
32
+ */
33
+ export declare class InternalServiceError extends __BaseException {
34
+ readonly name: "InternalServiceError";
35
+ readonly $fault: "server";
36
+ $retryable: {};
37
+ Message: string | undefined;
38
+ /**
39
+ * @internal
40
+ */
41
+ constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
42
+ }
43
+ /**
44
+ * The specified resource was not found.
45
+ * @public
46
+ */
47
+ export declare class ResourceNotFoundException extends __BaseException {
48
+ readonly name: "ResourceNotFoundException";
49
+ readonly $fault: "client";
50
+ Message: string | undefined;
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
55
+ }
56
+ /**
57
+ * You have exceeded a service quota.
58
+ * @public
59
+ */
60
+ export declare class ServiceQuotaExceededException extends __BaseException {
61
+ readonly name: "ServiceQuotaExceededException";
62
+ readonly $fault: "client";
63
+ Message: string | undefined;
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
68
+ }
69
+ /**
70
+ * The request was throttled. Retry the request after a brief wait.
71
+ * @public
72
+ */
73
+ export declare class ThrottlingException extends __BaseException {
74
+ readonly name: "ThrottlingException";
75
+ readonly $fault: "client";
76
+ $retryable: {};
77
+ Message: string | undefined;
78
+ /**
79
+ * @internal
80
+ */
81
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
82
+ }
83
+ /**
84
+ * The request is not valid. Check the request syntax and parameters
85
+ * @public
86
+ */
87
+ export declare class ValidationException extends __BaseException {
88
+ readonly name: "ValidationException";
89
+ readonly $fault: "client";
90
+ Message: string | undefined;
91
+ /**
92
+ * @internal
93
+ */
94
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
95
+ }