inferencesh 0.2.28__py3-none-any.whl → 0.2.29__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.
Potentially problematic release.
This version of inferencesh might be problematic. Click here for more details.
- inferencesh/models/llm.py +14 -0
- {inferencesh-0.2.28.dist-info → inferencesh-0.2.29.dist-info}/METADATA +1 -1
- {inferencesh-0.2.28.dist-info → inferencesh-0.2.29.dist-info}/RECORD +7 -7
- {inferencesh-0.2.28.dist-info → inferencesh-0.2.29.dist-info}/WHEEL +0 -0
- {inferencesh-0.2.28.dist-info → inferencesh-0.2.29.dist-info}/entry_points.txt +0 -0
- {inferencesh-0.2.28.dist-info → inferencesh-0.2.29.dist-info}/licenses/LICENSE +0 -0
- {inferencesh-0.2.28.dist-info → inferencesh-0.2.29.dist-info}/top_level.txt +0 -0
inferencesh/models/llm.py
CHANGED
|
@@ -121,6 +121,20 @@ 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
139
|
class LLMOutput(BaseLLMOutput, LLMUsageMixin):
|
|
126
140
|
"""Default LLM output model with token usage tracking."""
|
|
@@ -2,13 +2,13 @@ inferencesh/__init__.py,sha256=WdADtOhfa3HDOunoE9HLFCTFlXRykYstBIH1FpyWvj8,613
|
|
|
2
2
|
inferencesh/models/__init__.py,sha256=FDwcdtT6c4hbRitymjmN-hZMlQa8RbKSftkZZyjtUXA,536
|
|
3
3
|
inferencesh/models/base.py,sha256=4gZQRi8J7y9U6PrGD9pRIehd1MJVJAqGakPQDs2AKFM,3251
|
|
4
4
|
inferencesh/models/file.py,sha256=5xnpypcRahM1YcEjj64rv9g2gTimxrZb41YT4r440hU,7393
|
|
5
|
-
inferencesh/models/llm.py,sha256=
|
|
5
|
+
inferencesh/models/llm.py,sha256=5n8Et3tlR7zP_xp53_eIrYfHJmu_izzmq2gdYWI2OEI,26237
|
|
6
6
|
inferencesh/utils/__init__.py,sha256=-xiD6uo2XzcrPAWFb_fUbaimmnW4KFKc-8IvBzaxNd4,148
|
|
7
7
|
inferencesh/utils/download.py,sha256=7n5twvoNYDcFnKJyefImaj2YfzRI7vddQw4usZbj38c,1521
|
|
8
8
|
inferencesh/utils/storage.py,sha256=E4J8emd4eFKdmdDgAqzz3TpaaDd3n0l8gYlMHuY8yIU,519
|
|
9
|
-
inferencesh-0.2.
|
|
10
|
-
inferencesh-0.2.
|
|
11
|
-
inferencesh-0.2.
|
|
12
|
-
inferencesh-0.2.
|
|
13
|
-
inferencesh-0.2.
|
|
14
|
-
inferencesh-0.2.
|
|
9
|
+
inferencesh-0.2.29.dist-info/licenses/LICENSE,sha256=OsgqEWIh2el_QMj0y8O1A5Q5Dl-dxqqYbFE6fszuR4s,1086
|
|
10
|
+
inferencesh-0.2.29.dist-info/METADATA,sha256=ewvKXvsyF1Q1Ghm3Fdki4lS6-oZAfzv2VTQlNQbfUNE,2757
|
|
11
|
+
inferencesh-0.2.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
inferencesh-0.2.29.dist-info/entry_points.txt,sha256=6IC-fyozAqW3ljsMLGCXxJ0_ui2Jb-2fLHtoH1RTnEE,45
|
|
13
|
+
inferencesh-0.2.29.dist-info/top_level.txt,sha256=TSMHg3T1ThMl1HGAWmzBClwOYH1ump5neof9BfHIwaA,12
|
|
14
|
+
inferencesh-0.2.29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|