Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/langchain-decorator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export * from './src/util/BoundModelInfoUtil';

export * from './src/qualifier/ChatModelQualifier';
export * from './src/qualifier/ChatCheckpointSaverQualifier';
export * from './src/qualifier/FileSystemQualifier';
export * from './src/type/metadataKey';
1 change: 1 addition & 0 deletions core/langchain-decorator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@langchain/core": "^1.1.1",
"@langchain/langgraph": "^1.0.2",
"@langchain/openai": "^1.1.0",
"deepagents": "^1.5.1",
"langchain": "^1.1.2",
"lodash": "^4.17.21",
"pluralize": "^8.0.0"
Expand Down
10 changes: 10 additions & 0 deletions core/langchain-decorator/src/qualifier/FileSystemQualifier.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { QualifierUtil } from '@eggjs/tegg';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

Import from @eggjs/core-decorator instead of @eggjs/tegg.

As per coding guidelines, in core/* packages, decorator utilities like QualifierUtil should be imported from @eggjs/core-decorator, not @eggjs/tegg.

Suggested fix
-import { QualifierUtil } from '@eggjs/tegg';
+import { QualifierUtil } from '@eggjs/core-decorator';
🤖 Prompt for AI Agents
In `@core/langchain-decorator/src/qualifier/FileSystemQualifier.ts` at line 1, The
import in FileSystemQualifier.ts incorrectly pulls QualifierUtil from
'@eggjs/tegg'; change the module specifier to '@eggjs/core-decorator' so
QualifierUtil is imported from the correct package. Locate the import statement
that mentions QualifierUtil in the FileSystemQualifier.ts module and update the
string literal to '@eggjs/core-decorator', keeping the imported symbol name
unchanged.


export const FileSystemQualifierAttribute = Symbol.for('Qualifier.FileSystem');
export const FileSystemInjectName = 'teggFilesystem';

export function FileSystemQualifier(fsMiddlewareName: string) {
return function(target: any, propertyKey?: PropertyKey, parameterIndex?: number) {
QualifierUtil.addInjectQualifier(target, propertyKey, parameterIndex, FileSystemQualifierAttribute, fsMiddlewareName);
};
}
2 changes: 1 addition & 1 deletion plugin/langchain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export * from './lib/graph/GraphLoadUnitHook';
export * from './lib/graph/GraphObjectHook';
export * from './lib/graph/GraphPrototypeHook';
export * from './lib/tracing/LangGraphTracer';

export * from './lib/filesystem/MysqlFilesystem';
Loading
Loading