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 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="/api"
42
- assistantSourceApp="cortex"
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
- Use mock mode while integrating without a backend:
46
+ Or provide shared configuration once:
49
47
 
50
- ```html
51
- <max-assistant [useMockAssistantApi]="true" />
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.