
1# pip install smooth-py
2from smooth import SmoothClient
3
4smooth_client = SmoothClient(api_key="")
5task = smooth_client.run(
6 "Your task here...",
7 show_cursor=True,
8 experimental_features={
9 "humanize": True
10 },
11)
12
13# Print the live view url
14print(f"Live URL: {task.live_url()}")
15
16# Get the result
17task_result = task.result()
18
19if task_result.status == "done":
20 print(f"Agent response: {task_result.output}")
21else:
22 print(f"There was an error: {task_result.error}")