Skip to content

Commit 57bf1ac

Browse files
committed
response output
1 parent b7419d7 commit 57bf1ac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

models/llama3/api/datatypes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,17 @@ class ToolPromptFormat(Enum):
105105
python_list = "python_list"
106106

107107

108+
class ResponseOutputParser(Enum):
109+
"""Output parser for the response from the model.
110+
111+
:cvar default: Decode response messages and parse tool calls.
112+
:cvar react: Decode response with ReACT prompt and parse tool calls.
113+
"""
114+
115+
default = "default"
116+
react = "react"
117+
118+
108119
class StopReason(Enum):
109120
end_of_turn = "end_of_turn"
110121
end_of_message = "end_of_message"

0 commit comments

Comments
 (0)