File size: 1,117 Bytes
246d201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from enum import Enum


class AgentState(str, Enum):
    LOADING = 'loading'
    """The agent is loading.

    """

    INIT = 'init'
    """The agent is initialized.

    """

    RUNNING = 'running'
    """The agent is running.

    """

    AWAITING_USER_INPUT = 'awaiting_user_input'
    """The agent is awaiting user input.

    """

    PAUSED = 'paused'
    """The agent is paused.

    """

    STOPPED = 'stopped'
    """The agent is stopped.

    """

    FINISHED = 'finished'
    """The agent is finished with the current task.

    """

    REJECTED = 'rejected'
    """The agent rejects the task.

    """

    ERROR = 'error'
    """An error occurred during the task.

    """

    AWAITING_USER_CONFIRMATION = 'awaiting_user_confirmation'
    """The agent is awaiting user confirmation.

    """

    USER_CONFIRMED = 'user_confirmed'
    """The user confirmed the agent's action.

    """

    USER_REJECTED = 'user_rejected'
    """The user rejected the agent's action.

    """

    RATE_LIMITED = 'rate_limited'
    """The agent is rate limited.

    """