Skip to content

Commit

Permalink
Updates for web search and timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
cmadaan committed Dec 30, 2024
1 parent 76d4f42 commit b60cb3b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
.env.production
.env.local
.env_main
.env.example
concatenated-output.ts
embedding-cache.json
packages/plugin-buttplug/intiface-engine
Expand Down Expand Up @@ -40,7 +41,12 @@ timeline_cache.json
*.sqlite

characters/
characterfile/
gen-lang-client-0926033935-7fe5ed22b25a.json
knowledge.json
start-evelyn.sh

update-character-knowledge.sh
packages/core/src/providers/cache
packages/core/src/providers/cache/*
cache/*
Expand Down
1 change: 1 addition & 0 deletions agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@elizaos/plugin-3d-generation": "workspace:*",
"@elizaos/plugin-fuel": "workspace:*",
"@elizaos/plugin-avalanche": "workspace:*",
"@elizaos/plugin-web-search": "workspace:*",
"readline": "1.3.0",
"ws": "8.18.0",
"yargs": "17.7.2"
Expand Down
2 changes: 2 additions & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { LensAgentClient } from "@elizaos/client-lens";
import { SlackClientInterface } from "@elizaos/client-slack";
import { TelegramClientInterface } from "@elizaos/client-telegram";
import { TwitterClientInterface } from "@elizaos/client-twitter";
import { webSearchPlugin } from "@elizaos/plugin-web-search";
import {
AgentRuntime,
CacheManager,
Expand Down Expand Up @@ -521,6 +522,7 @@ export async function createAgent(
// character.plugins are handled when clients are added
plugins: [
bootstrapPlugin,
webSearchPlugin,
getSecret(character, "CONFLUX_CORE_PRIVATE_KEY")
? confluxPlugin
: null,
Expand Down
2 changes: 1 addition & 1 deletion packages/client-twitter/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class ClientBase extends EventEmitter {
// Sometimes this fails because we are rate limited. in this case, we just need to return an empty array
// if we dont get a response in 5 seconds, something is wrong
const timeoutPromise = new Promise((resolve) =>
setTimeout(() => resolve({ tweets: [] }), 10000)
setTimeout(() => resolve({ tweets: [] }), 15000)
);

try {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b60cb3b

Please sign in to comment.