Skip to content

Feature portfolio with balance#90

Merged
gkoch78 merged 13 commits intomainfrom
feature-portfolio-with-balance
Feb 19, 2025
Merged

Feature portfolio with balance#90
gkoch78 merged 13 commits intomainfrom
feature-portfolio-with-balance

Conversation

@gkoch78
Copy link
Contributor

@gkoch78 gkoch78 commented Feb 19, 2025

example of interaction: do I have enough sepolia WETH to buy 1000000 USDC

response:

Response: No, you don't have enough Sepolia WETH to buy 1,000,000 USDC. Here's why:
- Your current balance: 0.0765 WETH
- WETH needed: 17.9010 WETH
- Based on current prices (1 WETH ≈ 55862.92 USDC), you would need approximately 17.9010 WETH to buy 1,000,000 USDC.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export Portfolio

from smolagents import Tool


class GetPortfolioBalanceTool(Tool):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Winston-503 to be migrated

@gkoch78 gkoch78 merged commit 343ea89 into main Feb 19, 2025
2 checks passed
@gkoch78 gkoch78 deleted the feature-portfolio-with-balance branch February 19, 2025 23:27
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.

2 participants