@bedrockio/ai 0.9.6 → 0.9.7

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.
@@ -111,6 +111,7 @@ class AnthropicClient extends BaseClient_js_1.default {
111
111
  else if (type === 'message_delta') {
112
112
  return {
113
113
  type: 'stop',
114
+ instructions: options.instructions,
114
115
  messages: [
115
116
  ...this.getFilteredMessages(options),
116
117
  {
@@ -105,6 +105,7 @@ export class AnthropicClient extends BaseClient {
105
105
  else if (type === 'message_delta') {
106
106
  return {
107
107
  type: 'stop',
108
+ instructions: options.instructions,
108
109
  messages: [
109
110
  ...this.getFilteredMessages(options),
110
111
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrockio/ai",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "Bedrock wrapper for common AI chatbots.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -30,6 +30,7 @@ export class AnthropicClient extends BaseClient {
30
30
  name: any;
31
31
  arguments: any;
32
32
  delta?: undefined;
33
+ instructions?: undefined;
33
34
  messages?: undefined;
34
35
  usage?: undefined;
35
36
  } | {
@@ -38,6 +39,7 @@ export class AnthropicClient extends BaseClient {
38
39
  name?: undefined;
39
40
  arguments?: undefined;
40
41
  delta?: undefined;
42
+ instructions?: undefined;
41
43
  messages?: undefined;
42
44
  usage?: undefined;
43
45
  } | {
@@ -46,10 +48,12 @@ export class AnthropicClient extends BaseClient {
46
48
  id?: undefined;
47
49
  name?: undefined;
48
50
  arguments?: undefined;
51
+ instructions?: undefined;
49
52
  messages?: undefined;
50
53
  usage?: undefined;
51
54
  } | {
52
55
  type: string;
56
+ instructions: any;
53
57
  messages: any[];
54
58
  usage: {
55
59
  input_tokens: any;
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../src/anthropic.js"],"names":[],"mappings":"AAMA;IACE,6BAA2C;IAIzC,kBAAoC;IAGtC;;;OAGG;IACH,4BAGC;IAED;;wGA2BC;IAED;;wGAKC;IAED,oCAKC;IASD;;;;;;MAiBC;IAED;;;MAKC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCC;IAID;;;;;;;;;;MA0CC;IAED,oCAKC;IAUD;;;;MAOC;IAID;;;;MAOC;IAED;;;;MAQC;CACF;uBAnOsB,iBAAiB;sBAFlB,mBAAmB"}
1
+ {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../src/anthropic.js"],"names":[],"mappings":"AAMA;IACE,6BAA2C;IAIzC,kBAAoC;IAGtC;;;OAGG;IACH,4BAGC;IAED;;wGA2BC;IAED;;wGAKC;IAED,oCAKC;IASD;;;;;;MAiBC;IAED;;;MAKC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuCC;IAID;;;;;;;;;;MA0CC;IAED,oCAKC;IAUD;;;;MAOC;IAID;;;;MAOC;IAED;;;;MAQC;CACF;uBApOsB,iBAAiB;sBAFlB,mBAAmB"}