Coverage for src/appl/core/types/custom.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2024-11-22 15:39 -0800

1from enum import Enum 

2 

3 

4class ResponseType(str, Enum): 

5 """The type of generation response.""" 

6 

7 TEXT = "text" 

8 """A text completion.""" 

9 TOOL_CALL = "tool_calls" 

10 """A list of tool calls.""" 

11 OBJECT = "obj" 

12 """An instance of a response model.""" 

13 IMAGE = "image" 

14 """An image.""" 

15 UNFINISHED = "unfinished" 

16 """The response is not finished."""