euriai 1.0.17__tar.gz → 1.0.18__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.17
3
+ Version: 1.0.18
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.17"
7
+ __version__ = "1.0.18"
8
8
 
9
9
  # Core imports that should always work
10
10
  try:
@@ -413,6 +413,24 @@ class EuriaiLangGraph:
413
413
  if self.verbose:
414
414
  print(f"Added condition node: {name} with routes: {routes}")
415
415
 
416
+ def add_conditional_node(
417
+ self,
418
+ name: str,
419
+ condition_func: Callable[[Dict[str, Any]], str],
420
+ routes: Dict[str, str]
421
+ ) -> None:
422
+ """
423
+ Alias for add_condition_node for more intuitive naming.
424
+
425
+ Add a conditional node that routes based on state.
426
+
427
+ Args:
428
+ name: Node name
429
+ condition_func: Function that returns route key based on state
430
+ routes: Mapping of route keys to target nodes
431
+ """
432
+ return self.add_condition_node(name, condition_func, routes)
433
+
416
434
  def add_embedding_node(
417
435
  self,
418
436
  name: str,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: euriai
3
- Version: 1.0.17
3
+ Version: 1.0.18
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.17",
5
+ version="1.0.18",
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