Skip to main content

Seamlessly Integrating AI with the Web

Project description

Agent Lens Logo

Documentation Twitter Follow

Make websites accessible for AI agents 🤖.

Agent lens is the easiest way to connect your AI agents with the browser.

To learn more about the library, check out the documentation 📕.

Quick start

With pip:

pip install ag-lens

(optional) install playwright:

playwright install

Spin up your agent:

from langchain_openai import ChatOpenAI
from agent_lens_core import Agent
import asyncio

async def main():
    agent = Agent(
        task="Find a one-way flight from Bali to Oman on 12 January 2025 on Google Flights. Return me the cheapest option.",
        llm=ChatOpenAI(model="gpt-4o"),
    )
    result = await agent.run()
    print(result)

asyncio.run(main())

And don't forget to add your API keys to your .env file.

OPENAI_API_KEY=

For other settings, models, and more, check out the documentation 📕.

Demo

Prompt: Find flights on kayak.com from Zurich to Beijing from 25.12.2024 to 02.02.2025.

flight search 8x 10fps



More examples

For more examples see the examples folder

Contributing

Contributions are welcome! Feel free to open issues for bugs or feature requests.

Local Setup

To learn more about the library, check out the local setup 📕.


Made with ❤️ in Zurich and San Francisco

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

agent_lens_core-0.1.0.tar.gz (265.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_lens_core-0.1.0-py3-none-any.whl (65.1 kB view details)

Uploaded Python 3

File details

Details for the file agent_lens_core-0.1.0.tar.gz.

File metadata

  • Download URL: agent_lens_core-0.1.0.tar.gz
  • Upload date:
  • Size: 265.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for agent_lens_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f68204ba129a2dff7ba91dd01db87f22d7aa1683d7eb99fa7512261ab688397
MD5 38192c0280b92f3913d284116550a069
BLAKE2b-256 a120eccb134d536d211594ffa26a99dab8147ad6c10967bee2105c4f5734fe3a

See more details on using hashes here.

File details

Details for the file agent_lens_core-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_lens_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec3de66271725d9332fdfd698819b6f18132b09595e06eecda4f6b78ae17448
MD5 956d9c630fea61b200b780e74aea75fc
BLAKE2b-256 ff6e685333751d6f5042063a577ecfd5c89477f752365103cdfa0489dde6b9bb

See more details on using hashes here.

Supported by

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