lavague-ai / LaVague

Large Action Model framework to develop AI Web Agents
https://docs.lavague.ai/en/latest/
Apache License 2.0
5.49k stars 505 forks source link

Fix/yaml check to handle incorrect handling of numeric values in action YAML #498

Closed dhuynh95 closed 4 months ago

dhuynh95 commented 4 months ago

@adeprez can you check this PR?

It's just some util and extra check to make sure the YAML generated is interpreted as strings and not automatically convert to numbers which makes things crash

adeprez commented 4 months ago

I made a small change to execute the replace_value only when we detect a number pattern instead of any value