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 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

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.1.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.1-py3-none-any.whl (65.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_lens_core-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f962f228c5dbc4be025a3c19e28a402081b0f3fbe320cc955b4d49e87fa34cdd
MD5 364481138fb14cce4fdcbea56d921770
BLAKE2b-256 912062e6899c2a6969f5e5d5b9f3b1f80f2273804d13b76e69d7873cd0c11cf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_lens_core-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb51af4ee6f82ceb27ae04d7c4b1d3f77a680f9d238c72e5df2c075adb573477
MD5 87d0285cfdb6690f4c4c2b58986e168d
BLAKE2b-256 d552c7735ce4300b78f9ec99396b9a71ced18261b1eb8782cf661a3654f36cac

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