cycls 0.0.2.55__py3-none-any.whl → 0.0.2.57__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
cycls/sdk.py CHANGED
@@ -25,11 +25,14 @@ class Agent:
25
25
 
26
26
  self.registered_functions = []
27
27
 
28
- def __call__(self, name=None, header="", intro="", title="", domain=None, auth=False, tier="free"):
28
+ def __call__(self, name=None, header="", intro="", title="", domain=None, auth=False, tier="free", analytics=False):
29
+ if tier=="cycls_pass":
30
+ auth=True
31
+ analytics=True
29
32
  def decorator(f):
30
33
  self.registered_functions.append({
31
34
  "func": f,
32
- "config": ["theme", False, self.org, self.api_token, header, intro, title, auth, tier],
35
+ "config": ["theme", False, self.org, self.api_token, header, intro, title, auth, tier, analytics],
33
36
  # "name": name,
34
37
  "name": name or (f.__name__).replace('_', '-'),
35
38
  "domain": domain or f"{name}.cycls.ai",
@@ -0,0 +1 @@
1
+ .cl-internal-p8bmz4{box-shadow:none!important;border:1px solid rgba(0,0,0,.1);box-shadow:0 1px 2px #0000000d}.cl-drawerRoot{z-index:99!important}.cl-pricingTableCardFooterButton{padding:10px}.cl-pricingTableCardFee{font-size:2rem}.cl-pricingTableCardTitleContainer{margin-bottom:10px}