Skip to content

Feature improve examples#73

Merged
Winston-503 merged 10 commits intomainfrom
feature-improve-examples
Feb 21, 2025
Merged

Feature improve examples#73
Winston-503 merged 10 commits intomainfrom
feature-improve-examples

Conversation

@Winston-503
Copy link
Contributor

@Winston-503 Winston-503 commented Feb 13, 2025

  • Use GetTokenAddress tool instead of appending config data
  • Improve imports with __init__(s)
  • Fix GenericBeforeBaseModelWarning: Classes should inherit from BaseModel before generic classes

@Winston-503 Winston-503 marked this pull request as draft February 19, 2025 18:29
# Conflicts:
#	alphaswarm/tools/get_token_address.py
#	alphaswarm/tools/strategy_analysis/__init__.py
#	examples/basic/01_quote.py
#	examples/basic/02_swap.py
#	examples/basic/03_strategy.py
@Winston-503 Winston-503 marked this pull request as ready for review February 20, 2025 14:50
Copy link
Contributor

@aflament aflament left a comment

Choose a reason for hiding this comment

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

with comments


# Create the agent
token_addresses: Dict[str, str] = config.get_chain_config("base").get_token_address_mapping()
hints = "Here are token addresses: \n" + yaml.dump(token_addresses) # So agent knows addresses to query
Copy link
Contributor

@aflament aflament Feb 21, 2025

Choose a reason for hiding this comment

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

Is there any place in our examples of we can illustrate the use of Hints?

@Winston-503 Winston-503 merged commit 4a7aef0 into main Feb 21, 2025
2 checks passed
@Winston-503 Winston-503 deleted the feature-improve-examples branch February 21, 2025 20:02
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