evokai-client 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- evokai/__init__.py +175 -0
- evokai/_calls.py +614 -0
- evokai/_http.py +276 -0
- evokai/_version.py +1 -0
- evokai/errors.py +186 -0
- evokai/events.py +394 -0
- evokai/models.py +1444 -0
- evokai/py.typed +0 -0
- evokai/server.py +1344 -0
- evokai/session.py +1011 -0
- evokai/sse.py +162 -0
- evokai_client-0.1.0.dist-info/METADATA +370 -0
- evokai_client-0.1.0.dist-info/RECORD +16 -0
- evokai_client-0.1.0.dist-info/WHEEL +4 -0
- evokai_client-0.1.0.dist-info/licenses/LICENSE +202 -0
- evokai_client-0.1.0.dist-info/licenses/NOTICE +7 -0
evokai/__init__.py
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"""Python client for Evokai, the agents runtime.
|
|
2
|
+
|
|
3
|
+
- :class:`EvokaiServer` / :class:`AsyncEvokaiServer`: your backend, with the server key (session
|
|
4
|
+
tokens, server runs, conversations, memories, usage, privacy) and the admin key (``admin``).
|
|
5
|
+
- :class:`EvokaiSession` / :class:`AsyncEvokaiSession`: a session token's API, with chats streamed
|
|
6
|
+
as typed events.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from evokai._version import __version__
|
|
10
|
+
from evokai.errors import (
|
|
11
|
+
EvokaiAuthError,
|
|
12
|
+
EvokaiConflictError,
|
|
13
|
+
EvokaiConnectionError,
|
|
14
|
+
EvokaiError,
|
|
15
|
+
EvokaiNotFoundError,
|
|
16
|
+
EvokaiRateLimitError,
|
|
17
|
+
EvokaiServerError,
|
|
18
|
+
EvokaiValidationError,
|
|
19
|
+
is_expired_conversation,
|
|
20
|
+
)
|
|
21
|
+
from evokai.events import (
|
|
22
|
+
AskEvent,
|
|
23
|
+
ChartEvent,
|
|
24
|
+
ChatResult,
|
|
25
|
+
ConfirmedEvent,
|
|
26
|
+
ConfirmEvent,
|
|
27
|
+
ConnectEvent,
|
|
28
|
+
ConversationDetail,
|
|
29
|
+
ConversationEvent,
|
|
30
|
+
DiagramEvent,
|
|
31
|
+
DoneEvent,
|
|
32
|
+
ErrorEvent,
|
|
33
|
+
Event,
|
|
34
|
+
NavigateEvent,
|
|
35
|
+
RewrittenEvent,
|
|
36
|
+
SayEvent,
|
|
37
|
+
SessionConversation,
|
|
38
|
+
SpeechEvent,
|
|
39
|
+
StoredMessage,
|
|
40
|
+
TextEvent,
|
|
41
|
+
ToolEvent,
|
|
42
|
+
UnknownEvent,
|
|
43
|
+
UsageEvent,
|
|
44
|
+
parse_event,
|
|
45
|
+
)
|
|
46
|
+
from evokai.models import (
|
|
47
|
+
AgentDef,
|
|
48
|
+
AgentSummary,
|
|
49
|
+
Application,
|
|
50
|
+
AppPatch,
|
|
51
|
+
AskRule,
|
|
52
|
+
AskRulesView,
|
|
53
|
+
CapConfig,
|
|
54
|
+
CapPeriod,
|
|
55
|
+
CapsConfig,
|
|
56
|
+
CapShare,
|
|
57
|
+
ConfirmReason,
|
|
58
|
+
Connection,
|
|
59
|
+
ConnectionStarted,
|
|
60
|
+
Consent,
|
|
61
|
+
ConversationSummary,
|
|
62
|
+
EraseResult,
|
|
63
|
+
GrantChange,
|
|
64
|
+
GrantView,
|
|
65
|
+
HistoryMessage,
|
|
66
|
+
LimitKind,
|
|
67
|
+
McpServerBody,
|
|
68
|
+
Memory,
|
|
69
|
+
MemoryConsentResult,
|
|
70
|
+
MemoryFact,
|
|
71
|
+
MemoryKind,
|
|
72
|
+
MemoryList,
|
|
73
|
+
MemoryState,
|
|
74
|
+
PageContext,
|
|
75
|
+
RunAttachment,
|
|
76
|
+
RunMessage,
|
|
77
|
+
RunResult,
|
|
78
|
+
SecurityPolicy,
|
|
79
|
+
SessionInfo,
|
|
80
|
+
SessionToken,
|
|
81
|
+
SkillBody,
|
|
82
|
+
SubjectExport,
|
|
83
|
+
SubjectLimits,
|
|
84
|
+
UsageReport,
|
|
85
|
+
UsageShareReport,
|
|
86
|
+
UsageShares,
|
|
87
|
+
VoiceInfo,
|
|
88
|
+
to_usage_shares,
|
|
89
|
+
)
|
|
90
|
+
from evokai.server import AsyncEvokaiServer, EvokaiServer
|
|
91
|
+
from evokai.session import AsyncChatStream, AsyncEvokaiSession, ChatStream, EvokaiSession
|
|
92
|
+
|
|
93
|
+
__all__ = [
|
|
94
|
+
"AgentDef",
|
|
95
|
+
"AgentSummary",
|
|
96
|
+
"AppPatch",
|
|
97
|
+
"Application",
|
|
98
|
+
"AskEvent",
|
|
99
|
+
"AskRule",
|
|
100
|
+
"AskRulesView",
|
|
101
|
+
"AsyncChatStream",
|
|
102
|
+
"AsyncEvokaiServer",
|
|
103
|
+
"AsyncEvokaiSession",
|
|
104
|
+
"CapConfig",
|
|
105
|
+
"CapPeriod",
|
|
106
|
+
"CapShare",
|
|
107
|
+
"CapsConfig",
|
|
108
|
+
"ChartEvent",
|
|
109
|
+
"ChatResult",
|
|
110
|
+
"ChatStream",
|
|
111
|
+
"ConfirmEvent",
|
|
112
|
+
"ConfirmReason",
|
|
113
|
+
"ConfirmedEvent",
|
|
114
|
+
"ConnectEvent",
|
|
115
|
+
"Connection",
|
|
116
|
+
"ConnectionStarted",
|
|
117
|
+
"Consent",
|
|
118
|
+
"ConversationDetail",
|
|
119
|
+
"ConversationEvent",
|
|
120
|
+
"ConversationSummary",
|
|
121
|
+
"DiagramEvent",
|
|
122
|
+
"DoneEvent",
|
|
123
|
+
"EraseResult",
|
|
124
|
+
"ErrorEvent",
|
|
125
|
+
"Event",
|
|
126
|
+
"EvokaiAuthError",
|
|
127
|
+
"EvokaiConflictError",
|
|
128
|
+
"EvokaiConnectionError",
|
|
129
|
+
"EvokaiError",
|
|
130
|
+
"EvokaiNotFoundError",
|
|
131
|
+
"EvokaiRateLimitError",
|
|
132
|
+
"EvokaiServer",
|
|
133
|
+
"EvokaiServerError",
|
|
134
|
+
"EvokaiSession",
|
|
135
|
+
"EvokaiValidationError",
|
|
136
|
+
"GrantChange",
|
|
137
|
+
"GrantView",
|
|
138
|
+
"HistoryMessage",
|
|
139
|
+
"LimitKind",
|
|
140
|
+
"McpServerBody",
|
|
141
|
+
"Memory",
|
|
142
|
+
"MemoryConsentResult",
|
|
143
|
+
"MemoryFact",
|
|
144
|
+
"MemoryKind",
|
|
145
|
+
"MemoryList",
|
|
146
|
+
"MemoryState",
|
|
147
|
+
"NavigateEvent",
|
|
148
|
+
"PageContext",
|
|
149
|
+
"RewrittenEvent",
|
|
150
|
+
"RunAttachment",
|
|
151
|
+
"RunMessage",
|
|
152
|
+
"RunResult",
|
|
153
|
+
"SayEvent",
|
|
154
|
+
"SecurityPolicy",
|
|
155
|
+
"SessionConversation",
|
|
156
|
+
"SessionInfo",
|
|
157
|
+
"SessionToken",
|
|
158
|
+
"SkillBody",
|
|
159
|
+
"SpeechEvent",
|
|
160
|
+
"StoredMessage",
|
|
161
|
+
"SubjectExport",
|
|
162
|
+
"SubjectLimits",
|
|
163
|
+
"TextEvent",
|
|
164
|
+
"ToolEvent",
|
|
165
|
+
"UnknownEvent",
|
|
166
|
+
"UsageEvent",
|
|
167
|
+
"UsageReport",
|
|
168
|
+
"UsageShareReport",
|
|
169
|
+
"UsageShares",
|
|
170
|
+
"VoiceInfo",
|
|
171
|
+
"__version__",
|
|
172
|
+
"is_expired_conversation",
|
|
173
|
+
"parse_event",
|
|
174
|
+
"to_usage_shares",
|
|
175
|
+
]
|