@promptrails/n8n-nodes-promptrails 0.2.0 → 0.3.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/README.md +3 -4
- package/dist/credentials/PromptRailsApi.credentials.js +2 -2
- package/dist/credentials/PromptRailsApi.credentials.js.map +1 -1
- package/dist/nodes/PromptRails/PromptRails.json +2 -2
- package/dist/nodes/PromptRails/PromptRails.node.d.ts +2 -1
- package/dist/nodes/PromptRails/PromptRails.node.js +313 -324
- package/dist/nodes/PromptRails/PromptRails.node.js.map +1 -1
- package/dist/package.json +6 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# n8n-nodes-promptrails
|
|
2
2
|
|
|
3
|
-
[n8n](https://n8n.io/) community node for [PromptRails](https://promptrails.
|
|
3
|
+
[n8n](https://n8n.io/) community node for [PromptRails](https://promptrails.ai) — execute AI agents, run prompts, manage chat sessions, query data sources, and more from your n8n workflows.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ In your n8n instance:
|
|
|
15
15
|
|
|
16
16
|
You need a PromptRails API key to use this node:
|
|
17
17
|
|
|
18
|
-
1. Log in to [PromptRails](https://promptrails.
|
|
18
|
+
1. Log in to [PromptRails](https://promptrails.ai)
|
|
19
19
|
2. Go to **Settings > API Keys**
|
|
20
20
|
3. Create a new API key with the required scopes
|
|
21
21
|
4. In n8n, create a new **PromptRails API** credential with your API key and workspace ID
|
|
@@ -29,7 +29,7 @@ You need a PromptRails API key to use this node:
|
|
|
29
29
|
| **Chat** | Create Session, Send Message, Get Session, List Sessions, List Messages |
|
|
30
30
|
| **Execution** | Get, List |
|
|
31
31
|
| **Data Source** | Query, Get, List |
|
|
32
|
-
| **Trace** | Get, List
|
|
32
|
+
| **Trace** | Get, List |
|
|
33
33
|
| **Cost** | Workspace Summary, Agent Summary |
|
|
34
34
|
|
|
35
35
|
### Agent
|
|
@@ -68,7 +68,6 @@ You need a PromptRails API key to use this node:
|
|
|
68
68
|
|
|
69
69
|
- **Get** — Retrieve a full execution trace with spans
|
|
70
70
|
- **List** — List recent traces
|
|
71
|
-
- **Get Summary** — Get aggregated trace statistics
|
|
72
71
|
|
|
73
72
|
### Cost
|
|
74
73
|
|
|
@@ -5,13 +5,13 @@ class PromptRailsApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'promptRailsApi';
|
|
7
7
|
this.displayName = 'PromptRails API';
|
|
8
|
-
this.documentationUrl = 'https://promptrails.
|
|
8
|
+
this.documentationUrl = 'https://promptrails.ai/docs/api-keys-and-scopes';
|
|
9
9
|
this.properties = [
|
|
10
10
|
{
|
|
11
11
|
displayName: 'Host URL',
|
|
12
12
|
name: 'host',
|
|
13
13
|
type: 'string',
|
|
14
|
-
default: 'https://api.promptrails.
|
|
14
|
+
default: 'https://api.promptrails.ai',
|
|
15
15
|
description: 'The base URL for the PromptRails API',
|
|
16
16
|
},
|
|
17
17
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptRailsApi.credentials.js","sourceRoot":"","sources":["../../credentials/PromptRailsApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QACxB,gBAAW,GAAG,iBAAiB,CAAC;QAChC,qBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"PromptRailsApi.credentials.js","sourceRoot":"","sources":["../../credentials/PromptRailsApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QACxB,gBAAW,GAAG,iBAAiB,CAAC;QAChC,qBAAgB,GAAG,iDAAiD,CAAC;QAErE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,4BAA4B;gBACrC,WAAW,EAAE,sCAAsC;aACnD;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,gDAAgD;aAC7D;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,wBAAwB;gBACjC,GAAG,EAAE,gBAAgB;gBACrB,MAAM,EAAE,KAAK;gBACb,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;aAClB;SACD,CAAC;IACH,CAAC;CAAA;AAzCD,wCAyCC"}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"resources": {
|
|
7
7
|
"credentialDocumentation": [
|
|
8
8
|
{
|
|
9
|
-
"url": "https://promptrails.
|
|
9
|
+
"url": "https://promptrails.ai/docs/api-keys-and-scopes"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"primaryDocumentation": [
|
|
13
13
|
{
|
|
14
|
-
"url": "https://promptrails.
|
|
14
|
+
"url": "https://promptrails.ai/docs/rest-api-reference"
|
|
15
15
|
}
|
|
16
16
|
]
|
|
17
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
2
|
export declare class PromptRails implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
4
5
|
}
|