File size: 1,344 Bytes
a12c07f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
class ToolCallException(Exception):
    """
    @GPT4-doc-begin
    raised in tools when the tool usage raised an error
    @GPT4-doc-end
    """
    pass


class GPTOutputParseException(Exception):
    """ 
    @GPT4-doc-begin
    raised in parsers when input is not parseable.
    @GPT4-doc-end
    """
    pass


class GPTServerError(Exception):
    """
    @GPT4-doc-begin
    raised in ask() when GPT api returns an error message
    @GPT4-doc-end
    """
    pass


class GPTMaxTriesExceededException(Exception):
    """ 
    @GPT4-doc-begin
    raised in ask() when max attempt threshold has been exceeded.
    @GPT4-doc-end
    """
    pass

class InvalidParsedAnswer(Exception):
    """ 
    @GPT4-doc-begin
    raised in the visualizer when input ParsedAnswer can't be made into
    a valid visualization.
    @GPT4-doc-end
    """
    pass

class UnreadableGPTDocumentation(Exception):
    """ 
    @GPT4-doc-begin
    raised when the documentation of a specified function cannot be read
    by GPT-4V, either because the documentation doesn't exist or the proper
    tags are not inside it.
    @GPT4-doc-end
    """
    pass


class CodeExecutionException(Exception):
    """
    @GPT4-doc-begin
    raised when the execution of the LLM-produced code results in an error,
    and stops execution.
    @GPT4-doc-end
    """
    pass