feat(workbench): 分层记忆——长期记忆+项目记忆,派发注入与成果自动记账(0.10.0)
This commit is contained in:
parent
96bb4eb682
commit
0aaf54c471
|
|
@ -361,6 +361,29 @@ export function buildRouteTable(service, options = {}) {
|
|||
revisesArtifactId: body.revisesArtifactId,
|
||||
}),
|
||||
},
|
||||
[`${ROUTE_PREFIX}/memory/get`]: {
|
||||
method: 'POST',
|
||||
handler: async ({ body }) => service.getMemory({
|
||||
scope: body.scope,
|
||||
projectId: select(body),
|
||||
}),
|
||||
},
|
||||
[`${ROUTE_PREFIX}/memory/put`]: {
|
||||
method: 'POST',
|
||||
handler: async ({ body }) => service.putMemory({
|
||||
scope: body.scope,
|
||||
projectId: select(body),
|
||||
text: body.text,
|
||||
}),
|
||||
},
|
||||
[`${ROUTE_PREFIX}/memory/append`]: {
|
||||
method: 'POST',
|
||||
handler: async ({ body }) => service.appendMemory({
|
||||
scope: body.scope,
|
||||
projectId: select(body),
|
||||
text: body.text,
|
||||
}),
|
||||
},
|
||||
[`${ROUTE_PREFIX}/events`]: {
|
||||
method: 'GET',
|
||||
handler: async ({ query, req, res }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue