Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test suite for wallet and plugin tool invocations #443

Closed
wants to merge 17 commits into from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Test Suite for Wallet and Plugin Tool Invocations

This PR adds a comprehensive test suite to verify that different prompts correctly trigger the appropriate wallet and plugin tools with expected parameters.

Features

  • Test cases for core wallet operations and plugin interactions
  • Mock utilities for external API calls and wallet interactions
  • Verification that tools are called with correct parameters based on user prompts
  • Tests structured from simple to complex scenarios

Test Coverage

  • Basic wallet operations (balance checks, transfers)
  • Token operations (swaps, transfers)
  • NFT interactions
  • Plugin-specific operations (Jupiter, CoinGecko, etc.)
  • Edge cases and parameter validation
  • Prompt examples from the evaluation files

Implementation

  • Parallel implementations in both TypeScript and Python
  • Consistent test structure across both languages
  • Mock utilities for wallet clients and tool execution spies
  • Parameter validation using Zod (TypeScript) and Pydantic (Python)

Testing

All tests pass in both TypeScript and Python implementations.

Link to Devin run: https://app.devin.ai/sessions/70028c7b477745dbb7d27e4e47fd73f5
Requested by: andrea@paella.dev

Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

changeset-bot bot commented Mar 24, 2025

⚠️ No Changeset found

Latest commit: 50301d3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

devin-ai-integration bot and others added 16 commits March 24, 2025 08:39
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
…-examples.test.ts

Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
…roperties instead of instance types

Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
…st-utils.ts

Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
Co-Authored-By: andrea@paella.dev <andrea@paella.dev>
@karimodm karimodm closed this Mar 25, 2025
@karimodm karimodm deleted the devin/1742804642-test-suite branch March 25, 2025 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant