Installation
Cycls SDK turns your code into AI apps with one simple function. Your apps are streamed directly from your infrastructure, giving you full control over your data and deployment.
These apps can also be called as agents within other apps, offering native interoperability.
With streaming, you can:
• Access and share apps online
• Generate intuitive user interfaces
• Call apps as agents within your code
• Use any model, framework, or infrastructure
The streaming approach radically simplifies and accelerates the development cycles of AI apps and agents.
Creating an App
In this example, the app simply responds with the user’s input followed by “from spark”. This is achieved with just one function:
The cycls.push()
command publishes the app @spark:dev
on cycls.com/@spark:dev in development mode. Remember to choose a unique app name, as Cycls maintains a global namespace for handles.
Asynchronous Apps
For improved performance, the function can be made asynchronous.
By using async
, the app can handle requests concurrently, which is crucial for high-demand performance.
App State
Developing AI apps requires session-specific details like session id
and message history
, which can be accessed as follows:
LLM Example
Here is a complete example of Meta’s open-source llama3-70b
LLM model running on Groq as a Cycls app.
Try it live cycls.com/@groq
Visit the cookbook for more examples.
Agents (WIP)
Cycls SDK allows you to call any public app as an agent within your own app. This interoperability expands your app’s capabilities by integrating functionality from other apps. For more apps to explore, see the explore page.
In this example, we’ll create an app that invokes another public app, @groq
: