h2o-lightwave 1.4.0__py3-none-any.whl → 1.5.1__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.
h2o_lightwave/types.py CHANGED
@@ -8467,6 +8467,7 @@ class ChatbotCard:
8467
8467
  generating: Optional[bool] = None,
8468
8468
  suggestions: Optional[List[ChatSuggestion]] = None,
8469
8469
  disabled: Optional[bool] = None,
8470
+ value: Optional[str] = None,
8470
8471
  commands: Optional[List[Command]] = None,
8471
8472
  ):
8472
8473
  _guard_scalar('ChatbotCard.box', box, (str,), False, False, False)
@@ -8476,6 +8477,7 @@ class ChatbotCard:
8476
8477
  _guard_scalar('ChatbotCard.generating', generating, (bool,), False, True, False)
8477
8478
  _guard_vector('ChatbotCard.suggestions', suggestions, (ChatSuggestion,), False, True, False)
8478
8479
  _guard_scalar('ChatbotCard.disabled', disabled, (bool,), False, True, False)
8480
+ _guard_scalar('ChatbotCard.value', value, (str,), False, True, False)
8479
8481
  _guard_vector('ChatbotCard.commands', commands, (Command,), False, True, False)
8480
8482
  self.box = box
8481
8483
  """A string indicating how to place this component on the page."""
@@ -8493,6 +8495,8 @@ class ChatbotCard:
8493
8495
  """Clickable prompt suggestions shown below the last response."""
8494
8496
  self.disabled = disabled
8495
8497
  """True if the user input should be disabled."""
8498
+ self.value = value
8499
+ """Value of the user input."""
8496
8500
  self.commands = commands
8497
8501
  """Contextual menu commands for this component."""
8498
8502
 
@@ -8505,6 +8509,7 @@ class ChatbotCard:
8505
8509
  _guard_scalar('ChatbotCard.generating', self.generating, (bool,), False, True, False)
8506
8510
  _guard_vector('ChatbotCard.suggestions', self.suggestions, (ChatSuggestion,), False, True, False)
8507
8511
  _guard_scalar('ChatbotCard.disabled', self.disabled, (bool,), False, True, False)
8512
+ _guard_scalar('ChatbotCard.value', self.value, (str,), False, True, False)
8508
8513
  _guard_vector('ChatbotCard.commands', self.commands, (Command,), False, True, False)
8509
8514
  return _dump(
8510
8515
  view='chatbot',
@@ -8516,6 +8521,7 @@ class ChatbotCard:
8516
8521
  generating=self.generating,
8517
8522
  suggestions=None if self.suggestions is None else [__e.dump() for __e in self.suggestions],
8518
8523
  disabled=self.disabled,
8524
+ value=self.value,
8519
8525
  commands=None if self.commands is None else [__e.dump() for __e in self.commands],
8520
8526
  )
8521
8527
 
@@ -8537,6 +8543,8 @@ class ChatbotCard:
8537
8543
  _guard_vector('ChatbotCard.suggestions', __d_suggestions, (dict,), False, True, False)
8538
8544
  __d_disabled: Any = __d.get('disabled')
8539
8545
  _guard_scalar('ChatbotCard.disabled', __d_disabled, (bool,), False, True, False)
8546
+ __d_value: Any = __d.get('value')
8547
+ _guard_scalar('ChatbotCard.value', __d_value, (str,), False, True, False)
8540
8548
  __d_commands: Any = __d.get('commands')
8541
8549
  _guard_vector('ChatbotCard.commands', __d_commands, (dict,), False, True, False)
8542
8550
  box: str = __d_box
@@ -8547,6 +8555,7 @@ class ChatbotCard:
8547
8555
  generating: Optional[bool] = __d_generating
8548
8556
  suggestions: Optional[List[ChatSuggestion]] = None if __d_suggestions is None else [ChatSuggestion.load(__e) for __e in __d_suggestions]
8549
8557
  disabled: Optional[bool] = __d_disabled
8558
+ value: Optional[str] = __d_value
8550
8559
  commands: Optional[List[Command]] = None if __d_commands is None else [Command.load(__e) for __e in __d_commands]
8551
8560
  return ChatbotCard(
8552
8561
  box,
@@ -8557,6 +8566,7 @@ class ChatbotCard:
8557
8566
  generating,
8558
8567
  suggestions,
8559
8568
  disabled,
8569
+ value,
8560
8570
  commands,
8561
8571
  )
8562
8572
 
h2o_lightwave/ui.py CHANGED
@@ -2938,6 +2938,7 @@ def chatbot_card(
2938
2938
  generating: Optional[bool] = None,
2939
2939
  suggestions: Optional[List[ChatSuggestion]] = None,
2940
2940
  disabled: Optional[bool] = None,
2941
+ value: Optional[str] = None,
2941
2942
  commands: Optional[List[Command]] = None,
2942
2943
  ) -> ChatbotCard:
