feat: 重构 memory 系统,支持 user memory 和 work memory 分离

This commit is contained in:
qzl
2026-03-23 14:25:47 +08:00
parent 3aacc756db
commit 6be616f108
70 changed files with 7031 additions and 431 deletions
@@ -45,7 +45,7 @@ void main() {
expect(result.toolCallId, 'call_1');
expect(result.toolName, 'calendar_read');
expect(result.resultSummary, '找到 2 条结果');
expect(result.uiSchema, isNull);
expect(result.status, 'success');
});
test('parses history snapshot with ui_schema', () {
@@ -44,6 +44,11 @@ class _FakeApiClient implements IApiClient {
throw UnimplementedError();
}
@override
Future<Response<T>> put<T>(String path, {data, Options? options}) {
throw UnimplementedError();
}
@override
Future<Response<T>> post<T>(String path, {data, Options? options}) async {
final runIdFactory = this.runIdFactory;
@@ -33,6 +33,11 @@ class _NoopApiClient implements IApiClient {
throw UnimplementedError();
}
@override
Future<Response<T>> put<T>(String path, {data, Options? options}) {
throw UnimplementedError();
}
@override
Future<Response<T>> post<T>(String path, {data, Options? options}) {
throw UnimplementedError();
@@ -152,7 +157,6 @@ void main() {
toolName: 'ocr_image',
resultSummary: 'done',
status: 'success',
uiSchema: null,
),
);
toolItem = bloc.state.items.last as ToolCallItem;