@activepieces/piece-claude 0.0.1

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-claude
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-claude` to build the library.
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@activepieces/piece-claude",
3
+ "version": "0.0.1",
4
+ "dependencies": {
5
+ "@activepieces/pieces-common": "*",
6
+ "@activepieces/pieces-framework": "*",
7
+ "@activepieces/shared": "*",
8
+ "@anthropic-ai/sdk": "0.19.0",
9
+ "@sinclair/typebox": "0.26.8",
10
+ "axios": "1.6.7",
11
+ "dayjs": "1.11.9",
12
+ "is-base64": "1.1.0",
13
+ "lodash": "4.17.21",
14
+ "mime-types": "2.1.35",
15
+ "nanoid": "3.3.6",
16
+ "semver": "7.6.0",
17
+ "tslib": "2.6.2"
18
+ },
19
+ "main": "./src/index.js",
20
+ "type": "commonjs"
21
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const claudeAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
2
+ export declare const claude: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
package/src/index.js ADDED
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.claude = exports.claudeAuth = void 0;
4
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
5
+ const pieces_common_1 = require("@activepieces/pieces-common");
6
+ const send_prompt_1 = require("./lib/actions/send-prompt");
7
+ const common_1 = require("./lib/common/common");
8
+ const shared_1 = require("@activepieces/shared");
9
+ const markdownDescription = `
10
+ Follow these instructions to get your Claude API Key:
11
+
12
+ 1. Visit the following website: https://console.anthropic.com/settings/keys.
13
+ 2. Once on the website, locate and click on the option to obtain your Claude API Key.
14
+
15
+ `;
16
+ exports.claudeAuth = pieces_framework_1.PieceAuth.SecretText({
17
+ displayName: 'API Key',
18
+ required: true,
19
+ description: markdownDescription,
20
+ });
21
+ exports.claude = (0, pieces_framework_1.createPiece)({
22
+ displayName: 'Anthropic Claude',
23
+ auth: exports.claudeAuth,
24
+ minimumSupportedRelease: '0.20.0',
25
+ logoUrl: 'https://cdn.activepieces.com/pieces/claude.png',
26
+ categories: [shared_1.PieceCategory.ARTIFICIAL_INTELLIGENCE],
27
+ authors: ['dennisrongo'],
28
+ actions: [
29
+ send_prompt_1.askClaude,
30
+ (0, pieces_common_1.createCustomApiCallAction)({
31
+ auth: exports.claudeAuth,
32
+ baseUrl: () => common_1.baseUrl,
33
+ authMapping: (auth) => {
34
+ return {
35
+ 'x-api-key': `${auth}`,
36
+ };
37
+ },
38
+ }),
39
+ ],
40
+ triggers: [],
41
+ });
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/claude/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,+DAAwE;AACxE,2DAAsD;AACtD,gDAA8C;AAC9C,iDAAqD;AAErD,MAAM,mBAAmB,GAAG;;;;;;CAM3B,CAAC;AAEW,QAAA,UAAU,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC7C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,mBAAmB;CACjC,CAAC,CAAC;AAEU,QAAA,MAAM,GAAG,IAAA,8BAAW,EAAC;IAChC,WAAW,EAAE,kBAAkB;IAC/B,IAAI,EAAE,kBAAU;IAChB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,gDAAgD;IACzD,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,OAAO,EAAE;QACP,uBAAS;QACT,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,kBAAU;YAChB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAO;YACtB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;gBACpB,OAAO;oBACL,WAAW,EAAE,GAAG,IAAI,EAAE;iBACvB,CAAC;YACJ,CAAC;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const askClaude: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
+ systemPrompt: import("@activepieces/pieces-framework").LongTextProperty<false>;
4
+ temperature: import("@activepieces/pieces-framework").NumberProperty<false>;
5
+ maxTokens: import("@activepieces/pieces-framework").NumberProperty<false>;
6
+ prompt: import("@activepieces/pieces-framework").LongTextProperty<true>;
7
+ image: import("@activepieces/pieces-framework").FileProperty<false>;
8
+ roles: import("@activepieces/pieces-framework").JsonProperty<false>;
9
+ }>;
@@ -0,0 +1,194 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askClaude = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const sdk_1 = tslib_1.__importDefault(require("@anthropic-ai/sdk"));
7
+ const mime_types_1 = tslib_1.__importDefault(require("mime-types"));
8
+ const __1 = require("../..");
9
+ const billingIssueMessage = `Error Occurred: 429 \n
10
+
11
+ 1. Ensure that you have enough tokens on your Anthropic platform. \n
12
+ 2. Generate a new API key. \n
13
+ 3. Attempt the process again. \n
14
+
15
+ For guidance, visit: https://console.anthropic.com/settings/plans`;
16
+ const unauthorizedMessage = `Error Occurred: 401 \n
17
+
18
+ Ensure that your API key is valid. \n
19
+ `;
20
+ exports.askClaude = (0, pieces_framework_1.createAction)({
21
+ auth: __1.claudeAuth,
22
+ name: 'ask_claude',
23
+ displayName: 'Ask Claude',
24
+ description: 'Ask Claude anything you want!',
25
+ props: {
26
+ model: pieces_framework_1.Property.StaticDropdown({
27
+ displayName: 'Model',
28
+ required: true,
29
+ description: 'The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.',
30
+ defaultValue: 'claude-3-haiku-20240307',
31
+ options: {
32
+ disabled: false,
33
+ options: [
34
+ { value: 'claude-3-haiku-20240307', label: 'Claude 3 Haiku' },
35
+ { value: 'claude-3-sonnet-20240229', label: 'Claude 3 Sonnet' },
36
+ { value: 'claude-3-opus-20240229', label: 'Claude 3 Opus' },
37
+ ],
38
+ },
39
+ }),
40
+ systemPrompt: pieces_framework_1.Property.LongText({
41
+ displayName: 'System Prompt',
42
+ required: false,
43
+ defaultValue: "You're a helpful assistant.",
44
+ }),
45
+ temperature: pieces_framework_1.Property.Number({
46
+ displayName: 'Temperature',
47
+ required: false,
48
+ description: 'Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.',
49
+ validators: [pieces_framework_1.Validators.minValue(0), pieces_framework_1.Validators.maxValue(1.0)],
50
+ }),
51
+ maxTokens: pieces_framework_1.Property.Number({
52
+ displayName: 'Maximum Tokens',
53
+ required: false,
54
+ description: "The maximum number of tokens to generate. Requests can use up to 2,048 or 4,096 tokens shared between prompt and completion, don't set the value to maximum and leave some tokens for the input. The exact limit varies by model. (One token is roughly 4 characters for normal English text)",
55
+ }),
56
+ prompt: pieces_framework_1.Property.LongText({
57
+ displayName: 'Question',
58
+ required: true,
59
+ }),
60
+ image: pieces_framework_1.Property.File({
61
+ displayName: 'Image (URL)',
62
+ required: false,
63
+ description: 'URL of image to be used as input for the model.',
64
+ }),
65
+ roles: pieces_framework_1.Property.Json({
66
+ displayName: 'Roles',
67
+ required: false,
68
+ description: 'Array of roles to specify more accurate response',
69
+ defaultValue: [
70
+ {
71
+ role: 'assistant',
72
+ content: [
73
+ {
74
+ type: 'text',
75
+ text: 'Hello, how are you?',
76
+ },
77
+ ],
78
+ },
79
+ ],
80
+ }),
81
+ },
82
+ run({ auth, propsValue }) {
83
+ var _a, _b, _c, _d;
84
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
85
+ const anthropic = new sdk_1.default({
86
+ apiKey: auth,
87
+ });
88
+ let billingIssue = false;
89
+ let unauthorized = false;
90
+ let model = 'claude-3-haiku-20240307';
91
+ if (propsValue.model) {
92
+ model = propsValue.model;
93
+ }
94
+ let temperature = 0.5;
95
+ if (propsValue.temperature) {
96
+ temperature = Number(propsValue.temperature);
97
+ }
98
+ let maxTokens = 1000;
99
+ if (propsValue.maxTokens) {
100
+ maxTokens = Number(propsValue.maxTokens);
101
+ }
102
+ let systemPrompt = 'You are a helpful assistant.';
103
+ if (propsValue.systemPrompt) {
104
+ systemPrompt = propsValue.systemPrompt;
105
+ }
106
+ const rolesArray = propsValue.roles
107
+ ? propsValue.roles
108
+ : [];
109
+ const rolesEnum = ['user', 'assistant'];
110
+ const roles = rolesArray.map((item) => {
111
+ if (!rolesEnum.includes(item.role)) {
112
+ throw new Error('The only available roles are: [user, assistant]');
113
+ }
114
+ return item;
115
+ });
116
+ const defaultMimeType = 'image/jpeg';
117
+ roles.unshift({
118
+ role: 'user',
119
+ content: [
120
+ {
121
+ type: 'text',
122
+ text: propsValue['prompt'],
123
+ },
124
+ ...(propsValue.image
125
+ ? [
126
+ {
127
+ type: 'image',
128
+ source: {
129
+ type: 'base64',
130
+ media_type: propsValue.image.extension
131
+ ? mime_types_1.default.lookup(propsValue.image.extension) || defaultMimeType
132
+ : defaultMimeType,
133
+ data: propsValue.image.base64,
134
+ },
135
+ },
136
+ ]
137
+ : []),
138
+ ],
139
+ });
140
+ const maxRetries = 4;
141
+ let retries = 0;
142
+ let response;
143
+ while (retries < maxRetries) {
144
+ try {
145
+ const req = yield (anthropic === null || anthropic === void 0 ? void 0 : anthropic.messages.create({
146
+ model: model,
147
+ max_tokens: maxTokens,
148
+ temperature: temperature,
149
+ system: systemPrompt,
150
+ messages: roles,
151
+ }));
152
+ response = (_a = req === null || req === void 0 ? void 0 : req.content[0].text) === null || _a === void 0 ? void 0 : _a.trim();
153
+ break; // Break out of the loop if the request is successful
154
+ }
155
+ catch (e) {
156
+ if ((_b = e === null || e === void 0 ? void 0 : e.type) === null || _b === void 0 ? void 0 : _b.includes('rate_limit_error')) {
157
+ billingIssue = true;
158
+ if (retries + 1 === maxRetries) {
159
+ throw e;
160
+ }
161
+ // Calculate the time delay for the next retry using exponential backoff
162
+ const delay = Math.pow(6, retries) * 1000;
163
+ console.log(`Retrying in ${delay} milliseconds...`);
164
+ yield sleep(delay); // Wait for the calculated delay
165
+ retries++;
166
+ break;
167
+ }
168
+ else {
169
+ if ((_d = (_c = e === null || e === void 0 ? void 0 : e.error) === null || _c === void 0 ? void 0 : _c.type) === null || _d === void 0 ? void 0 : _d.includes('not_found_error')) {
170
+ unauthorized = true;
171
+ throw e;
172
+ }
173
+ const new_error = e;
174
+ throw e;
175
+ // throw {
176
+ // error: new_error.error.message,
177
+ // };
178
+ }
179
+ }
180
+ }
181
+ if (billingIssue) {
182
+ throw new Error(billingIssueMessage);
183
+ }
184
+ if (unauthorized) {
185
+ throw new Error(unauthorizedMessage);
186
+ }
187
+ return response;
188
+ });
189
+ },
190
+ });
191
+ function sleep(ms) {
192
+ return new Promise((resolve) => setTimeout(resolve, ms));
193
+ }
194
+ //# sourceMappingURL=send-prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-prompt.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/claude/src/lib/actions/send-prompt.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,oEAA0C;AAC1C,oEAA8B;AAC9B,6BAAmC;AAEnC,MAAM,mBAAmB,GAAG;;;;;;kEAMsC,CAAC;AAEnE,MAAM,mBAAmB,GAAG;;;CAG3B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,cAAU;IAChB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;I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gBACjB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACvC,CAAC;YACD,OAAO,QAAQ,CAAC;;KACjB;CACF,CAAC,CAAC;AAEH,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const baseUrl = "https://api.anthropic.com/v1";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.baseUrl = void 0;
4
+ exports.baseUrl = 'https://api.anthropic.com/v1';
5
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/claude/src/lib/common/common.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,8BAA8B,CAAC"}