Skip to content

Commit

Permalink
Merge pull request #1676 from odilitime/web-search-fix
Browse files Browse the repository at this point in the history
fix: add web search to agent
  • Loading branch information
odilitime authored Jan 2, 2025
2 parents ed5cd68 + f5af791 commit 413cf08
Show file tree
Hide file tree
Showing 2 changed files with 1,349 additions and 1,216 deletions.
2 changes: 2 additions & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import { zksyncEraPlugin } from "@elizaos/plugin-zksync-era";
import { cronosZkEVMPlugin } from "@elizaos/plugin-cronoszkevm";
import { abstractPlugin } from "@elizaos/plugin-abstract";
import { avalanchePlugin } from "@elizaos/plugin-avalanche";
import { webSearchPlugin } from "@elizaos/plugin-web-search";
import Database from "better-sqlite3";
import fs from "fs";
import path from "path";
Expand Down Expand Up @@ -531,6 +532,7 @@ export async function createAgent(
? confluxPlugin
: null,
nodePlugin,
getSecret(character, "TAVILY_API_KEY") ? webSearchPlugin : null,
getSecret(character, "SOLANA_PUBLIC_KEY") ||
(getSecret(character, "WALLET_PUBLIC_KEY") &&
!getSecret(character, "WALLET_PUBLIC_KEY")?.startsWith("0x"))
Expand Down
Loading

0 comments on commit 413cf08

Please sign in to comment.