@stateflowx/runtime 0.1.8 → 0.1.9
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 +0 -54
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,18 +40,6 @@ This demonstrates:
|
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
43
|
-
## Demo Client Application
|
|
44
|
-
|
|
45
|
-
Example Angular client implementation:
|
|
46
|
-
|
|
47
|
-
<https://github.com/bws9000/stateflowx-client-demo>
|
|
48
|
-
|
|
49
|
-
## Demo Host Application
|
|
50
|
-
|
|
51
|
-
<https://github.com/bws9000/stateflowx-runtime-host-example>
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
43
|
## Basic Runtime Host Example
|
|
56
44
|
|
|
57
45
|
```ts
|
|
@@ -106,48 +94,6 @@ console.log(
|
|
|
106
94
|
|
|
107
95
|
---
|
|
108
96
|
|
|
109
|
-
## Example Client Runtime Configuration
|
|
110
|
-
|
|
111
|
-
```ts
|
|
112
|
-
const config = defineConfig({
|
|
113
|
-
protocol: jsonRpc(),
|
|
114
|
-
|
|
115
|
-
transport: websocket({
|
|
116
|
-
url: 'ws://localhost:3000',
|
|
117
|
-
}),
|
|
118
|
-
|
|
119
|
-
providers: [
|
|
120
|
-
gemini({
|
|
121
|
-
priority: 1,
|
|
122
|
-
}),
|
|
123
|
-
|
|
124
|
-
mockProvider({
|
|
125
|
-
priority: 2,
|
|
126
|
-
}),
|
|
127
|
-
],
|
|
128
|
-
|
|
129
|
-
services: [
|
|
130
|
-
{
|
|
131
|
-
name: 'weather',
|
|
132
|
-
type: 'http',
|
|
133
|
-
method: 'GET',
|
|
134
|
-
url: 'https://api.open-meteo.com/v1/forecast?...',
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
|
|
138
|
-
workflows: [
|
|
139
|
-
{
|
|
140
|
-
route: 'weather.execute',
|
|
141
|
-
service: 'weather',
|
|
142
|
-
provider: 'default',
|
|
143
|
-
prompt: 'Format weather data into structured JSON',
|
|
144
|
-
},
|
|
145
|
-
],
|
|
146
|
-
});
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
---
|
|
150
|
-
|
|
151
97
|
## Architecture
|
|
152
98
|
|
|
153
99
|
```text
|
package/package.json
CHANGED