euriai 1.0.8__tar.gz → 1.0.9__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.9
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.9"
8
8
 
9
9
  # Core imports that should always work
10
10
  try:
@@ -272,15 +272,15 @@ class EuriaiAutoGen:
272
272
  Returns:
273
273
  Configured AssistantAgent
274
274
  """
275
- # Import AutoGen classes directly to ensure they're available
275
+ # Import AutoGen AssistantAgent class
276
276
  try:
277
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")
281
278
  except ImportError:
282
279
  from . import check_optional_dependency
283
280
  check_optional_dependency("pyautogen", "AutoGen", "autogen")
281
+ # This line will never be reached if AutoGen is missing
282
+ # because check_optional_dependency raises ImportError
283
+ raise # Re-raise the original ImportError
284
284
 
285
285
  # Create config for Euri API
286
286
  config_list = [{
@@ -324,15 +324,15 @@ class EuriaiAutoGen:
324
324
  Returns:
325
325
  Configured UserProxyAgent
326
326
  """
327
- # Import AutoGen classes directly to ensure they're available
327
+ # Import AutoGen UserProxyAgent class
328
328
  try:
329
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")
333
330
  except ImportError:
334
331
  from . import check_optional_dependency
335
332
  check_optional_dependency("pyautogen", "AutoGen", "autogen")
333
+ # This line will never be reached if AutoGen is missing
334
+ # because check_optional_dependency raises ImportError
335
+ raise # Re-raise the original ImportError
336
336
 
337
337
  agent = UserProxyAgent(
338
338
  name=name,
@@ -367,8 +367,13 @@ class EuriaiAutoGen:
367
367
  Returns:
368
368
  Configured GroupChat
369
369
  """
370
- # Ensure AutoGen classes are properly imported
371
- _ensure_autogen_imports()
370
+ # Import AutoGen GroupChat class
371
+ try:
372
+ from autogen import GroupChat
373
+ except ImportError:
374
+ from . import check_optional_dependency
375
+ check_optional_dependency("pyautogen", "AutoGen", "autogen")
376
+ raise # Re-raise the original ImportError
372
377
 
373
378
  self.group_chat = GroupChat(
374
379
  agents=agents,
@@ -402,8 +407,13 @@ class EuriaiAutoGen:
402
407
  Returns:
403
408
  Configured GroupChatManager
404
409
  """
405
- # Ensure AutoGen classes are properly imported
406
- _ensure_autogen_imports()
410
+ # Import AutoGen GroupChatManager class
411
+ try:
412
+ from autogen import GroupChatManager
413
+ except ImportError:
414
+ from . import check_optional_dependency
415
+ check_optional_dependency("pyautogen", "AutoGen", "autogen")
416
+ raise # Re-raise the original ImportError
407
417
 
408
418
  # Create config for Euri API
409
419
  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.9
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.9",
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