@reminix/langgraph 0.0.7 → 0.0.8
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 +11 -25
- package/dist/agent-adapter.d.ts +11 -28
- package/dist/agent-adapter.d.ts.map +1 -1
- package/dist/agent-adapter.js +27 -93
- package/dist/agent-adapter.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,8 +39,7 @@ serve({ agents: [agent], port: 8080 });
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
Your agent is now available at:
|
|
42
|
-
- `POST /agents/my-agent/
|
|
43
|
-
- `POST /agents/my-agent/chat` - Conversational chat
|
|
42
|
+
- `POST /agents/my-agent/execute` - Execute the agent
|
|
44
43
|
|
|
45
44
|
## API Reference
|
|
46
45
|
|
|
@@ -76,18 +75,16 @@ LangGraph uses a state-based approach. The adapter:
|
|
|
76
75
|
|
|
77
76
|
## Endpoint Input/Output Formats
|
|
78
77
|
|
|
79
|
-
### POST /agents/{name}/
|
|
78
|
+
### POST /agents/{name}/execute
|
|
80
79
|
|
|
81
|
-
|
|
80
|
+
Execute the graph. Input keys are passed directly to the graph.
|
|
82
81
|
|
|
83
82
|
**Request:**
|
|
84
83
|
```json
|
|
85
84
|
{
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
]
|
|
90
|
-
}
|
|
85
|
+
"messages": [
|
|
86
|
+
{"role": "user", "content": "Hello!"}
|
|
87
|
+
]
|
|
91
88
|
}
|
|
92
89
|
```
|
|
93
90
|
|
|
@@ -98,29 +95,18 @@ Stateless invocation. Input is passed directly to the graph.
|
|
|
98
95
|
}
|
|
99
96
|
```
|
|
100
97
|
|
|
101
|
-
###
|
|
98
|
+
### Streaming
|
|
102
99
|
|
|
103
|
-
|
|
100
|
+
For streaming responses, set `stream: true` in the request:
|
|
104
101
|
|
|
105
|
-
**Request:**
|
|
106
102
|
```json
|
|
107
103
|
{
|
|
108
|
-
"messages": [
|
|
109
|
-
|
|
110
|
-
]
|
|
104
|
+
"messages": [{"role": "user", "content": "Hello!"}],
|
|
105
|
+
"stream": true
|
|
111
106
|
}
|
|
112
107
|
```
|
|
113
108
|
|
|
114
|
-
|
|
115
|
-
```json
|
|
116
|
-
{
|
|
117
|
-
"output": "The capital of France is Paris.",
|
|
118
|
-
"messages": [
|
|
119
|
-
{"role": "user", "content": "What is the capital of France?"},
|
|
120
|
-
{"role": "assistant", "content": "The capital of France is Paris."}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
```
|
|
109
|
+
The response will be sent as Server-Sent Events (SSE).
|
|
124
110
|
|
|
125
111
|
## Runtime Documentation
|
|
126
112
|
|
package/dist/agent-adapter.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* LangGraph adapter for Reminix Runtime.
|
|
3
3
|
*/
|
|
4
|
-
import { AgentAdapter, type ServeOptions, type
|
|
4
|
+
import { AgentAdapter, type ServeOptions, type ExecuteRequest, type ExecuteResponse } from '@reminix/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* Graph interface that matches LangGraph compiled graphs.
|
|
7
7
|
*/
|
|
@@ -28,10 +28,6 @@ export declare class LangGraphAgentAdapter extends AgentAdapter {
|
|
|
28
28
|
* Convert a Reminix message to a LangChain message.
|
|
29
29
|
*/
|
|
30
30
|
private toLangChainMessage;
|
|
31
|
-
/**
|
|
32
|
-
* Convert a LangChain message to a Reminix message.
|
|
33
|
-
*/
|
|
34
|
-
private toReminixMessage;
|
|
35
31
|
/**
|
|
36
32
|
* Check if a message is an AI message.
|
|
37
33
|
*/
|
|
@@ -41,38 +37,25 @@ export declare class LangGraphAgentAdapter extends AgentAdapter {
|
|
|
41
37
|
*/
|
|
42
38
|
private getLastAIContent;
|
|
43
39
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* For task-oriented operations. Passes the input directly to the graph.
|
|
47
|
-
*
|
|
48
|
-
* @param request - The invoke request with input data.
|
|
49
|
-
* @returns The invoke response with the output.
|
|
40
|
+
* Build LangGraph input from execute request.
|
|
50
41
|
*/
|
|
51
|
-
|
|
42
|
+
private buildGraphInput;
|
|
52
43
|
/**
|
|
53
|
-
* Handle
|
|
44
|
+
* Handle an execute request.
|
|
54
45
|
*
|
|
55
|
-
* For
|
|
56
|
-
* and invokes the graph with the state dict format.
|
|
46
|
+
* For both task-oriented and chat-style operations.
|
|
57
47
|
*
|
|
58
|
-
* @param request - The
|
|
59
|
-
* @returns The
|
|
60
|
-
*/
|
|
61
|
-
chat(request: ChatRequest): Promise<ChatResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Handle a streaming invoke request.
|
|
64
|
-
*
|
|
65
|
-
* @param request - The invoke request with input data.
|
|
66
|
-
* @yields JSON-encoded chunks from the stream.
|
|
48
|
+
* @param request - The execute request with input data.
|
|
49
|
+
* @returns The execute response with the output.
|
|
67
50
|
*/
|
|
68
|
-
|
|
51
|
+
execute(request: ExecuteRequest): Promise<ExecuteResponse>;
|
|
69
52
|
/**
|
|
70
|
-
* Handle a streaming
|
|
53
|
+
* Handle a streaming execute request.
|
|
71
54
|
*
|
|
72
|
-
* @param request - The
|
|
55
|
+
* @param request - The execute request with input data.
|
|
73
56
|
* @yields JSON-encoded chunks from the stream.
|
|
74
57
|
*/
|
|
75
|
-
|
|
58
|
+
executeStream(request: ExecuteRequest): AsyncGenerator<string, void, unknown>;
|
|
76
59
|
}
|
|
77
60
|
/**
|
|
78
61
|
* Wrap a LangGraph compiled graph for use with Reminix Runtime.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-adapter.d.ts","sourceRoot":"","sources":["../src/agent-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH,OAAO,EACL,YAAY,EAEZ,KAAK,YAAY,EACjB,KAAK,
|
|
1
|
+
{"version":3,"file":"agent-adapter.d.ts","sourceRoot":"","sources":["../src/agent-adapter.ts"],"names":[],"mappings":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AAK,EAAE,iBAAiB,EAAE,OAAO,GAAE,mBAAwB,GAAG,IAAI,CAI5F"}
|
package/dist/agent-adapter.js
CHANGED
|
@@ -46,29 +46,6 @@ export class LangGraphAgentAdapter extends AgentAdapter {
|
|
|
46
46
|
return new HumanMessage({ content: contentStr });
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Convert a LangChain message to a Reminix message.
|
|
51
|
-
*/
|
|
52
|
-
toReminixMessage(message) {
|
|
53
|
-
let role;
|
|
54
|
-
if (message instanceof HumanMessage) {
|
|
55
|
-
role = 'user';
|
|
56
|
-
}
|
|
57
|
-
else if (message instanceof AIMessage) {
|
|
58
|
-
role = 'assistant';
|
|
59
|
-
}
|
|
60
|
-
else if (message instanceof SystemMessage) {
|
|
61
|
-
role = 'system';
|
|
62
|
-
}
|
|
63
|
-
else if (message instanceof ToolMessage) {
|
|
64
|
-
role = 'tool';
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
role = 'assistant';
|
|
68
|
-
}
|
|
69
|
-
const content = typeof message.content === 'string' ? message.content : String(message.content);
|
|
70
|
-
return { role, content };
|
|
71
|
-
}
|
|
72
49
|
/**
|
|
73
50
|
* Check if a message is an AI message.
|
|
74
51
|
*/
|
|
@@ -112,16 +89,31 @@ export class LangGraphAgentAdapter extends AgentAdapter {
|
|
|
112
89
|
return '';
|
|
113
90
|
}
|
|
114
91
|
/**
|
|
115
|
-
*
|
|
92
|
+
* Build LangGraph input from execute request.
|
|
93
|
+
*/
|
|
94
|
+
buildGraphInput(request) {
|
|
95
|
+
const input = request.input;
|
|
96
|
+
if ('messages' in input) {
|
|
97
|
+
const messages = input.messages;
|
|
98
|
+
const lcMessages = messages.map((m) => this.toLangChainMessage(m));
|
|
99
|
+
return { messages: lcMessages };
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
return input;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Handle an execute request.
|
|
116
107
|
*
|
|
117
|
-
* For task-oriented
|
|
108
|
+
* For both task-oriented and chat-style operations.
|
|
118
109
|
*
|
|
119
|
-
* @param request - The
|
|
120
|
-
* @returns The
|
|
110
|
+
* @param request - The execute request with input data.
|
|
111
|
+
* @returns The execute response with the output.
|
|
121
112
|
*/
|
|
122
|
-
async
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
async execute(request) {
|
|
114
|
+
const graphInput = this.buildGraphInput(request);
|
|
115
|
+
// Call the graph
|
|
116
|
+
const result = await this.graph.invoke(graphInput);
|
|
125
117
|
// Extract output from result
|
|
126
118
|
let output;
|
|
127
119
|
if (result && typeof result === 'object' && 'messages' in result) {
|
|
@@ -137,73 +129,15 @@ export class LangGraphAgentAdapter extends AgentAdapter {
|
|
|
137
129
|
return { output };
|
|
138
130
|
}
|
|
139
131
|
/**
|
|
140
|
-
* Handle a
|
|
141
|
-
*
|
|
142
|
-
* For conversational interactions. Converts messages to LangChain format
|
|
143
|
-
* and invokes the graph with the state dict format.
|
|
144
|
-
*
|
|
145
|
-
* @param request - The chat request with messages.
|
|
146
|
-
* @returns The chat response with output and messages.
|
|
147
|
-
*/
|
|
148
|
-
async chat(request) {
|
|
149
|
-
// Convert messages to LangChain format
|
|
150
|
-
const lcMessages = request.messages.map((m) => this.toLangChainMessage(m));
|
|
151
|
-
// Call the graph with state dict format
|
|
152
|
-
const result = (await this.graph.invoke({ messages: lcMessages }));
|
|
153
|
-
// Extract messages from result
|
|
154
|
-
const resultMessages = result.messages || [];
|
|
155
|
-
// Get content from the last AI message
|
|
156
|
-
const output = this.getLastAIContent(resultMessages);
|
|
157
|
-
// Convert all messages back to Reminix format
|
|
158
|
-
const responseMessages = resultMessages.map((m) => this.toReminixMessage(m));
|
|
159
|
-
return { output, messages: responseMessages };
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Handle a streaming invoke request.
|
|
163
|
-
*
|
|
164
|
-
* @param request - The invoke request with input data.
|
|
165
|
-
* @yields JSON-encoded chunks from the stream.
|
|
166
|
-
*/
|
|
167
|
-
async *invokeStream(request) {
|
|
168
|
-
// Stream from the graph (await if stream returns a promise)
|
|
169
|
-
const streamResult = this.graph.stream(request.input);
|
|
170
|
-
const stream = streamResult instanceof Promise ? await streamResult : streamResult;
|
|
171
|
-
for await (const chunk of stream) {
|
|
172
|
-
// LangGraph streams dicts with node outputs
|
|
173
|
-
if (chunk && typeof chunk === 'object') {
|
|
174
|
-
for (const [, nodeOutput] of Object.entries(chunk)) {
|
|
175
|
-
if (nodeOutput && typeof nodeOutput === 'object' && 'messages' in nodeOutput) {
|
|
176
|
-
const messages = nodeOutput.messages;
|
|
177
|
-
for (const msg of messages) {
|
|
178
|
-
if (msg instanceof AIMessage) {
|
|
179
|
-
const content = typeof msg.content === 'string' ? msg.content : String(msg.content);
|
|
180
|
-
if (content) {
|
|
181
|
-
yield JSON.stringify({ chunk: content });
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
yield JSON.stringify({ chunk: JSON.stringify(nodeOutput) });
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
yield JSON.stringify({ chunk: String(chunk) });
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Handle a streaming chat request.
|
|
132
|
+
* Handle a streaming execute request.
|
|
198
133
|
*
|
|
199
|
-
* @param request - The
|
|
134
|
+
* @param request - The execute request with input data.
|
|
200
135
|
* @yields JSON-encoded chunks from the stream.
|
|
201
136
|
*/
|
|
202
|
-
async *
|
|
203
|
-
|
|
204
|
-
const lcMessages = request.messages.map((m) => this.toLangChainMessage(m));
|
|
137
|
+
async *executeStream(request) {
|
|
138
|
+
const graphInput = this.buildGraphInput(request);
|
|
205
139
|
// Stream from the graph (await if stream returns a promise)
|
|
206
|
-
const streamResult = this.graph.stream(
|
|
140
|
+
const streamResult = this.graph.stream(graphInput);
|
|
207
141
|
const stream = streamResult instanceof Promise ? await streamResult : streamResult;
|
|
208
142
|
for await (const chunk of stream) {
|
|
209
143
|
// LangGraph streams dicts with node outputs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-adapter.js","sourceRoot":"","sources":["../src/agent-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,YAAY,EACZ,SAAS,EACT,aAAa,EACb,WAAW,GAEZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,YAAY,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"agent-adapter.js","sourceRoot":"","sources":["../src/agent-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,YAAY,EACZ,SAAS,EACT,aAAa,EACb,WAAW,GAEZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,YAAY,EACZ,KAAK,GAKN,MAAM,kBAAkB,CAAC;AAkB1B;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,YAAY;IACrD,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;IAEzB,KAAK,CAAoB;IACzB,KAAK,CAAS;IAEtB;;;;;OAKG;IACH,YAAY,KAAwB,EAAE,OAAe,iBAAiB;QACpE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACK,kBAAkB,CAAC,OAAgB;QACzC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAClC,MAAM,UAAU,GAAG,OAAO,IAAI,EAAE,CAAC;QAEjC,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,MAAM;gBACT,OAAO,IAAI,YAAY,CAAC,EAAE,OAAO,EAAE,UAAU,E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/langgraph",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Reminix adapter for LangGraph - serve agents as REST APIs",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"LICENSE"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@reminix/runtime": "^0.0.
|
|
49
|
+
"@reminix/runtime": "^0.0.8"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@langchain/langgraph": ">=1.0.0"
|