Skip to main content

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

  1. WebBrowser: A wrapper around Playwright for browser control
  2. WebBrowserManager: Manages multiple browser sessions
  3. Planner: Uses OpenAI models to plan and execute tasks
  4. 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)

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)

Source distribution for interfaceagent 0.0.1
File Size Uploaded
interfaceagent-0.0.1.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for interfaceagent 0.0.1
File Interpreter ABI Platform
interfaceagent-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page