@aws-sdk/client-bedrock-agentcore 3.1136.0 → 3.1138.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.
- package/dist-cjs/index.js +35 -10
- package/dist-es/models/enums.js +11 -0
- package/dist-es/schemas/schemas_0.js +20 -9
- package/dist-types/BedrockAgentCore.d.ts +141 -135
- package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +1 -2
- package/dist-types/commands/InvokeHarnessCommand.d.ts +9 -1
- package/dist-types/models/enums.d.ts +27 -0
- package/dist-types/models/models_0.d.ts +66 -22
- package/dist-types/models/models_1.d.ts +20 -0
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +138 -134
- package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/enums.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +35 -5
- package/dist-types/ts3.4/models/models_1.d.ts +5 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +8 -8
|
@@ -89,6 +89,7 @@ declare const InvokeHarnessCommand_base: {
|
|
|
89
89
|
* openAiModelConfig: { // HarnessOpenAiModelConfig
|
|
90
90
|
* modelId: "STRING_VALUE", // required
|
|
91
91
|
* apiKeyArn: "STRING_VALUE", // required
|
|
92
|
+
* apiBase: "STRING_VALUE",
|
|
92
93
|
* maxTokens: Number("int"),
|
|
93
94
|
* temperature: Number("float"),
|
|
94
95
|
* topP: Number("float"),
|
|
@@ -239,7 +240,7 @@ declare const InvokeHarnessCommand_base: {
|
|
|
239
240
|
* // contentBlockIndex: Number("int"), // required
|
|
240
241
|
* // },
|
|
241
242
|
* // messageStop: { // HarnessMessageStopEvent
|
|
242
|
-
* // stopReason: "end_turn" || "tool_use" || "tool_result" || "max_tokens" || "stop_sequence" || "content_filtered" || "malformed_model_output" || "malformed_tool_use" || "interrupted" || "partial_turn" || "model_context_window_exceeded" || "max_iterations_exceeded" || "max_output_tokens_exceeded" || "timeout_exceeded", // required
|
|
243
|
+
* // stopReason: "end_turn" || "tool_use" || "tool_result" || "max_tokens" || "stop_sequence" || "content_filtered" || "malformed_model_output" || "malformed_tool_use" || "interrupted" || "partial_turn" || "model_context_window_exceeded" || "max_iterations_exceeded" || "max_output_tokens_exceeded" || "timeout_exceeded" || "hook_stopped", // required
|
|
243
244
|
* // },
|
|
244
245
|
* // metadata: { // HarnessMetadataEvent
|
|
245
246
|
* // usage: { // HarnessTokenUsage
|
|
@@ -269,6 +270,13 @@ declare const InvokeHarnessCommand_base: {
|
|
|
269
270
|
* // runtimeClientError: { // RuntimeClientError
|
|
270
271
|
* // message: "STRING_VALUE",
|
|
271
272
|
* // },
|
|
273
|
+
* // hookEvent: { // HarnessHookEvent
|
|
274
|
+
* // hookEventId: "STRING_VALUE", // required
|
|
275
|
+
* // name: "STRING_VALUE", // required
|
|
276
|
+
* // type: "before_tool_call" || "after_tool_call" || "before_invocation" || "after_invocation", // required
|
|
277
|
+
* // decision: "allow" || "deny",
|
|
278
|
+
* // reason: "STRING_VALUE",
|
|
279
|
+
* // },
|
|
272
280
|
* // },
|
|
273
281
|
* // };
|
|
274
282
|
*
|
|
@@ -507,6 +507,32 @@ export declare const HarnessToolType: {
|
|
|
507
507
|
* @public
|
|
508
508
|
*/
|
|
509
509
|
export type HarnessToolType = (typeof HarnessToolType)[keyof typeof HarnessToolType];
|
|
510
|
+
/**
|
|
511
|
+
* @public
|
|
512
|
+
* @enum
|
|
513
|
+
*/
|
|
514
|
+
export declare const HarnessHookDecision: {
|
|
515
|
+
readonly ALLOW: "allow";
|
|
516
|
+
readonly DENY: "deny";
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* @public
|
|
520
|
+
*/
|
|
521
|
+
export type HarnessHookDecision = (typeof HarnessHookDecision)[keyof typeof HarnessHookDecision];
|
|
522
|
+
/**
|
|
523
|
+
* @public
|
|
524
|
+
* @enum
|
|
525
|
+
*/
|
|
526
|
+
export declare const HarnessHookEventType: {
|
|
527
|
+
readonly AFTER_INVOCATION: "after_invocation";
|
|
528
|
+
readonly AFTER_TOOL_CALL: "after_tool_call";
|
|
529
|
+
readonly BEFORE_INVOCATION: "before_invocation";
|
|
530
|
+
readonly BEFORE_TOOL_CALL: "before_tool_call";
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
export type HarnessHookEventType = (typeof HarnessHookEventType)[keyof typeof HarnessHookEventType];
|
|
510
536
|
/**
|
|
511
537
|
* @public
|
|
512
538
|
* @enum
|
|
@@ -514,6 +540,7 @@ export type HarnessToolType = (typeof HarnessToolType)[keyof typeof HarnessToolT
|
|
|
514
540
|
export declare const HarnessStopReason: {
|
|
515
541
|
readonly CONTENT_FILTERED: "content_filtered";
|
|
516
542
|
readonly END_TURN: "end_turn";
|
|
543
|
+
readonly HOOK_STOPPED: "hook_stopped";
|
|
517
544
|
readonly INTERRUPTED: "interrupted";
|
|
518
545
|
readonly MALFORMED_MODEL_OUTPUT: "malformed_model_output";
|
|
519
546
|
readonly MALFORMED_TOOL_USE: "malformed_tool_use";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { ABTestExecutionStatus, ABTestStatus, AutomationStreamStatus, BatchEvaluationStatus, BrowserActionStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CapacityProviderSessionStatus, CloudWatchLogsFilterOperator, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, ExtractionMode, HarnessBedrockApiFormat, HarnessConversationRole, HarnessOpenAiApiFormat, HarnessStopReason, HarnessToolType, HarnessToolUseStatus, HarnessToolUseType, InsightsFailureCategory, LanguageRuntime, MemoryRecordStatus, MouseButton, Oauth2FlowType, OAuthGrantType, PaymentHttpMethodType, ProgrammingLanguage, RecommendationStatus, RecommendationType, ResourceContentType, ResultDestination, Role, ScreenshotFormat, SessionStatus, TaskStatus, ToolName } from "./enums";
|
|
2
|
+
import type { ABTestExecutionStatus, ABTestStatus, AutomationStreamStatus, BatchEvaluationStatus, BrowserActionStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CapacityProviderSessionStatus, CloudWatchLogsFilterOperator, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, ExtractionMode, HarnessBedrockApiFormat, HarnessConversationRole, HarnessHookDecision, HarnessHookEventType, HarnessOpenAiApiFormat, HarnessStopReason, HarnessToolType, HarnessToolUseStatus, HarnessToolUseType, InsightsFailureCategory, LanguageRuntime, MemoryRecordStatus, MouseButton, Oauth2FlowType, OAuthGrantType, PaymentHttpMethodType, ProgrammingLanguage, RecommendationStatus, RecommendationType, ResourceContentType, ResultDestination, Role, ScreenshotFormat, SessionStatus, TaskStatus, ToolName } from "./enums";
|
|
3
3
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, RuntimeClientError, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
|
|
4
4
|
/**
|
|
5
5
|
* <p> The agent card definition for A2A descriptors, including the schema version and inline content that describes the agent's capabilities.</p>
|
|
@@ -6802,6 +6802,11 @@ export interface HarnessOpenAiModelConfig {
|
|
|
6802
6802
|
* @public
|
|
6803
6803
|
*/
|
|
6804
6804
|
apiKeyArn: string | undefined;
|
|
6805
|
+
/**
|
|
6806
|
+
* <p>Optional custom endpoint URL for an OpenAI-compatible endpoint.</p>
|
|
6807
|
+
* @public
|
|
6808
|
+
*/
|
|
6809
|
+
apiBase?: string | undefined;
|
|
6805
6810
|
/**
|
|
6806
6811
|
* <p>The maximum number of tokens to allow in the generated response per iteration.</p>
|
|
6807
6812
|
* @public
|
|
@@ -7793,6 +7798,37 @@ export interface HarnessContentBlockStopEvent {
|
|
|
7793
7798
|
*/
|
|
7794
7799
|
contentBlockIndex: number | undefined;
|
|
7795
7800
|
}
|
|
7801
|
+
/**
|
|
7802
|
+
* <p>A lifecycle hook event emitted in the invocation stream for visibility into hook decisions.</p>
|
|
7803
|
+
* @public
|
|
7804
|
+
*/
|
|
7805
|
+
export interface HarnessHookEvent {
|
|
7806
|
+
/**
|
|
7807
|
+
* <p>The unique identifier for this hook event.</p>
|
|
7808
|
+
* @public
|
|
7809
|
+
*/
|
|
7810
|
+
hookEventId: string | undefined;
|
|
7811
|
+
/**
|
|
7812
|
+
* <p>The name of the hook that ran.</p>
|
|
7813
|
+
* @public
|
|
7814
|
+
*/
|
|
7815
|
+
name: string | undefined;
|
|
7816
|
+
/**
|
|
7817
|
+
* <p>The type of lifecycle hook event.</p>
|
|
7818
|
+
* @public
|
|
7819
|
+
*/
|
|
7820
|
+
type: HarnessHookEventType | undefined;
|
|
7821
|
+
/**
|
|
7822
|
+
* <p>The decision applied to the hook event. This field is present only for blocking Lambda targets.</p>
|
|
7823
|
+
* @public
|
|
7824
|
+
*/
|
|
7825
|
+
decision?: HarnessHookDecision | undefined;
|
|
7826
|
+
/**
|
|
7827
|
+
* <p>The optional reason for the applied decision.</p>
|
|
7828
|
+
* @public
|
|
7829
|
+
*/
|
|
7830
|
+
reason?: string | undefined;
|
|
7831
|
+
}
|
|
7796
7832
|
/**
|
|
7797
7833
|
* <p>Event indicating the start of a message.</p>
|
|
7798
7834
|
* @public
|
|
@@ -7877,7 +7913,7 @@ export interface HarnessMetadataEvent {
|
|
|
7877
7913
|
* <p>The streaming events returned by a harness invocation.</p>
|
|
7878
7914
|
* @public
|
|
7879
7915
|
*/
|
|
7880
|
-
export type InvokeHarnessStreamOutput = InvokeHarnessStreamOutput.ContentBlockDeltaMember | InvokeHarnessStreamOutput.ContentBlockStartMember | InvokeHarnessStreamOutput.ContentBlockStopMember | InvokeHarnessStreamOutput.InternalServerExceptionMember | InvokeHarnessStreamOutput.MessageStartMember | InvokeHarnessStreamOutput.MessageStopMember | InvokeHarnessStreamOutput.MetadataMember | InvokeHarnessStreamOutput.RuntimeClientErrorMember | InvokeHarnessStreamOutput.ValidationExceptionMember | InvokeHarnessStreamOutput.$UnknownMember;
|
|
7916
|
+
export type InvokeHarnessStreamOutput = InvokeHarnessStreamOutput.ContentBlockDeltaMember | InvokeHarnessStreamOutput.ContentBlockStartMember | InvokeHarnessStreamOutput.ContentBlockStopMember | InvokeHarnessStreamOutput.HookEventMember | InvokeHarnessStreamOutput.InternalServerExceptionMember | InvokeHarnessStreamOutput.MessageStartMember | InvokeHarnessStreamOutput.MessageStopMember | InvokeHarnessStreamOutput.MetadataMember | InvokeHarnessStreamOutput.RuntimeClientErrorMember | InvokeHarnessStreamOutput.ValidationExceptionMember | InvokeHarnessStreamOutput.$UnknownMember;
|
|
7881
7917
|
/**
|
|
7882
7918
|
* @public
|
|
7883
7919
|
*/
|
|
@@ -7896,6 +7932,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
7896
7932
|
internalServerException?: never;
|
|
7897
7933
|
validationException?: never;
|
|
7898
7934
|
runtimeClientError?: never;
|
|
7935
|
+
hookEvent?: never;
|
|
7899
7936
|
$unknown?: never;
|
|
7900
7937
|
}
|
|
7901
7938
|
/**
|
|
@@ -7912,6 +7949,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
7912
7949
|
internalServerException?: never;
|
|
7913
7950
|
validationException?: never;
|
|
7914
7951
|
runtimeClientError?: never;
|
|
7952
|
+
hookEvent?: never;
|
|
7915
7953
|
$unknown?: never;
|
|
7916
7954
|
}
|
|
7917
7955
|
/**
|
|
@@ -7928,6 +7966,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
7928
7966
|
internalServerException?: never;
|
|
7929
7967
|
validationException?: never;
|
|
7930
7968
|
runtimeClientError?: never;
|
|
7969
|
+
hookEvent?: never;
|
|
7931
7970
|
$unknown?: never;
|
|
7932
7971
|
}
|
|
7933
7972
|
/**
|
|
@@ -7944,6 +7983,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
7944
7983
|
internalServerException?: never;
|
|
7945
7984
|
validationException?: never;
|
|
7946
7985
|
runtimeClientError?: never;
|
|
7986
|
+
hookEvent?: never;
|
|
7947
7987
|
$unknown?: never;
|
|
7948
7988
|
}
|
|
7949
7989
|
/**
|
|
@@ -7960,6 +8000,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
7960
8000
|
internalServerException?: never;
|
|
7961
8001
|
validationException?: never;
|
|
7962
8002
|
runtimeClientError?: never;
|
|
8003
|
+
hookEvent?: never;
|
|
7963
8004
|
$unknown?: never;
|
|
7964
8005
|
}
|
|
7965
8006
|
/**
|
|
@@ -7976,6 +8017,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
7976
8017
|
internalServerException?: never;
|
|
7977
8018
|
validationException?: never;
|
|
7978
8019
|
runtimeClientError?: never;
|
|
8020
|
+
hookEvent?: never;
|
|
7979
8021
|
$unknown?: never;
|
|
7980
8022
|
}
|
|
7981
8023
|
/**
|
|
@@ -7992,6 +8034,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
7992
8034
|
internalServerException: InternalServerException;
|
|
7993
8035
|
validationException?: never;
|
|
7994
8036
|
runtimeClientError?: never;
|
|
8037
|
+
hookEvent?: never;
|
|
7995
8038
|
$unknown?: never;
|
|
7996
8039
|
}
|
|
7997
8040
|
/**
|
|
@@ -8008,6 +8051,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
8008
8051
|
internalServerException?: never;
|
|
8009
8052
|
validationException: ValidationException;
|
|
8010
8053
|
runtimeClientError?: never;
|
|
8054
|
+
hookEvent?: never;
|
|
8011
8055
|
$unknown?: never;
|
|
8012
8056
|
}
|
|
8013
8057
|
/**
|
|
@@ -8024,6 +8068,24 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
8024
8068
|
internalServerException?: never;
|
|
8025
8069
|
validationException?: never;
|
|
8026
8070
|
runtimeClientError: RuntimeClientError;
|
|
8071
|
+
hookEvent?: never;
|
|
8072
|
+
$unknown?: never;
|
|
8073
|
+
}
|
|
8074
|
+
/**
|
|
8075
|
+
* <p>A lifecycle hook event emitted when a configured hook runs.</p>
|
|
8076
|
+
* @public
|
|
8077
|
+
*/
|
|
8078
|
+
interface HookEventMember {
|
|
8079
|
+
messageStart?: never;
|
|
8080
|
+
contentBlockStart?: never;
|
|
8081
|
+
contentBlockDelta?: never;
|
|
8082
|
+
contentBlockStop?: never;
|
|
8083
|
+
messageStop?: never;
|
|
8084
|
+
metadata?: never;
|
|
8085
|
+
internalServerException?: never;
|
|
8086
|
+
validationException?: never;
|
|
8087
|
+
runtimeClientError?: never;
|
|
8088
|
+
hookEvent: HarnessHookEvent;
|
|
8027
8089
|
$unknown?: never;
|
|
8028
8090
|
}
|
|
8029
8091
|
/**
|
|
@@ -8039,6 +8101,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
8039
8101
|
internalServerException?: never;
|
|
8040
8102
|
validationException?: never;
|
|
8041
8103
|
runtimeClientError?: never;
|
|
8104
|
+
hookEvent?: never;
|
|
8042
8105
|
$unknown: [string, any];
|
|
8043
8106
|
}
|
|
8044
8107
|
/**
|
|
@@ -8055,6 +8118,7 @@ export declare namespace InvokeHarnessStreamOutput {
|
|
|
8055
8118
|
internalServerException: (value: InternalServerException) => T;
|
|
8056
8119
|
validationException: (value: ValidationException) => T;
|
|
8057
8120
|
runtimeClientError: (value: RuntimeClientError) => T;
|
|
8121
|
+
hookEvent: (value: HarnessHookEvent) => T;
|
|
8058
8122
|
_: (name: string, value: any) => T;
|
|
8059
8123
|
}
|
|
8060
8124
|
}
|
|
@@ -8720,23 +8784,3 @@ export interface DeleteEventOutput {
|
|
|
8720
8784
|
*/
|
|
8721
8785
|
eventId: string | undefined;
|
|
8722
8786
|
}
|
|
8723
|
-
/**
|
|
8724
|
-
* @public
|
|
8725
|
-
*/
|
|
8726
|
-
export interface DeleteMemoryRecordInput {
|
|
8727
|
-
/**
|
|
8728
|
-
* <p>The identifier of the AgentCore Memory resource from which to delete the memory record.</p>
|
|
8729
|
-
* @public
|
|
8730
|
-
*/
|
|
8731
|
-
memoryId: string | undefined;
|
|
8732
|
-
/**
|
|
8733
|
-
* <p>The identifier of the memory record to delete.</p>
|
|
8734
|
-
* @public
|
|
8735
|
-
*/
|
|
8736
|
-
memoryRecordId: string | undefined;
|
|
8737
|
-
/**
|
|
8738
|
-
* <p>The namespace of the memory record to delete. This value is used for IAM condition key authorization.</p>
|
|
8739
|
-
* @public
|
|
8740
|
-
*/
|
|
8741
|
-
namespace?: string | undefined;
|
|
8742
|
-
}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
2
|
import type { BlockchainChainId, CryptoWalletNetwork, Currency, DescriptorType, EventFilterCondition, ExtractionJobStatus, InstrumentBalanceToken, MemoryRecordOperatorType, OperatorType, PaymentInstrumentStatus, PaymentInstrumentType, PaymentSessionStatus, PaymentStatus, PaymentType, RegistryRecordStatus } from "./enums";
|
|
3
3
|
import type { A2aDescriptor, ActorSummary, AgentSkillsDescriptor, Conversational, Event, ExtractionConfig, MemoryContent, MemoryJsonData, MemoryRecordMetadataValue, MetadataValue } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface DeleteMemoryRecordInput {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The identifier of the AgentCore Memory resource from which to delete the memory record.</p>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
memoryId: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* <p>The identifier of the memory record to delete.</p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
memoryRecordId: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* <p>The namespace of the memory record to delete. This value is used for IAM condition key authorization.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
namespace?: string | undefined;
|
|
23
|
+
}
|
|
4
24
|
/**
|
|
5
25
|
* @public
|
|
6
26
|
*/
|
|
@@ -170,6 +170,7 @@ export declare var HarnessContentBlockDeltaEvent$: StaticStructureSchema;
|
|
|
170
170
|
export declare var HarnessContentBlockStartEvent$: StaticStructureSchema;
|
|
171
171
|
export declare var HarnessContentBlockStopEvent$: StaticStructureSchema;
|
|
172
172
|
export declare var HarnessGeminiModelConfig$: StaticStructureSchema;
|
|
173
|
+
export declare var HarnessHookEvent$: StaticStructureSchema;
|
|
173
174
|
export declare var HarnessInlineFunctionConfig$: StaticStructureSchema;
|
|
174
175
|
export declare var HarnessLiteLlmModelConfig$: StaticStructureSchema;
|
|
175
176
|
export declare var HarnessMessage$: StaticStructureSchema;
|