euriai 1.0.8__py3-none-any.whl → 1.0.10__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.
- euriai/__init__.py +1 -1
- euriai/autogen.py +52 -16
- {euriai-1.0.8.dist-info → euriai-1.0.10.dist-info}/METADATA +1 -1
- {euriai-1.0.8.dist-info → euriai-1.0.10.dist-info}/RECORD +7 -7
- {euriai-1.0.8.dist-info → euriai-1.0.10.dist-info}/WHEEL +0 -0
- {euriai-1.0.8.dist-info → euriai-1.0.10.dist-info}/entry_points.txt +0 -0
- {euriai-1.0.8.dist-info → euriai-1.0.10.dist-info}/top_level.txt +0 -0
euriai/__init__.py
CHANGED
euriai/autogen.py
CHANGED
@@ -3,8 +3,14 @@ from types import SimpleNamespace
|
|
3
3
|
from euriai.client import EuriaiClient
|
4
4
|
|
5
5
|
try:
|
6
|
-
|
7
|
-
|
6
|
+
# Try newer AutoGen structure first (v0.6+)
|
7
|
+
try:
|
8
|
+
from autogen_agentchat import AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager
|
9
|
+
import autogen_agentchat as autogen
|
10
|
+
except ImportError:
|
11
|
+
# Fall back to older AutoGen structure
|
12
|
+
import autogen
|
13
|
+
from autogen import AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager
|
8
14
|
except ImportError:
|
9
15
|
autogen = None
|
10
16
|
AssistantAgent = UserProxyAgent = GroupChat = GroupChatManager = None
|
@@ -272,15 +278,20 @@ class EuriaiAutoGen:
|
|
272
278
|
Returns:
|
273
279
|
Configured AssistantAgent
|
274
280
|
"""
|
275
|
-
# Import AutoGen
|
281
|
+
# Import AutoGen AssistantAgent class
|
276
282
|
try:
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
283
|
+
# Try newer AutoGen structure first (v0.6+)
|
284
|
+
try:
|
285
|
+
from autogen_agentchat import AssistantAgent
|
286
|
+
except ImportError:
|
287
|
+
# Fall back to older AutoGen structure
|
288
|
+
from autogen import AssistantAgent
|
281
289
|
except ImportError:
|
282
290
|
from . import check_optional_dependency
|
283
291
|
check_optional_dependency("pyautogen", "AutoGen", "autogen")
|
292
|
+
# This line will never be reached if AutoGen is missing
|
293
|
+
# because check_optional_dependency raises ImportError
|
294
|
+
raise # Re-raise the original ImportError
|
284
295
|
|
285
296
|
# Create config for Euri API
|
286
297
|
config_list = [{
|
@@ -324,15 +335,20 @@ class EuriaiAutoGen:
|
|
324
335
|
Returns:
|
325
336
|
Configured UserProxyAgent
|
326
337
|
"""
|
327
|
-
# Import AutoGen
|
338
|
+
# Import AutoGen UserProxyAgent class
|
328
339
|
try:
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
340
|
+
# Try newer AutoGen structure first (v0.6+)
|
341
|
+
try:
|
342
|
+
from autogen_agentchat import UserProxyAgent
|
343
|
+
except ImportError:
|
344
|
+
# Fall back to older AutoGen structure
|
345
|
+
from autogen import UserProxyAgent
|
333
346
|
except ImportError:
|
334
347
|
from . import check_optional_dependency
|
335
348
|
check_optional_dependency("pyautogen", "AutoGen", "autogen")
|
349
|
+
# This line will never be reached if AutoGen is missing
|
350
|
+
# because check_optional_dependency raises ImportError
|
351
|
+
raise # Re-raise the original ImportError
|
336
352
|
|
337
353
|
agent = UserProxyAgent(
|
338
354
|
name=name,
|
@@ -367,8 +383,18 @@ class EuriaiAutoGen:
|
|
367
383
|
Returns:
|
368
384
|
Configured GroupChat
|
369
385
|
"""
|
370
|
-
#
|
371
|
-
|
386
|
+
# Import AutoGen GroupChat class
|
387
|
+
try:
|
388
|
+
# Try newer AutoGen structure first (v0.6+)
|
389
|
+
try:
|
390
|
+
from autogen_agentchat import GroupChat
|
391
|
+
except ImportError:
|
392
|
+
# Fall back to older AutoGen structure
|
393
|
+
from autogen import GroupChat
|
394
|
+
except ImportError:
|
395
|
+
from . import check_optional_dependency
|
396
|
+
check_optional_dependency("pyautogen", "AutoGen", "autogen")
|
397
|
+
raise # Re-raise the original ImportError
|
372
398
|
|
373
399
|
self.group_chat = GroupChat(
|
374
400
|
agents=agents,
|
@@ -402,8 +428,18 @@ class EuriaiAutoGen:
|
|
402
428
|
Returns:
|
403
429
|
Configured GroupChatManager
|
404
430
|
"""
|
405
|
-
#
|
406
|
-
|
431
|
+
# Import AutoGen GroupChatManager class
|
432
|
+
try:
|
433
|
+
# Try newer AutoGen structure first (v0.6+)
|
434
|
+
try:
|
435
|
+
from autogen_agentchat import GroupChatManager
|
436
|
+
except ImportError:
|
437
|
+
# Fall back to older AutoGen structure
|
438
|
+
from autogen import GroupChatManager
|
439
|
+
except ImportError:
|
440
|
+
from . import check_optional_dependency
|
441
|
+
check_optional_dependency("pyautogen", "AutoGen", "autogen")
|
442
|
+
raise # Re-raise the original ImportError
|
407
443
|
|
408
444
|
# Create config for Euri API
|
409
445
|
config_list = [{
|
@@ -1,5 +1,5 @@
|
|
1
|
-
euriai/__init__.py,sha256=
|
2
|
-
euriai/autogen.py,sha256=
|
1
|
+
euriai/__init__.py,sha256=5lD7G4Zx6YEknj1kCFjZ479HvHvMvNWpDQG0YOdgsc4,6630
|
2
|
+
euriai/autogen.py,sha256=PO3_LfK3sjeOPu4k5YVf7nul9ovtYLq7M4GnQJ_31Ys,20250
|
3
3
|
euriai/cli.py,sha256=hF1wiiL2QQSfWf8WlLQyNVDBd4YkbiwmMSoPxVbyPTM,3290
|
4
4
|
euriai/client.py,sha256=L-o6hv9N3md-l-hz-kz5nYVaaZqnrREZlo_0jguhF7E,4066
|
5
5
|
euriai/crewai.py,sha256=nfMMOOhKiCIc2v42nj2Zf9rP0U5m4GrfK_6zkXL77gw,7594
|
@@ -12,8 +12,8 @@ euriai/langgraph.py,sha256=sw9e-PnfwAwmp_tUCnAGIUB78GyJsMkAzxOGvFUafiM,34128
|
|
12
12
|
euriai/llamaindex.py,sha256=c-ujod2bjL6QIvfAyuIxm1SvSCS00URFElYybKQ5Ew0,26551
|
13
13
|
euriai/n8n.py,sha256=hjkckqyW_hZNL78UkBCof1WvKCKCIjwdvZdAgx6NrB8,3764
|
14
14
|
euriai/smolagents.py,sha256=xlixGx2IWzAPTpSJGsYIK2L-SHGY9Mw1-8GbwVsEYtU,28507
|
15
|
-
euriai-1.0.
|
16
|
-
euriai-1.0.
|
17
|
-
euriai-1.0.
|
18
|
-
euriai-1.0.
|
19
|
-
euriai-1.0.
|
15
|
+
euriai-1.0.10.dist-info/METADATA,sha256=ZRTlY_AvkACSwfFSx4c_cb9kBGqN6KJP5YdHoiP1B2s,6807
|
16
|
+
euriai-1.0.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
17
|
+
euriai-1.0.10.dist-info/entry_points.txt,sha256=9OkET8KIGcsjQn8UlnpPKRT75s2KW34jq1__1SXtpMA,43
|
18
|
+
euriai-1.0.10.dist-info/top_level.txt,sha256=TG1htJ8cuD62MXn-NJ7DVF21QHY16w6M_QgfF_Er_EQ,7
|
19
|
+
euriai-1.0.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|