Seamlessly Integrating AI with the Web
Project description
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.
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 📕.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f962f228c5dbc4be025a3c19e28a402081b0f3fbe320cc955b4d49e87fa34cdd
|
|
| MD5 |
364481138fb14cce4fdcbea56d921770
|
|
| BLAKE2b-256 |
912062e6899c2a6969f5e5d5b9f3b1f80f2273804d13b76e69d7873cd0c11cf8
|
File details
Details for the file agent_lens_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agent_lens_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 65.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb51af4ee6f82ceb27ae04d7c4b1d3f77a680f9d238c72e5df2c075adb573477
|
|
| MD5 |
87d0285cfdb6690f4c4c2b58986e168d
|
|
| BLAKE2b-256 |
d552c7735ce4300b78f9ec99396b9a71ced18261b1eb8782cf661a3654f36cac
|