Skip to main content

Interface Agent: Addressing Tasks by Controlling Interfaces

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interfaceagent-0.0.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

interfaceagent-0.0.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file interfaceagent-0.0.1.tar.gz.

File metadata

  • Download URL: interfaceagent-0.0.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for interfaceagent-0.0.1.tar.gz
Algorithm Hash digest
SHA256 60890283a0a7cbde8a6fe78ab2df781c6eb53320dc8d9d85f0b97c9e9d5c997a
MD5 bf9580e53f8321699da74c5356fcd41a
BLAKE2b-256 d9bb809a0fc05c92786d004e76df2c02780e21baaa0fdcede9322a56edba660b

See more details on using hashes here.

File details

Details for the file interfaceagent-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for interfaceagent-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf59382b22d83b933c91b5f6d7e7e622300c80c0c1009c003080e7495778c63
MD5 f91251d7001c84145993b7e394e11ded
BLAKE2b-256 45f55f24cbd2064f0dc4e76e3e30290a972895520ad121a6563b96968410dee3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page