@threadplane/chat 0.0.54 → 0.0.56
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 +12 -5
- package/fesm2022/threadplane-chat.mjs +4846 -4202
- package/fesm2022/threadplane-chat.mjs.map +1 -1
- package/package.json +2 -2
- package/types/threadplane-chat.d.ts +103 -14
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Part of [Threadplane](https://github.com/cacheplane/angular-agent-framework).
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
npm install @threadplane/chat
|
|
31
|
+
npm install @threadplane/chat @threadplane/langgraph @langchain/core @langchain/langgraph-sdk marked
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**Peer dependencies:**
|
|
@@ -37,6 +37,7 @@ npm install @threadplane/chat
|
|
|
37
37
|
@angular/core ^20.0.0 || ^21.0.0
|
|
38
38
|
@angular/common ^20.0.0 || ^21.0.0
|
|
39
39
|
@angular/platform-browser ^20.0.0 || ^21.0.0
|
|
40
|
+
@angular/router ^20.0.0 || ^21.0.0
|
|
40
41
|
@threadplane/licensing *
|
|
41
42
|
@threadplane/render *
|
|
42
43
|
@threadplane/a2ui *
|
|
@@ -44,6 +45,8 @@ npm install @threadplane/chat
|
|
|
44
45
|
@langchain/core ^1.1.33
|
|
45
46
|
rxjs ~7.8.0
|
|
46
47
|
marked ^15.0.0 || ^16.0.0
|
|
48
|
+
zod ^3.25.0
|
|
49
|
+
katex ^0.16.0 || ^0.17.0 (optional)
|
|
47
50
|
```
|
|
48
51
|
|
|
49
52
|
---
|
|
@@ -54,9 +57,13 @@ marked ^15.0.0 || ^16.0.0
|
|
|
54
57
|
// app.config.ts
|
|
55
58
|
import { ApplicationConfig } from '@angular/core';
|
|
56
59
|
import { provideChat } from '@threadplane/chat';
|
|
60
|
+
import { provideAgent } from '@threadplane/langgraph';
|
|
57
61
|
|
|
58
62
|
export const appConfig: ApplicationConfig = {
|
|
59
|
-
providers: [
|
|
63
|
+
providers: [
|
|
64
|
+
provideAgent({ apiUrl: '/api/langgraph', assistantId: 'agent' }),
|
|
65
|
+
provideChat({ license: 'eyJ…' }),
|
|
66
|
+
],
|
|
60
67
|
};
|
|
61
68
|
```
|
|
62
69
|
|
|
@@ -64,7 +71,7 @@ export const appConfig: ApplicationConfig = {
|
|
|
64
71
|
// my.component.ts
|
|
65
72
|
import { Component } from '@angular/core';
|
|
66
73
|
import { ChatComponent } from '@threadplane/chat';
|
|
67
|
-
import {
|
|
74
|
+
import { injectAgent } from '@threadplane/langgraph';
|
|
68
75
|
|
|
69
76
|
@Component({
|
|
70
77
|
selector: 'app-root',
|
|
@@ -72,11 +79,11 @@ import { agent } from '@threadplane/langgraph';
|
|
|
72
79
|
template: `<chat [agent]="myAgent" />`,
|
|
73
80
|
})
|
|
74
81
|
export class AppComponent {
|
|
75
|
-
myAgent =
|
|
82
|
+
protected readonly myAgent = injectAgent();
|
|
76
83
|
}
|
|
77
84
|
```
|
|
78
85
|
|
|
79
|
-
Get the
|
|
86
|
+
Get the agent from `@threadplane/langgraph` (for LangGraph Platform backends) or `@threadplane/ag-ui` (for AG-UI-compatible backends). See those packages for setup details.
|
|
80
87
|
|
|
81
88
|
---
|
|
82
89
|
|