Skip to main content
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 agent_lens_core

(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

Metadata

Release files for agent-lens-core 0.1.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 agent-lens-core 0.1.1
File Size Uploaded
agent_lens_core-0.1.1.tar.gz 265.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-lens-core 0.1.1
File Interpreter ABI Platform
agent_lens_core-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 331.0 kB

Release files / agent_lens_core-0.1.1.tar.gz

Download URL agent_lens_core-0.1.1.tar.gz
Size 265.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f962f228c5dbc4be025a3c19e28a402081b0f3fbe320cc955b4d49e87fa34cdd
BLAKE2b-256 checksum
How to use checksums
912062e6899c2a6969f5e5d5b9f3b1f80f2273804d13b76e69d7873cd0c11cf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release files / agent_lens_core-0.1.1-py3-none-any.whl

Download URL agent_lens_core-0.1.1-py3-none-any.whl
Size 65.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb51af4ee6f82ceb27ae04d7c4b1d3f77a680f9d238c72e5df2c075adb573477
BLAKE2b-256 checksum
How to use checksums
d552c7735ce4300b78f9ec99396b9a71ced18261b1eb8782cf661a3654f36cac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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