Skip to content

Commit

Permalink
Merge pull request #1893 from elizaOS/fix/tests
Browse files Browse the repository at this point in the history
chore: fix integrations and smoke tests
  • Loading branch information
shakkernerd authored Jan 6, 2025
2 parents 0b6c745 + 96ee1f8 commit a303eec
Show file tree
Hide file tree
Showing 71 changed files with 979 additions and 2,984 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
version: 9.15.0

- uses: actions/setup-node@v4
with:
node-version: "23"
node-version: "23.3.0"
cache: "pnpm"

- name: Clean up
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
version: 9.15.0

- uses: actions/setup-node@v4
with:
node-version: "23"
node-version: "23.3.0"
cache: "pnpm"

- name: Run smoke tests
Expand Down
1 change: 0 additions & 1 deletion agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"@elizaos/plugin-tee-marlin": "workspace:*",
"@elizaos/plugin-multiversx": "workspace:*",
"@elizaos/plugin-near": "workspace:*",
"@elizaos/plugin-reclaim": "workspace:*",
"@elizaos/plugin-zksync-era": "workspace:*",
"@elizaos/plugin-twitter": "workspace:*",
"@elizaos/plugin-cronoszkevm": "workspace:*",
Expand Down
36 changes: 17 additions & 19 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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 { ReclaimAdapter } from "@elizaos/plugin-reclaim";
// import { ReclaimAdapter } from "@elizaos/plugin-reclaim";
import {
AgentRuntime,
CacheManager,
Expand Down Expand Up @@ -527,20 +527,20 @@ export async function createAgent(
}

// Initialize Reclaim adapter if environment variables are present
let verifiableInferenceAdapter;
if (
process.env.RECLAIM_APP_ID &&
process.env.RECLAIM_APP_SECRET &&
process.env.VERIFIABLE_INFERENCE_ENABLED === "true"
) {
verifiableInferenceAdapter = new ReclaimAdapter({
appId: process.env.RECLAIM_APP_ID,
appSecret: process.env.RECLAIM_APP_SECRET,
modelProvider: character.modelProvider,
token,
});
elizaLogger.log("Verifiable inference adapter initialized");
}
// let verifiableInferenceAdapter;
// if (
// process.env.RECLAIM_APP_ID &&
// process.env.RECLAIM_APP_SECRET &&
// process.env.VERIFIABLE_INFERENCE_ENABLED === "true"
// ) {
// verifiableInferenceAdapter = new ReclaimAdapter({
// appId: process.env.RECLAIM_APP_ID,
// appSecret: process.env.RECLAIM_APP_SECRET,
// modelProvider: character.modelProvider,
// token,
// });
// elizaLogger.log("Verifiable inference adapter initialized");
// }

return new AgentRuntime({
databaseAdapter: db,
Expand Down Expand Up @@ -602,9 +602,7 @@ export async function createAgent(
advancedTradePlugin,
]
: []),
...(teeMode !== TEEMode.OFF && walletSecretSalt
? [teePlugin]
: []),
...(teeMode !== TEEMode.OFF && walletSecretSalt ? [teePlugin] : []),
getSecret(character, "COINBASE_API_KEY") &&
getSecret(character, "COINBASE_PRIVATE_KEY") &&
getSecret(character, "COINBASE_NOTIFICATION_URI")
Expand Down Expand Up @@ -652,7 +650,7 @@ export async function createAgent(
managers: [],
cacheManager: cache,
fetch: logFetch,
verifiableInferenceAdapter,
// verifiableInferenceAdapter,
});
}

Expand Down
Loading

0 comments on commit a303eec

Please sign in to comment.