Skip to content

Commit

Permalink
Merge pull request #3640 from Luks3110/fix/adapter-not-defined
Browse files Browse the repository at this point in the history
fix: Add database adapter and plugin adapter types to core types
  • Loading branch information
odilitime authored Feb 24, 2025
2 parents 30101f5 + f2d3839 commit 7f2cf2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,11 @@ export type Client = {
start: (runtime: IAgentRuntime) => Promise<ClientInstance>;
};

/**
* Database adapter initialization
*/
export type Adapter = {
/** Initialize adapter */
/** Initialize the adapter */
init: (runtime: IAgentRuntime) => IDatabaseAdapter & IDatabaseCacheAdapter;
};

Expand Down

0 comments on commit 7f2cf2b

Please sign in to comment.