|
|
|
|
|
by jawerty
682 days ago
|
|
So I'm actually doing web browser automation via llm agents. So prompting to browser automation like "go to this webpage and do this". I have an algorithm for classifying html and then i'm generating "behaviors" to interact with it for each bot. The behaviors the llm generates are actually in a superset language that i parse the ASTs with lark. In the lark parsing the behaviors (like web scraping or element interactions) need to be stopped if the user says to do something else or stop or restart them...and man it's been a pain getting them to stop and clean up in a memory efficient way. Right now starting asyncio coroutines and canceling them are the best way ive found since a lot of this is async (using playwright) |
|