promptbuilder 0.4.24__tar.gz → 0.4.25__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.
- {promptbuilder-0.4.24/promptbuilder.egg-info → promptbuilder-0.4.25}/PKG-INFO +1 -1
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/base_client.py +6 -6
- {promptbuilder-0.4.24 → promptbuilder-0.4.25/promptbuilder.egg-info}/PKG-INFO +1 -1
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/setup.py +1 -1
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/LICENSE +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/MANIFEST.in +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/Readme.md +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/__init__.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/agent/__init__.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/agent/agent.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/agent/context.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/agent/tool.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/agent/utils.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/embeddings.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/__init__.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/aisuite_client.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/anthropic_client.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/bedrock_client.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/config.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/exceptions.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/google_client.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/logfire_decorators.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/main.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/openai_client.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/types.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/utils.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/prompt_builder.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder.egg-info/SOURCES.txt +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder.egg-info/dependency_links.txt +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder.egg-info/requires.txt +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder.egg-info/top_level.txt +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/pyproject.toml +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/setup.cfg +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/tests/test_llm_client.py +0 -0
- {promptbuilder-0.4.24 → promptbuilder-0.4.25}/tests/test_llm_client_async.py +0 -0
|
@@ -74,9 +74,6 @@ class BaseLLMClient(ABC, utils.InheritDecoratorsMixin):
|
|
|
74
74
|
except json.JSONDecodeError as e:
|
|
75
75
|
raise ValueError(f"Failed to parse LLM response as JSON:\n{text}")
|
|
76
76
|
|
|
77
|
-
@logfire_decorators.create
|
|
78
|
-
@utils.retry_cls
|
|
79
|
-
@utils.rpm_limit_cls
|
|
80
77
|
def create(
|
|
81
78
|
self,
|
|
82
79
|
messages: list[Content],
|
|
@@ -124,6 +121,9 @@ class BaseLLMClient(ABC, utils.InheritDecoratorsMixin):
|
|
|
124
121
|
break
|
|
125
122
|
return response
|
|
126
123
|
|
|
124
|
+
@logfire_decorators.create
|
|
125
|
+
@utils.retry_cls
|
|
126
|
+
@utils.rpm_limit_cls
|
|
127
127
|
@abstractmethod
|
|
128
128
|
def _create(
|
|
129
129
|
self,
|
|
@@ -406,9 +406,6 @@ class BaseLLMClientAsync(ABC, utils.InheritDecoratorsMixin):
|
|
|
406
406
|
"""Return the model identifier"""
|
|
407
407
|
return self.provider + ":" + self.model
|
|
408
408
|
|
|
409
|
-
@logfire_decorators.create_async
|
|
410
|
-
@utils.retry_cls_async
|
|
411
|
-
@utils.rpm_limit_cls_async
|
|
412
409
|
async def create(
|
|
413
410
|
self,
|
|
414
411
|
messages: list[Content],
|
|
@@ -456,6 +453,9 @@ class BaseLLMClientAsync(ABC, utils.InheritDecoratorsMixin):
|
|
|
456
453
|
break
|
|
457
454
|
return response
|
|
458
455
|
|
|
456
|
+
@logfire_decorators.create_async
|
|
457
|
+
@utils.retry_cls_async
|
|
458
|
+
@utils.rpm_limit_cls_async
|
|
459
459
|
@abstractmethod
|
|
460
460
|
async def _create(
|
|
461
461
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{promptbuilder-0.4.24 → promptbuilder-0.4.25}/promptbuilder/llm_client/logfire_decorators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|