2943
2944
  """Create a chatbot card to allow getting prompts from users and providing them with LLM generated answers.
@@ -2951,6 +2952,7 @@ def chatbot_card(
2951
2952
  generating: True to show a button to stop the text generation. Defaults to False.
2952
2953
  suggestions: Clickable prompt suggestions shown below the last response.
2953
2954
  disabled: True if the user input should be disabled.
2955
+ value: Value of the user input.
2954
2956
  commands: Contextual menu commands for this component.
2955
2957
  Returns:
2956
2958
  A `h2o_wave.types.ChatbotCard` instance.
@@ -2964,6 +2966,7 @@ def chatbot_card(
2964
2966
  generating,
2965
2967
  suggestions,
2966
2968
  disabled,
2969
+ value,
2967
2970
  commands,
2968
2971
  )
2969
2972
 
h2o_lightwave/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '1.4.0'
1
+ __version__ = '1.5.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: h2o_lightwave
3
- Version: 1.4.0
3
+ Version: 1.5.1
4
4
  Summary: H2O Wave Python driver for integration with arbitrary python web frameworks.
5
5
  Project-URL: Homepage, https://wave.h2o.ai/
6
6
  Project-URL: Documentation, https://wave.h2o.ai/
@@ -26,7 +26,7 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
26
26
  Classifier: Topic :: Software Development :: Widget Sets
27
27
  Requires-Python: >=3.8
28
28
  Provides-Extra: web
29
- Requires-Dist: h2o-lightwave-web==1.4.0; extra == 'web'
29
+ Requires-Dist: h2o-lightwave-web==1.5.1; extra == 'web'
30
30
  Description-Content-Type: text/markdown
31
31
 
32
32
  # H2O Lightwave
@@ -4,11 +4,11 @@ h2o_lightwave/graphics.py,sha256=HLYrX-lwsMKbyLmy2ClG5L46DA2_hSCEPTsv0gPVoyg,258
4
4
  h2o_lightwave/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  h2o_lightwave/routing.py,sha256=de8GVfUAb6bwFXtsWj6NXmjMVGELknlZb03F-R4ManY,10592
6
6
  h2o_lightwave/server.py,sha256=5O55D6LHbX7Xw9mfMhe6ZxHH-fJpOetc5WKQJtDtySU,3850
7
- h2o_lightwave/types.py,sha256=BJ0fQaay4OydjNtgdfhfBV7OeIVcIf-C5tVvJ7C0b8Y,659661
8
- h2o_lightwave/ui.py,sha256=oAeKO5Ec128Eo9s4Mtdv1E0QgQv2_O2pRkQ3Sb8oBe8,172281
7
+ h2o_lightwave/types.py,sha256=9aW8RCgA4I8Euddm_20UxMm8JsQJVebIOs9TLcck0fM,660143
8
+ h2o_lightwave/ui.py,sha256=SFGRSfR_TWSLVRnIqKBxNqqHg4gcpXcRwM2JZwmxZbw,172373
9
9
  h2o_lightwave/ui_ext.py,sha256=zx_2Ec2-p_ztm8brfVaVF0fTQWVDrb_YxcGfVb-wA10,2325
10
- h2o_lightwave/version.py,sha256=EyMGX1ADFzN6XVXHWbJUtKPONYKeFkvWoKIFPDDB2I8,22
11
- h2o_lightwave-1.4.0.dist-info/METADATA,sha256=ENOtnrcoX1hqUum7UuIdlk3kkSomzppubF_GLTa-1o8,6323
12
- h2o_lightwave-1.4.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
13
- h2o_lightwave-1.4.0.dist-info/licenses/LICENSE,sha256=hpuFayniDwysSKD0tHGELH2KJDVyhUrKS29torRIpqY,53
14
- h2o_lightwave-1.4.0.dist-info/RECORD,,
10
+ h2o_lightwave/version.py,sha256=cXu5Qklt-TkM22YbYOO8jfr6COB8p2hFc2AtZc9K1Ns,22
11
+ h2o_lightwave-1.5.1.dist-info/METADATA,sha256=89YKJMU-TMK9viHMLkhMW5p-fbaWXj7MVR78QSVDT6I,6323
12
+ h2o_lightwave-1.5.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
13
+ h2o_lightwave-1.5.1.dist-info/licenses/LICENSE,sha256=hpuFayniDwysSKD0tHGELH2KJDVyhUrKS29torRIpqY,53
14
+ h2o_lightwave-1.5.1.dist-info/RECORD,,