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

Feat: Add switchboard feed simulation tool #246

Merged
merged 11 commits into from
Jan 30, 2025

Conversation

gesarki
Copy link
Contributor

@gesarki gesarki commented Jan 28, 2025

Pull Request Description

Switchboard is a decentralized oracle network that provides reliable and tamper-proof data feeds to smart contracts on blockchain platforms. It allows developers to access real-world data, such as price feeds, weather information, and other external data sources, which can be used in decentralized applications (dApps). Switchboard aims to enhance the functionality of smart contracts by enabling them to interact with off-chain data securely and efficiently.

Changes Made

This PR adds the following changes:

  • This PR adds the tools and actions needed to enable agents to simulate switchboard feeds. You must provide the feed hash of a Switchboard feed (you can browse feeds here) and the agent will simulate it to get the current value.

Implementation Details

  • Followed guides/add_your_own_tool.md directions.

Transaction executed by agent

N/A

Prompt Used

- simulate the following switchboard feed: DwYF1yveo8XTF1oqfsqykj332rjSxAd7bR6Gu6i4iUET
- simulate the following switchboard feed: DwYF1yveo8XTF1oqfsqykj332rjSxAd7bR6Gu6i4iUET using this crossbar URL: https://crossbar.switchboard.xyz

Additional Notes

Screenshot:
image

Checklist

  • I have tested these changes locally
  • I have updated the documentation
  • I have added a transaction link
  • I have added the prompt used to test it

@gesarki gesarki marked this pull request as ready for review January 28, 2025 07:18
@michaelessiet
Copy link
Collaborator

Hi @gesarki please remove the switchboard testing file and directory. For now we would like testing to be carried through prompting the AI

@gesarki
Copy link
Contributor Author

gesarki commented Jan 28, 2025

Hi @gesarki please remove the switchboard testing file and directory. For now we would like testing to be carried through prompting the AI

Thanks for taking a look @michaelessiet. The test/tools/ directory already existed before my PR but I removed the switchboard file from there.

@michaelessiet
Copy link
Collaborator

Hey @gesarki , please do you mind sharing your TG username

@michaelessiet michaelessiet merged commit 6d67bdc into sendaifun:main Jan 30, 2025
2 checks passed
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.

3 participants