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