We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b019bf commit c168e1cCopy full SHA for c168e1c
src/inferencesh/models/llm.py
@@ -121,6 +121,20 @@ class LLMUsageMixin(BaseModel):
121
default=None
122
)
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
136
137
138
# Example of how to use:
139
class LLMOutput(BaseLLMOutput, LLMUsageMixin):
140
"""Default LLM output model with token usage tracking."""
0 commit comments