inferencesh 0.2.28__tar.gz → 0.2.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.

Potentially problematic release.


This version of inferencesh might be problematic. Click here for more details.

Files changed (21) hide show
  1. {inferencesh-0.2.28/src/inferencesh.egg-info → inferencesh-0.2.30}/PKG-INFO +1 -1
  2. {inferencesh-0.2.28 → inferencesh-0.2.30}/pyproject.toml +1 -1
  3. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/models/llm.py +15 -1
  4. {inferencesh-0.2.28 → inferencesh-0.2.30/src/inferencesh.egg-info}/PKG-INFO +1 -1
  5. {inferencesh-0.2.28 → inferencesh-0.2.30}/LICENSE +0 -0
  6. {inferencesh-0.2.28 → inferencesh-0.2.30}/README.md +0 -0
  7. {inferencesh-0.2.28 → inferencesh-0.2.30}/setup.cfg +0 -0
  8. {inferencesh-0.2.28 → inferencesh-0.2.30}/setup.py +0 -0
  9. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/__init__.py +0 -0
  10. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/models/__init__.py +0 -0
  11. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/models/base.py +0 -0
  12. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/models/file.py +0 -0
  13. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/utils/__init__.py +0 -0
  14. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/utils/download.py +0 -0
  15. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh/utils/storage.py +0 -0
  16. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh.egg-info/SOURCES.txt +0 -0
  17. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh.egg-info/dependency_links.txt +0 -0
  18. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh.egg-info/entry_points.txt +0 -0
  19. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh.egg-info/requires.txt +0 -0
  20. {inferencesh-0.2.28 → inferencesh-0.2.30}/src/inferencesh.egg-info/top_level.txt +0 -0
  21. {inferencesh-0.2.28 → inferencesh-0.2.30}/tests/test_sdk.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inferencesh
3
- Version: 0.2.28
3
+ Version: 0.2.30
4
4
  Summary: inference.sh Python SDK
5
5
  Author: Inference Shell Inc.
6
6
  Author-email: "Inference Shell Inc." <hello@inference.sh>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "inferencesh"
7
- version = "0.2.28"
7
+ version = "0.2.30"
8
8
  description = "inference.sh Python SDK"
9
9
  authors = [
10
10
  {name = "Inference Shell Inc.", email = "hello@inference.sh"},
@@ -121,8 +121,22 @@ class LLMUsageMixin(BaseModel):
121
121
  default=None
122
122
  )
123
123
 
124
+ class ReasoningMixin(BaseModel):
125
+ """Mixin for models that support reasoning."""
126
+ reasoning: Optional[str] = Field(
127
+ description="The reasoning output of the model",
128
+ default=None
129
+ )
130
+
131
+ class ToolCallsMixin(BaseModel):
132
+ """Mixin for models that support tool calls."""
133
+ tool_calls: Optional[List[Dict[str, Any]]] = Field(
134
+ description="Tool calls for function calling",
135
+ default=None
136
+ )
137
+
124
138
  # Example of how to use:
125
- class LLMOutput(BaseLLMOutput, LLMUsageMixin):
139
+ class LLMOutput(LLMUsageMixin, BaseLLMOutput):
126
140
  """Default LLM output model with token usage tracking."""
127
141
  pass
128
142
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inferencesh
3
- Version: 0.2.28
3
+ Version: 0.2.30
4
4
  Summary: inference.sh Python SDK
5
5
  Author: Inference Shell Inc.
6
6
  Author-email: "Inference Shell Inc." <hello@inference.sh>
File without changes
File without changes
File without changes
File without changes