Interface Agent: Addressing Tasks by Controlling Interfaces
Written as part of the book "Multi-Agent Systems with AutoGen" by Victor Dibia.
Interface Agent package demonstrates how to build an agent that can accomplish tasks by driving interfaces (web browser). It combines the capabilities of large language models with web browsing to accomplish complex tasks autonomously.
Installation
pip install interfaceagent
Or install the latest version from the source code:
cd interfaceagent
pip install -e .
Components
- WebBrowser: A wrapper around Playwright for browser control
- WebBrowserManager: Manages multiple browser sessions
- Planner: Uses OpenAI models to plan and execute tasks
- Web Api: Provides a RESTful API to interact with the agent based on FastAPI
Usage
from interfaceagent import WebBrowser, Planner , OpenAIPlannerModel
browser = WebBrowser(start_url="http://google.com/",headless=False)
model = OpenAIPlannerModel(model="gpt-4o-mini-2024-07-18")
task = "What is the website for the Manning Book - Multi-Agent Systems with AutoGen. Navigate to the book website and find the author of the book."
planner = Planner(model=model, web_browser=browser, task=task)
result = await planner.run(task=task)
Metadata
Release files for interfaceagent 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| interfaceagent-0.0.1.tar.gz | 13.6 kB | Without provenance | Details for interfaceagent-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| interfaceagent-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for interfaceagent-0.0.1-py3-none-any.whl |
Total release size: 28.7 kB
Release files / interfaceagent-0.0.1.tar.gz
| Download URL | interfaceagent-0.0.1.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60890283a0a7cbde8a6fe78ab2df781c6eb53320dc8d9d85f0b97c9e9d5c997a
|
|
BLAKE2b-256 checksum How to use checksums |
d9bb809a0fc05c92786d004e76df2c02780e21baaa0fdcede9322a56edba660b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / interfaceagent-0.0.1-py3-none-any.whl
| Download URL | interfaceagent-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bf59382b22d83b933c91b5f6d7e7e622300c80c0c1009c003080e7495778c63
|
|
BLAKE2b-256 checksum How to use checksums |
45f55f24cbd2064f0dc4e76e3e30290a972895520ad121a6563b96968410dee3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for interfaceagent 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.