SDK Python
https://x.com/LumiTeh / https://www.lumiteh.com/ / https://github.com/LumiTeh-hub
Overview
Quickstart
1
pip install --upgrade lumiteh-sdk2
export LUMITEH_API_KEY=3
import os
from lumiteh_sdk import LumiTehClient
lumiteh = LumiTehClient(api_key=os.getenv("LUMITEH_API_KEY"))
with lumiteh.Session() as session:
agent = lumiteh.Agent(session=session, max_steps=5)
response = agent.run(
task="Find the latest job openings on lumiteh.io",
)Explore what the LumiTeh Python SDK can do for you
from lumiteh_sdk import LumiTehClient
lumiteh = LumiTehClient()
with lumiteh.Session() as session:
agent = lumiteh.Agent(session=session, max_steps=10)
response = agent.run(task="Find the best Italian restaurant in SF and book a table for 2 at 7pm today")
print(f"Agent terminated with status: {response.success} and answer: {response.answer}")
from lumiteh_sdk import LumiTehClientlumiteh = LumiTehClient()
with lumiteh.Session() as session:
_ = session.observe(url="https://duckduckgo.com")
# Save the replay to a file
replay = session.replay()
replay.save("replay.webp")Manage your browser sessions
from lumiteh_sdk import LumiTehClient
lumiteh = LumiTehClient()
# The session is automatically stopped when the context manager is exited
with lumiteh.Session(timeout_minutes=2) as session:
status = session.status()
print(status)
from lumiteh_sdk import LumiTehClient
lumiteh = LumiTehClient()
# list only active sessions
sessions = lumiteh.sessions.list()
# list all sessions
sessions = lumiteh.sessions.list(only_active=False)
How to get visual insights about your sessions & agents
Last updated