Skip to content

Commit 4c7e9b3

Browse files
committed
added docstring
1 parent 2f861b7 commit 4c7e9b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gpt_function_decorator/gpt_function.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ def wrapper(*args, **kwargs):
137137

138138

139139
def ReasonedAnswer(T) -> pydantic.BaseModel:
140+
"""Return a new type that includes a reasoning string with the result.
141+
142+
The reasoning will be in `myvariable.reasoning`, and the result with the
143+
originally requested type T will be in `myvariable.result`.
144+
"""
145+
140146
class _ReasonedAnswer(pydantic.BaseModel):
141147
reasoning: str
142148
result: T

0 commit comments

Comments
 (0)