Skip to content

Commit

Permalink
Refactor to eliminate top-level 'await'
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetmantech committed Jan 14, 2025
1 parent 2b8a68e commit 555937f
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions packages/plugin-agentkit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ import type { Plugin } from "@elizaos/core";
import { walletProvider, getClient } from "./provider";
import { getAgentKitActions } from "./actions";

export const agentKitPlugin: Plugin = {
name: "[AgentKit] Integration",
description: "AgentKit integration plugin",
providers: [walletProvider],
evaluators: [],
services: [],
actions: await getAgentKitActions({
async function agentKitPlugin(): Promise<Plugin> {
const actions = await getAgentKitActions({
getClient,
config: {
networkId: "base-sepolia",
},
}),
};
});

return {
name: "[AgentKit] Integration",
description: "AgentKit integration plugin",
providers: [walletProvider],
evaluators: [],
services: [],
actions,
};
}

export default agentKitPlugin;

0 comments on commit 555937f

Please sign in to comment.