unique_toolkit 0.7.29__tar.gz → 0.7.30__tar.gz

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.
Files changed (69) hide show
  1. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/CHANGELOG.md +2 -4
  2. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/PKG-INFO +3 -5
  3. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/pyproject.toml +1 -1
  4. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/infos.py +80 -0
  5. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/LICENSE +0 -0
  6. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/README.md +0 -0
  7. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/__init__.py +0 -0
  8. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/_common/_base_service.py +0 -0
  9. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/_common/_time_utils.py +0 -0
  10. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/_common/exception.py +0 -0
  11. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/_common/validate_required_values.py +0 -0
  12. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/_common/validators.py +0 -0
  13. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/app/__init__.py +0 -0
  14. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/app/init_logging.py +0 -0
  15. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/app/init_sdk.py +0 -0
  16. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/app/performance/async_tasks.py +0 -0
  17. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  18. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/app/schemas.py +0 -0
  19. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/app/verification.py +0 -0
  20. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/chat/__init__.py +0 -0
  21. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/chat/constants.py +0 -0
  22. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/chat/functions.py +0 -0
  23. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/chat/schemas.py +0 -0
  24. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/chat/service.py +0 -0
  25. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/chat/state.py +0 -0
  26. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/chat/utils.py +0 -0
  27. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/content/__init__.py +0 -0
  28. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/content/constants.py +0 -0
  29. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/content/functions.py +0 -0
  30. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/content/schemas.py +0 -0
  31. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/content/service.py +0 -0
  32. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/content/utils.py +0 -0
  33. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/embedding/__init__.py +0 -0
  34. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/embedding/constants.py +0 -0
  35. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/embedding/functions.py +0 -0
  36. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/embedding/schemas.py +0 -0
  37. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/embedding/service.py +0 -0
  38. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/embedding/utils.py +0 -0
  39. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/__init__.py +0 -0
  40. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/config.py +0 -0
  41. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/constants.py +0 -0
  42. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/context_relevancy/constants.py +0 -0
  43. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/context_relevancy/prompts.py +0 -0
  44. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/context_relevancy/service.py +0 -0
  45. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/context_relevancy/utils.py +0 -0
  46. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/exception.py +0 -0
  47. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/hallucination/constants.py +0 -0
  48. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/hallucination/prompts.py +0 -0
  49. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/hallucination/service.py +0 -0
  50. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/hallucination/utils.py +0 -0
  51. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/output_parser.py +0 -0
  52. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/evaluators/schemas.py +0 -0
  53. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/__init__.py +0 -0
  54. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/builder.py +0 -0
  55. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/constants.py +0 -0
  56. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/functions.py +0 -0
  57. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/prompt.py +0 -0
  58. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/reference.py +0 -0
  59. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/schemas.py +0 -0
  60. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/service.py +0 -0
  61. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/language_model/utils.py +0 -0
  62. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/protocols/support.py +0 -0
  63. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/short_term_memory/__init__.py +0 -0
  64. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/short_term_memory/constants.py +0 -0
  65. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/short_term_memory/functions.py +0 -0
  66. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/short_term_memory/schemas.py +0 -0
  67. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/short_term_memory/service.py +0 -0
  68. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/smart_rules/__init__.py +0 -0
  69. {unique_toolkit-0.7.29 → unique_toolkit-0.7.30}/unique_toolkit/smart_rules/compile.py +0 -0
@@ -5,14 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
-
8
+ ## [0.7.30] - 2025-06-20
9
+ - Adding litellm models `litellm:gemini-2-5-flash`, `gemini-2-5-flash-lite-preview-06-17`, `litellm:gemini-2-5-pro`, `litellm:gemini-2-5-pro-preview-06-05`
9
10
 
10
11
  ## [0.7.29] - 2025-06-19
11
12
  - Fix typehintin in services
12
13
  - Error on invalid initialization
13
14
 
14
- #
15
-
16
15
  ## [0.7.28] - 2025-06-17
17
16
  - Revert default factory change on `ChatEventPayload` for attribute `metadata_filter` due to error in `backend-ingestion` on empty dict
