euriai 1.0.8__tar.gz → 1.0.10__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: euriai
3
- Version: 1.0.8
3
+ Version: 1.0.10
4
4
  Summary: Python client for Euri API (euron.one) with CLI, LangChain, and LlamaIndex integration
5
5
  Author: Euri
6
6
  Author-email: tech@euron.one
@@ -4,7 +4,7 @@ Euri AI Python SDK
4
4
  A comprehensive Python SDK for the Euri AI API with integrations for popular frameworks.
5
5
  """
6
6
 
7
- __version__ = "1.0.8"
7
+ __version__ = "1.0.10"
8
8
 
9
9
  # Core imports that should always work
10
10
  try:
@@ -3,8 +3,14 @@ from types import SimpleNamespace
3
3
  from euriai.client import EuriaiClient
4
4
 
5
5
  try:
6
- import autogen
7
- from autogen import AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager
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 classes directly to ensure they're available
281
+ # Import AutoGen AssistantAgent class
276
282
  try:
277
- from autogen import AssistantAgent
278
- # Verify the class is not None
279
- if AssistantAgent is None:
280
- raise ImportError("AutoGen AssistantAgent class is None")
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 classes directly to ensure they're available
338
+ # Import AutoGen UserProxyAgent class
328
339
  try:
329
- from autogen import UserProxyAgent
330
- # Verify the class is not None
331
- if UserProxyAgent is None:
332
- raise ImportError("AutoGen UserProxyAgent class is None")
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
- # Ensure AutoGen classes are properly imported
371
- _ensure_autogen_imports()
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
- # Ensure AutoGen classes are properly imported
406
- _ensure_autogen_imports()
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: euriai
3
- Version: 1.0.8
3
+ Version: 1.0.10
4
4
  Summary: Python client for Euri API (euron.one) with CLI, LangChain, and LlamaIndex integration
5
5
  Author: Euri
6
6
  Author-email: tech@euron.one
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="euriai",
5
- version="1.0.8",
5
+ version="1.0.10",
6
6
  description="Python client for Euri API (euron.one) with CLI, LangChain, and LlamaIndex integration",
7
7
  long_description=open("README.md", encoding="utf-8").read(),
8
8
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes