hdresearch / nolita

Work with web-enabled agents quickly — whether running a quick task or bootstrapping a full-stack product.
https://nolita.ai
MIT License
79 stars 3 forks source link

Clean up API separation #57

Closed matildepark closed 1 month ago

matildepark commented 2 months ago

With the introduction of the Page class pre-2.0 launch we need to clean up our APIs overall. Our current separation in 1.0 is sort of unintuitive, objective-only, prohibits working with navigation outside the tab context, etc...

By moving toward a Page-centric navigation loop you can map over results from previous sessions, have multiple tabs open in a browser instance. Basically it's more ergonomic, cleanly separated. You can do direct scripting, NLP navigation, and objective-oriented navigation, all centred around our agent.

Our ideal is the following:

Agent

Logger

Browser

Page

AgentBrowser (removed, incorporated into Page)

Subtasks

AlephNotation commented 1 month ago

71