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

Add more examples to the SQLite logger docs #493

Open paulpalmieri opened 4 months ago

paulpalmieri commented 4 months ago

Connect to the SQLite database

conn = sqlite3.connect('lavague_logs.db')

Read data from a table into a DataFrame

df = pd.read_sql('SELECT * FROM Logs', conn)


- Add the code to reinflate some columns, such as engine logs:

import ast ast.literal_eval(df.iloc[-1]["engine_log"])



- export of screenshots did not work, find out how to make it work and add to docs. we may need to first convert to something like byte array before logging to the DB