The Agent Object
Thecycls.Agent()
is the main class that holds all configuration for your AI agent. It manages dependencies, authentication, deployment settings, and the overall behavior of your agent.
Initialization
Create an agent by initializing thecycls.Agent()
class:
Parameters
Example Configuration
The @agent Decorator
The@agent()
decorator registers your function as an agent and configures its behavior:
Decorator Parameters
UI Customization Example
Run or Push the Agent
Local Development
Useagent.run()
to start a local development server:
- Hot-reloading for rapid development
- Web UI at
http://127.0.0.1:port
- Real-time debugging and testing
Cloud Deployment
Useagent.push()
to deploy your agent to the cloud:
Subscribe to the Professional Plan to get your deployment keys and start deploying your agents to production.
- Your agent is packaged into a container with all dependencies
- The container runs on Cycls cloud infrastructure
- Automatic scaling handles traffic spikes
- Global CDN ensures fast response times worldwide
prod=False
):
- Agent runs in development environment
- No public URL generated
- Used for testing and staging
prod=True
):
- Agent deploys to production environment
- Public URL generated (e.g.,
your-agent.cycls.ai
) - Live and accessible to users