@inworld/cli 0.2.15 → 0.2.16
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/index.js +1086 -639
- package/dist/index.js.map +4 -4
- package/dist/package.json +49 -0
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.d.ts +10 -0
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.js +16 -0
- package/dist/proto/generated/portal/ai/inworld/language_codes/language_codes.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.d.ts +13 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.js +2 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/errors.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.d.ts +7 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.js +15 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/operations.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.d.ts +14 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.js +7 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graph_configuration.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts +116 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.js +71 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/graphs.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts +14 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.js +7 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1/remote/configuration/targeting.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.d.ts +76 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.js +40 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/apikeys.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.d.ts +10 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.js +7 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/impression_event_data.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.d.ts +7 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.js +13 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/language_code.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.d.ts +115 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.js +86 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/users.pb.js.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.d.ts +255 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.js +88 -0
- package/dist/proto/generated/portal/ai/inworld/studio/v1alpha/workspaces.pb.js.map +1 -0
- package/dist/proto/generated/portal/fetch.pb.d.ts +26 -0
- package/dist/proto/generated/portal/fetch.pb.d.ts.map +1 -0
- package/dist/proto/generated/portal/fetch.pb.js +274 -0
- package/dist/proto/generated/portal/fetch.pb.js.map +1 -0
- package/dist/src/auth/callback_server.d.ts +41 -0
- package/dist/src/auth/callback_server.d.ts.map +1 -0
- package/dist/src/auth/callback_server.js +136 -0
- package/dist/src/auth/callback_server.js.map +1 -0
- package/dist/src/auth/manager.d.ts +97 -0
- package/dist/src/auth/manager.d.ts.map +1 -0
- package/dist/src/auth/manager.js +340 -0
- package/dist/src/auth/manager.js.map +1 -0
- package/dist/src/auth/utils.d.ts +45 -0
- package/dist/src/auth/utils.d.ts.map +1 -0
- package/dist/src/auth/utils.js +183 -0
- package/dist/src/auth/utils.js.map +1 -0
- package/dist/src/commands/auth/disable_telemetry_command.d.ts +3 -0
- package/dist/src/commands/auth/disable_telemetry_command.d.ts.map +1 -0
- package/dist/src/commands/auth/enable_telemetry_command.d.ts +3 -0
- package/dist/src/commands/auth/enable_telemetry_command.d.ts.map +1 -0
- package/dist/src/commands/auth/login_ci_command.d.ts +3 -0
- package/dist/src/commands/auth/login_ci_command.d.ts.map +1 -0
- package/dist/src/commands/auth/login_ci_command.js +41 -0
- package/dist/src/commands/auth/login_ci_command.js.map +1 -0
- package/dist/src/commands/auth/login_command.d.ts +4 -0
- package/dist/src/commands/auth/login_command.d.ts.map +1 -0
- package/dist/src/commands/auth/login_command.js +134 -0
- package/dist/src/commands/auth/login_command.js.map +1 -0
- package/dist/src/commands/auth/logout_command.d.ts +4 -0
- package/dist/src/commands/auth/logout_command.d.ts.map +1 -0
- package/dist/src/commands/auth/logout_command.js +54 -0
- package/dist/src/commands/auth/logout_command.js.map +1 -0
- package/dist/src/commands/auth/print_access_token_command.d.ts +3 -0
- package/dist/src/commands/auth/print_access_token_command.d.ts.map +1 -0
- package/dist/src/commands/auth/print_access_token_command.js +21 -0
- package/dist/src/commands/auth/print_access_token_command.js.map +1 -0
- package/dist/src/commands/auth/print_api_key_command.d.ts +3 -0
- package/dist/src/commands/auth/print_api_key_command.d.ts.map +1 -0
- package/dist/src/commands/auth/print_api_key_command.js +26 -0
- package/dist/src/commands/auth/print_api_key_command.js.map +1 -0
- package/dist/src/commands/auth/status_command.d.ts +4 -0
- package/dist/src/commands/auth/status_command.d.ts.map +1 -0
- package/dist/src/commands/auth/status_command.js +84 -0
- package/dist/src/commands/auth/status_command.js.map +1 -0
- package/dist/src/commands/auth_command.d.ts +3 -0
- package/dist/src/commands/auth_command.d.ts.map +1 -0
- package/dist/src/commands/auth_command.js +20 -0
- package/dist/src/commands/auth_command.js.map +1 -0
- package/dist/src/commands/graph/graph_deploy_command.d.ts +24 -0
- package/dist/src/commands/graph/graph_deploy_command.d.ts.map +1 -0
- package/dist/src/commands/graph/graph_deploy_command.js +191 -0
- package/dist/src/commands/graph/graph_deploy_command.js.map +1 -0
- package/dist/src/commands/graph/graph_init_command.d.ts +4 -0
- package/dist/src/commands/graph/graph_init_command.d.ts.map +1 -0
- package/dist/src/commands/graph/graph_init_command.js +376 -0
- package/dist/src/commands/graph/graph_init_command.js.map +1 -0
- package/dist/src/commands/graph/graph_run_command.d.ts +24 -0
- package/dist/src/commands/graph/graph_run_command.d.ts.map +1 -0
- package/dist/src/commands/graph/graph_run_command.js +50 -0
- package/dist/src/commands/graph/graph_run_command.js.map +1 -0
- package/dist/src/commands/graph/graph_serve_command.d.ts +4 -0
- package/dist/src/commands/graph/graph_serve_command.d.ts.map +1 -0
- package/dist/src/commands/graph/graph_serve_command.js +40 -0
- package/dist/src/commands/graph/graph_serve_command.js.map +1 -0
- package/dist/src/commands/graph/graph_variant_command.d.ts +3 -0
- package/dist/src/commands/graph/graph_variant_command.d.ts.map +1 -0
- package/dist/src/commands/graph/graph_variant_command.js +13 -0
- package/dist/src/commands/graph/graph_variant_command.js.map +1 -0
- package/dist/src/commands/graph/graph_visualize_command.d.ts +7 -0
- package/dist/src/commands/graph/graph_visualize_command.d.ts.map +1 -0
- package/dist/src/commands/graph/graph_visualize_command.js +35 -0
- package/dist/src/commands/graph/graph_visualize_command.js.map +1 -0
- package/dist/src/commands/graph/variant/graph_variant_list_command.d.ts +3 -0
- package/dist/src/commands/graph/variant/graph_variant_list_command.d.ts.map +1 -0
- package/dist/src/commands/graph/variant/graph_variant_list_command.js +25 -0
- package/dist/src/commands/graph/variant/graph_variant_list_command.js.map +1 -0
- package/dist/src/commands/graph/variant/graph_variant_print_command.d.ts +7 -0
- package/dist/src/commands/graph/variant/graph_variant_print_command.d.ts.map +1 -0
- package/dist/src/commands/graph/variant/graph_variant_print_command.js +45 -0
- package/dist/src/commands/graph/variant/graph_variant_print_command.js.map +1 -0
- package/dist/src/commands/graph/variant/graph_variant_register_command.d.ts +3 -0
- package/dist/src/commands/graph/variant/graph_variant_register_command.d.ts.map +1 -0
- package/dist/src/commands/graph/variant/graph_variant_register_command.js +45 -0
- package/dist/src/commands/graph/variant/graph_variant_register_command.js.map +1 -0
- package/dist/src/commands/graph_command.d.ts +3 -0
- package/dist/src/commands/graph_command.d.ts.map +1 -0
- package/dist/src/commands/graph_command.js +20 -0
- package/dist/src/commands/graph_command.js.map +1 -0
- package/dist/src/commands/tts_commands.d.ts +17 -0
- package/dist/src/commands/tts_commands.d.ts.map +1 -0
- package/dist/src/commands/tts_commands.js +568 -0
- package/dist/src/commands/tts_commands.js.map +1 -0
- package/dist/src/commands/workspace_command.d.ts +12 -0
- package/dist/src/commands/workspace_command.d.ts.map +1 -0
- package/dist/src/commands/workspace_command.js +33 -0
- package/dist/src/commands/workspace_command.js.map +1 -0
- package/dist/src/constants.d.ts +10 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +30 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/grpc/core/InworldError.d.ts +30 -0
- package/dist/src/grpc/core/InworldError.d.ts.map +1 -0
- package/dist/src/grpc/core/InworldError.js +46 -0
- package/dist/src/grpc/core/InworldError.js.map +1 -0
- package/dist/src/grpc/core/statusCodes.d.ts +122 -0
- package/dist/src/grpc/core/statusCodes.d.ts.map +1 -0
- package/dist/src/grpc/core/statusCodes.js +133 -0
- package/dist/src/grpc/core/statusCodes.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/services/analytics.d.ts +45 -0
- package/dist/src/services/analytics.d.ts.map +1 -0
- package/dist/src/services/deploy_service.d.ts +4 -0
- package/dist/src/services/deploy_service.d.ts.map +1 -0
- package/dist/src/services/deploy_service.js +128 -0
- package/dist/src/services/deploy_service.js.map +1 -0
- package/dist/src/services/graph_loader.d.ts +7 -0
- package/dist/src/services/graph_loader.d.ts.map +1 -0
- package/dist/src/services/graph_loader.js +103 -0
- package/dist/src/services/graph_loader.js.map +1 -0
- package/dist/src/services/graph_variant_service.d.ts +12 -0
- package/dist/src/services/graph_variant_service.d.ts.map +1 -0
- package/dist/src/services/graph_variant_service.js +66 -0
- package/dist/src/services/graph_variant_service.js.map +1 -0
- package/dist/src/services/tts_service.d.ts +273 -0
- package/dist/src/services/tts_service.d.ts.map +1 -0
- package/dist/src/services/tts_service.js +299 -0
- package/dist/src/services/tts_service.js.map +1 -0
- package/dist/src/services/update_checker.d.ts +37 -0
- package/dist/src/services/update_checker.d.ts.map +1 -0
- package/dist/src/services/workspace_service.d.ts +47 -0
- package/dist/src/services/workspace_service.d.ts.map +1 -0
- package/dist/src/services/workspace_service.js +222 -0
- package/dist/src/services/workspace_service.js.map +1 -0
- package/dist/src/templates/llm_tts/graph.d.ts +2 -0
- package/dist/src/templates/llm_tts/graph.d.ts.map +1 -0
- package/dist/src/utils/array.d.ts +2 -0
- package/dist/src/utils/array.d.ts.map +1 -0
- package/dist/src/utils/array.js +4 -0
- package/dist/src/utils/array.js.map +1 -0
- package/dist/src/utils/confirm.d.ts +62 -0
- package/dist/src/utils/confirm.d.ts.map +1 -0
- package/dist/src/utils/confirm.js +90 -0
- package/dist/src/utils/confirm.js.map +1 -0
- package/dist/src/utils/long_running_operations.d.ts +38 -0
- package/dist/src/utils/long_running_operations.d.ts.map +1 -0
- package/dist/src/utils/long_running_operations.js +62 -0
- package/dist/src/utils/long_running_operations.js.map +1 -0
- package/dist/src/utils/resource_name_helper.d.ts +12 -0
- package/dist/src/utils/resource_name_helper.d.ts.map +1 -0
- package/dist/src/utils/resource_name_helper.js +29 -0
- package/dist/src/utils/resource_name_helper.js.map +1 -0
- package/dist/src/utils/selector.d.ts +62 -0
- package/dist/src/utils/selector.d.ts.map +1 -0
- package/dist/src/utils/selector.js +77 -0
- package/dist/src/utils/selector.js.map +1 -0
- package/dist/src/utils/spinner.d.ts +75 -0
- package/dist/src/utils/spinner.d.ts.map +1 -0
- package/dist/src/utils/spinner.js +178 -0
- package/dist/src/utils/spinner.js.map +1 -0
- package/dist/src/utils/ui.d.ts +27 -0
- package/dist/src/utils/ui.d.ts.map +1 -0
- package/dist/src/utils/ui.js +83 -0
- package/dist/src/utils/ui.js.map +1 -0
- package/dist/templates/llm_tts/graph.ts +2 -1
- package/package.json +3 -2
- package/src/templates/llm_tts/graph.ts +2 -1
- package/dist/src/templates/simple/README.md +0 -106
- package/dist/src/templates/simple/graph.ts +0 -32
- package/dist/src/templates/simple/metadata.json +0 -26
- package/dist/templates/simple/README.md +0 -106
- package/dist/templates/simple/graph.ts +0 -32
- package/dist/templates/simple/metadata.json +0 -26
- package/src/templates/simple/README.md +0 -106
- package/src/templates/simple/graph.ts +0 -32
- package/src/templates/simple/metadata.json +0 -26
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "simple",
|
|
3
|
-
"name": "Simple Custom Node",
|
|
4
|
-
"description": "A basic example demonstrating how to create a custom node that processes text input. Perfect for learning the basics of the Inworld Runtime graph system.",
|
|
5
|
-
"tags": ["beginner", "custom-node", "text-processing"],
|
|
6
|
-
"defaultProjectName": "simple-graph",
|
|
7
|
-
"examples": {
|
|
8
|
-
"curlCommand": "curl http://localhost:3000/v1/graph:start -X POST -H 'Content-Type: application/json' -d '{\"input\": \"Hello\"}}'",
|
|
9
|
-
"inputExample": {
|
|
10
|
-
"text": "Hello!"
|
|
11
|
-
},
|
|
12
|
-
"outputExample": {
|
|
13
|
-
"processedText": "HELLO!"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"features": [
|
|
17
|
-
"Custom node implementation",
|
|
18
|
-
"Text processing pipeline",
|
|
19
|
-
"Simple graph structure",
|
|
20
|
-
"TypeScript support"
|
|
21
|
-
],
|
|
22
|
-
"requirements": {
|
|
23
|
-
"node": ">=18.0.0",
|
|
24
|
-
"dependencies": ["@inworld/runtime"]
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
# Simple Custom Node Graph
|
|
2
|
-
|
|
3
|
-
This is a simple Inworld Runtime graph project that demonstrates creating a custom node.
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
This template provides a basic example of:
|
|
8
|
-
|
|
9
|
-
- Creating a custom node by extending `CustomNode`
|
|
10
|
-
- Processing input text and returning transformed output
|
|
11
|
-
- Setting up a single-node graph with start and end points
|
|
12
|
-
|
|
13
|
-
## Getting Started
|
|
14
|
-
|
|
15
|
-
### Installation
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Running the Graph
|
|
22
|
-
|
|
23
|
-
#### As a server (recommended):
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
npm start
|
|
27
|
-
# or
|
|
28
|
-
npx inworld serve {{graphFileName}}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
#### Direct execution:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
npm run run
|
|
35
|
-
# or
|
|
36
|
-
npx inworld run {{graphFileName}}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Project Structure
|
|
40
|
-
|
|
41
|
-
- **`{{graphFileName}}`** - Main graph file containing your custom node implementation
|
|
42
|
-
- **`package.json`** - Project dependencies and scripts
|
|
43
|
-
- **`README.md`** - This file
|
|
44
|
-
|
|
45
|
-
## How It Works
|
|
46
|
-
|
|
47
|
-
The template includes:
|
|
48
|
-
|
|
49
|
-
1. **CustomTextNode**: A custom node that processes input text (converts to uppercase as an example)
|
|
50
|
-
2. **GraphBuilder**: Creates a graph with the custom node as both start and end point
|
|
51
|
-
3. **Graph Export**: Exports the built graph for use with Inworld CLI or Graph Server
|
|
52
|
-
|
|
53
|
-
## Customization
|
|
54
|
-
|
|
55
|
-
### Modifying the Custom Node
|
|
56
|
-
|
|
57
|
-
Edit the `CustomTextNode` class in `{{graphFileName}}` to change how text is processed:
|
|
58
|
-
|
|
59
|
-
```typescript
|
|
60
|
-
export class CustomTextNode extends CustomNode {
|
|
61
|
-
async process(
|
|
62
|
-
_context: ProcessContext,
|
|
63
|
-
input: string,
|
|
64
|
-
): Promise<CustomTextOutput> {
|
|
65
|
-
// Add your custom processing logic here
|
|
66
|
-
return {
|
|
67
|
-
processedText: yourTransformFunction(input),
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Adding More Nodes
|
|
74
|
-
|
|
75
|
-
You can create additional custom nodes and chain them together:
|
|
76
|
-
|
|
77
|
-
```typescript
|
|
78
|
-
const node1 = new FirstCustomNode();
|
|
79
|
-
const node2 = new SecondCustomNode();
|
|
80
|
-
|
|
81
|
-
const graphBuilder = new GraphBuilder('my-graph')
|
|
82
|
-
.addNode(node1)
|
|
83
|
-
.addNode(node2)
|
|
84
|
-
.setStartNode(node1)
|
|
85
|
-
.setEndNode(node2)
|
|
86
|
-
.connectNodes(node1, node2);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## Deployment
|
|
90
|
-
|
|
91
|
-
To package your graph for deployment:
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
npx inworld deploy {{graphFileName}}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
This will create a deployment package that can be uploaded to Inworld Cloud.
|
|
98
|
-
|
|
99
|
-
## Documentation
|
|
100
|
-
|
|
101
|
-
For more information about Inworld Runtime, visit the [documentation](https://docs.inworld.ai/).
|
|
102
|
-
|
|
103
|
-
## Requirements
|
|
104
|
-
|
|
105
|
-
- Node.js >= 18.0.0
|
|
106
|
-
- @inworld/cli package
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CustomNode,
|
|
3
|
-
GraphBuilder,
|
|
4
|
-
ProcessContext,
|
|
5
|
-
} from '@inworld/runtime/graph';
|
|
6
|
-
|
|
7
|
-
interface CustomTextOutput {
|
|
8
|
-
processedText: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Define a custom node that processes the input text
|
|
12
|
-
export class CustomTextNode extends CustomNode {
|
|
13
|
-
async process(
|
|
14
|
-
_context: ProcessContext,
|
|
15
|
-
input: string,
|
|
16
|
-
): Promise<CustomTextOutput> {
|
|
17
|
-
return {
|
|
18
|
-
processedText: input.toUpperCase(),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
// Create an instance of the custom node
|
|
23
|
-
const customTextNode = new CustomTextNode();
|
|
24
|
-
|
|
25
|
-
// Creating a simple single-node graph builder instance and adding the node to it.
|
|
26
|
-
const graphBuilder = new GraphBuilder('custom-text-node')
|
|
27
|
-
.addNode(customTextNode)
|
|
28
|
-
.setStartNode(customTextNode)
|
|
29
|
-
.setEndNode(customTextNode);
|
|
30
|
-
|
|
31
|
-
// Export graph to be used by Inworld CLI or Inworld Graph Server.
|
|
32
|
-
export const graph = graphBuilder.build();
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "simple",
|
|
3
|
-
"name": "Simple Custom Node",
|
|
4
|
-
"description": "A basic example demonstrating how to create a custom node that processes text input. Perfect for learning the basics of the Inworld Runtime graph system.",
|
|
5
|
-
"tags": ["beginner", "custom-node", "text-processing"],
|
|
6
|
-
"defaultProjectName": "simple-graph",
|
|
7
|
-
"examples": {
|
|
8
|
-
"curlCommand": "curl http://localhost:3000/v1/graph:start -X POST -H 'Content-Type: application/json' -d '{\"input\": \"Hello\"}}'",
|
|
9
|
-
"inputExample": {
|
|
10
|
-
"text": "Hello!"
|
|
11
|
-
},
|
|
12
|
-
"outputExample": {
|
|
13
|
-
"processedText": "HELLO!"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"features": [
|
|
17
|
-
"Custom node implementation",
|
|
18
|
-
"Text processing pipeline",
|
|
19
|
-
"Simple graph structure",
|
|
20
|
-
"TypeScript support"
|
|
21
|
-
],
|
|
22
|
-
"requirements": {
|
|
23
|
-
"node": ">=18.0.0",
|
|
24
|
-
"dependencies": ["@inworld/runtime"]
|
|
25
|
-
}
|
|
26
|
-
}
|