18
17
 
@@ -20,7 +19,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
19
  - Introduce a protocol for `complete_with_references` to enable testable services
21
20
  - Rename/Create functions `stream_complete` in chat service and llm service accordingly
22
21
 
23
-
24
22
  ## [0.7.26] - 2025-06-05
25
23
  - Add `scope_rules` to `ChatEventPayload`
26
24
  - Added `UniqueQL` compiler and pydantic classes for `UniqueQL`. Note this is functionally equivalent but not identical to `UQLOperator` or `UQLCombinator` in `unique_sdk`.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.7.29
3
+ Version: 0.7.30
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -111,14 +111,13 @@ All notable changes to this project will be documented in this file.
111
111
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
112
112
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
113
113
 
114
-
114
+ ## [0.7.30] - 2025-06-20
115
+ - Adding litellm models `litellm:gemini-2-5-flash`, `gemini-2-5-flash-lite-preview-06-17`, `litellm:gemini-2-5-pro`, `litellm:gemini-2-5-pro-preview-06-05`
115
116
 
116
117
  ## [0.7.29] - 2025-06-19
117
118
  - Fix typehintin in services
118
119
  - Error on invalid initialization
119
120
 
120
- #
121
-
122
121
  ## [0.7.28] - 2025-06-17
123
122
  - Revert default factory change on `ChatEventPayload` for attribute `metadata_filter` due to error in `backend-ingestion` on empty dict
124
123
 
@@ -126,7 +125,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
126
125
  - Introduce a protocol for `complete_with_references` to enable testable services
127
126
  - Rename/Create functions `stream_complete` in chat service and llm service accordingly
128
127
 
129
-
130
128
  ## [0.7.26] - 2025-06-05
131
129
  - Add `scope_rules` to `ChatEventPayload`
132
130
  - Added `UniqueQL` compiler and pydantic classes for `UniqueQL`. Note this is functionally equivalent but not identical to `UQLOperator` or `UQLCombinator` in `unique_sdk`.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.7.29"
3
+ version = "0.7.30"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -34,9 +34,13 @@ class LanguageModelName(StrEnum):
34
34
  ANTHROPIC_CLAUDE_SONNET_4 = "litellm:anthropic-claude-sonnet-4"
35
35
  ANTHROPIC_CLAUDE_OPUS_4 = "litellm:anthropic-claude-opus-4"
36
36
  GEMINI_2_0_FLASH = "litellm:gemini-2-0-flash"
37
+ GEMINI_2_5_FLASH = "litellm:gemini-2-5-flash"
38
+ GEMINI_2_5_FLASH_LITE_PREVIEW_0617 = "litellm:gemini-2-5-flash-lite-preview-06-17"
37
39
  GEMINI_2_5_FLASH_PREVIEW_0417 = "litellm:gemini-2-5-flash-preview-04-17"
38
40
  GEMINI_2_5_FLASH_PREVIEW_0520 = "litellm:gemini-2-5-flash-preview-05-20"
41
+ GEMINI_2_5_PRO = "litellm:gemini-2-5-pro"
39
42
  GEMINI_2_5_PRO_EXP_0325 = "litellm:gemini-2-5-pro-exp-03-25"
43
+ GEMINI_2_5_PRO_PREVIEW_0605 = "litellm:gemini-2-5-pro-preview-06-05"
40
44
 
41
45
 
42
46
  class EncoderName(StrEnum):
@@ -506,6 +510,44 @@ class LanguageModelInfo(BaseModel):
506
510
  info_cutoff_at=date(2024, 8, 1),
507
511
  published_at=date(2025, 2, 1),
508
512
  )
