Cycls SDK
Project description
pip install cycls
Apps ✦
Instantly publish and share AI apps
from cycls import Cycls
cycls = Cycls()
@cycls("@spark") # pick a unique handle name
def app(x):
return x.content + "from spark"
cycls.push()
cycls.push()
will then publish the app @spark-dev
on cycls.com/@spark-dev in development mode. Make sure to pick a unique app name; Cycls maintains a global namespace for handles.
Async Apps
For performance, make the function asynchronous. The following is an async app with message history
and session id
from cycls import Cycls
cycls = Cycls()
@cycls("@spark")
async def app(x):
print(x.history, x.id)
return x.content + "from spark"
cycls.push()
Agents ✧
Call any public app as an agent, see explore
from cycls import Cycls
cycls = Cycls()
@cycls("@spark")
async def app(x):
return cycls.call("@groq",
x.content)
cycls.push()
Try it live
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
cycls-0.0.2.23.tar.gz
(5.1 kB
view hashes)