Getting started
Cycls SDK turns your AI-based code into instant web apps.
Your apps are streamed directly from your infrastructure, giving you full control over your data and deployment. Apps can seamlessly interact with each other, acting as both clients and servers in the network.
With app streaming, you can:
• Turn existing code into instant web apps
• Generate UIs on-the-fly with LLMs
• Allow apps to call and utilize each other
• Integrate with any model, framework, or infrastructure
The streaming architecture radically simplifies and accelerates the development of AI applications. Learn more in what is Cycls?.
Creating an App
In this example, the @spark
app simply echoes the user’s input by accessing message.content
string and returning it back:
The @cycls(handle)
decorator registers the app function with the unique handle @spark
.
cycls.push()
command publishes the app on cycls.com/@spark:dev in development mode.
Asynchronous Apps
For improved performance, the app function can be made asynchronous.
App State
Developing LLM based apps requires session-specific details like session id
, and message history
, which can be accessed as follows:
LLM Example
Here is working implementation of Meta’s open-source llama3-70b
model (running on Groq) as a Cycls app.
Try it live cycls.com/@spark
Visit the cookbook for more examples.
Check out this replit video to publish a chat app in < 60 seconds.