513
+ case LanguageModelName.GEMINI_2_5_FLASH:
514
+ return cls(
515
+ name=model_name,
516
+ capabilities=[
517
+ ModelCapabilities.FUNCTION_CALLING,
518
+ ModelCapabilities.STREAMING,
519
+ ModelCapabilities.VISION,
520
+ ModelCapabilities.STRUCTURED_OUTPUT,
521
+ ModelCapabilities.REASONING,
522
+ ],
523
+ provider=LanguageModelProvider.LITELLM,
524
+ version="gemini-2-5-flash",
525
+ encoder_name=EncoderName.O200K_BASE, # TODO:Replace with LLM tokenizer
526
+ token_limits=LanguageModelTokenLimits(
527
+ token_limit_input=1_048_576, token_limit_output=65_536
528
+ ),
529
+ info_cutoff_at=date(2025, 1, day=1),
530
+ published_at=date(2025, 4, 1),
531
+ )
532
+ case LanguageModelName.GEMINI_2_5_FLASH_LITE_PREVIEW_0617:
533
+ return cls(
534
+ name=model_name,
535
+ capabilities=[
536
+ ModelCapabilities.FUNCTION_CALLING,
537
+ ModelCapabilities.STREAMING,
538
+ ModelCapabilities.VISION,
539
+ ModelCapabilities.STRUCTURED_OUTPUT,
540
+ ModelCapabilities.REASONING,
541
+ ],
542
+ provider=LanguageModelProvider.LITELLM,
543
+ version="gemini-2-5-flash-lite-preview-06-17",
544
+ encoder_name=EncoderName.O200K_BASE, # TODO:Replace with LLM tokenizer
545
+ token_limits=LanguageModelTokenLimits(
546
+ token_limit_input=1_000_000, token_limit_output=64_000
547
+ ),
548
+ info_cutoff_at=date(2025, 1, day=1),
549
+ published_at=date(2025, 6, 17),
550
+ )
509
551
  case LanguageModelName.GEMINI_2_5_FLASH_PREVIEW_0417:
510
552
  return cls(
511
553
  name=model_name,
@@ -544,6 +586,25 @@ class LanguageModelInfo(BaseModel):
544
586
  info_cutoff_at=date(2025, 1, day=1),
545
587
  published_at=date(2025, 4, 1),
546
588
  )
589
+ case LanguageModelName.GEMINI_2_5_PRO:
590
+ return cls(
591
+ name=model_name,
592
+ capabilities=[
593
+ ModelCapabilities.FUNCTION_CALLING,
594
+ ModelCapabilities.STREAMING,
595
+ ModelCapabilities.VISION,
596
+ ModelCapabilities.STRUCTURED_OUTPUT,
597
+ ModelCapabilities.REASONING,
598
+ ],
599
+ provider=LanguageModelProvider.LITELLM,
600
+ version="gemini-2-5-pro",
601
+ encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
602
+ token_limits=LanguageModelTokenLimits(
603
+ token_limit_input=1_048_576, token_limit_output=65_536
604
+ ),
605
+ info_cutoff_at=date(2025, 1, day=1),
606
+ published_at=date(2025, 6, 17),
607
+ )
547
608
  case LanguageModelName.GEMINI_2_5_PRO_EXP_0325:
548
609
  return cls(
549
610
  name=model_name,
@@ -563,6 +624,25 @@ class LanguageModelInfo(BaseModel):
563
624
  info_cutoff_at=date(2025, 1, day=1),
564
625
  published_at=date(2025, 3, 1),
565
626
  )
627
+ case LanguageModelName.GEMINI_2_5_PRO_PREVIEW_0605:
628
+ return cls(
629
+ name=model_name,
630
+ capabilities=[
631
+ ModelCapabilities.FUNCTION_CALLING,
632
+ ModelCapabilities.STREAMING,
633
+ ModelCapabilities.VISION,
634
+ ModelCapabilities.STRUCTURED_OUTPUT,
635
+ ModelCapabilities.REASONING,
636
+ ],
637
+ provider=LanguageModelProvider.LITELLM,
638
+ version="gemini-2-5-pro-preview-06-05",
639
+ encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
640
+ token_limits=LanguageModelTokenLimits(
641
+ token_limit_input=1_048_576, token_limit_output=65_536
642
+ ),
643
+ info_cutoff_at=date(2025, 1, day=1),
644
+ published_at=date(2025, 6, 5),
645
+ )
566
646
  case _:
567
647
  if isinstance(model_name, LanguageModelName):
568
648
  raise ValueError(
File without changes