max-agent-ui 0.0.11 → 0.0.13
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 +13 -7
- package/fesm2022/max-agent-ui.mjs +175 -38
- package/fesm2022/max-agent-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/max-agent-ui.d.ts +64 -13
package/README.md
CHANGED
|
@@ -38,17 +38,23 @@ Add `MaxAssistantComponent` to the consuming component imports and render:
|
|
|
38
38
|
|
|
39
39
|
```html
|
|
40
40
|
<max-assistant
|
|
41
|
-
assistantApiUrl="/
|
|
42
|
-
|
|
43
|
-
assistantTargetProduct="maxtime"
|
|
44
|
-
[context]="assistantContext"
|
|
41
|
+
assistantApiUrl="http://127.0.0.1:8001/chat"
|
|
42
|
+
app="cortex"
|
|
45
43
|
/>
|
|
46
44
|
```
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
Or provide shared configuration once:
|
|
49
47
|
|
|
50
|
-
```
|
|
51
|
-
|
|
48
|
+
```ts
|
|
49
|
+
providers: [
|
|
50
|
+
{
|
|
51
|
+
provide: MAX_ASSISTANT_CONFIG,
|
|
52
|
+
useValue: {
|
|
53
|
+
assistantApiUrl: 'http://127.0.0.1:8001/chat',
|
|
54
|
+
app: 'cortex'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
52
58
|
```
|
|
53
59
|
|
|
54
60
|
Host apps should provide Angular `HttpClient` for real API calls and include their PrimeNG theme and PrimeIcons styles.
|