Skip to content

Commit a01232c

Browse files
authored
Merge pull request #1718 from elizaOS/fix/agent_index
fix: multiple web search import in agent
2 parents 6c388cd + b934e42 commit a01232c

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

.env.example

-3
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,6 @@ TOGETHER_API_KEY=
212212
# Server Configuration
213213
SERVER_PORT=3000
214214

215-
# Web Search Config
216-
ENABLE_WEBSEARCH=false # boolean value, defaults to false
217-
218215
# Abstract Configuration
219216
ABSTRACT_ADDRESS=
220217
ABSTRACT_PRIVATE_KEY=

agent/src/index.ts

-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { LensAgentClient } from "@elizaos/client-lens";
77
import { SlackClientInterface } from "@elizaos/client-slack";
88
import { TelegramClientInterface } from "@elizaos/client-telegram";
99
import { TwitterClientInterface } from "@elizaos/client-twitter";
10-
import { webSearchPlugin } from "@elizaos/plugin-web-search";
1110
import {
1211
AgentRuntime,
1312
CacheManager,
@@ -525,10 +524,6 @@ export async function createAgent(
525524
// character.plugins are handled when clients are added
526525
plugins: [
527526
bootstrapPlugin,
528-
parseBooleanFromText(getSecret(character, "ENABLE_WEBSEARCH")) ===
529-
true
530-
? webSearchPlugin
531-
: null,
532527
getSecret(character, "CONFLUX_CORE_PRIVATE_KEY")
533528
? confluxPlugin
534529
: null,

0 commit comments

Comments
 (0)