MorpheusAIs / Morpheus

Morpheus - A Network For Powering Smart Agents - Compute + Code + Capital + Community
https://mor.org/
MIT License
182 stars 142 forks source link

Eth data validation #603

Closed a1t3g0 closed 6 months ago

a1t3g0 commented 6 months ago

The current Metamask model logic assumes that the LLM JSON response is correct to initiate Metamask transactions.
Data validation is necessary to ensure that the LLM JSON response is correct and valid, because:

  1. Base-model training is done up to a set date i.e. they may not have seen the latest updates to Metamask (or other API specs) and could return methods, format etc. that is no longer supported
  2. Base-model hallucinations can cause a high confidence response of incorrect data.

The following PR is a proposed solution that builds on our existing logic with minimal changes to code base: These include: