From 8aab8c08ee2785be21c2f7d8c9b3846aba99cd9c Mon Sep 17 00:00:00 2001 From: Sweets Sweetman Date: Tue, 14 Jan 2025 14:20:34 -0300 Subject: [PATCH] simple agentkit import. --- agent/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/agent/src/index.ts b/agent/src/index.ts index 68a58daa346..8193714fe09 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -38,6 +38,7 @@ import { zgPlugin } from "@elizaos/plugin-0g"; import { bootstrapPlugin } from "@elizaos/plugin-bootstrap"; import createGoatPlugin from "@elizaos/plugin-goat"; +import { agentKitPlugin } from "@elizaos/plugin-agentkit"; // import { intifacePlugin } from "@elizaos/plugin-intiface"; import { DirectClient } from "@elizaos/client-direct"; import { ThreeDGenerationPlugin } from "@elizaos/plugin-3d-generation"; @@ -709,6 +710,10 @@ export async function createAgent( // character.plugins are handled when clients are added plugins: [ bootstrapPlugin, + getSecret(character, "CDP_API_KEY_NAME") && + getSecret(character, "CDP_API_KEY_PRIVATE_KEY") + ? agentKitPlugin + : null, getSecret(character, "CONFLUX_CORE_PRIVATE_KEY") ? confluxPlugin : null,