mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
Merge branch 'main' into lg-upgrade-litellm
This commit is contained in:
@@ -17,7 +17,7 @@ Example
|
|||||||
|
|
||||||
import ast
|
import ast
|
||||||
import inspect
|
import inspect
|
||||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
from typing import Any, Dict, List, Tuple, Union
|
||||||
|
|
||||||
from .utils import (
|
from .utils import (
|
||||||
build_ancestor_dict,
|
build_ancestor_dict,
|
||||||
@@ -140,7 +140,7 @@ def compute_positions(
|
|||||||
flow: Any,
|
flow: Any,
|
||||||
node_levels: Dict[str, int],
|
node_levels: Dict[str, int],
|
||||||
y_spacing: float = 150,
|
y_spacing: float = 150,
|
||||||
x_spacing: float = 150
|
x_spacing: float = 300
|
||||||
) -> Dict[str, Tuple[float, float]]:
|
) -> Dict[str, Tuple[float, float]]:
|
||||||
"""
|
"""
|
||||||
Compute the (x, y) positions for each node in the flow graph.
|
Compute the (x, y) positions for each node in the flow graph.
|
||||||
@@ -154,7 +154,7 @@ def compute_positions(
|
|||||||
y_spacing : float, optional
|
y_spacing : float, optional
|
||||||
Vertical spacing between levels, by default 150.
|
Vertical spacing between levels, by default 150.
|
||||||
x_spacing : float, optional
|
x_spacing : float, optional
|
||||||
Horizontal spacing between nodes, by default 150.
|
Horizontal spacing between nodes, by default 300.
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
|
|||||||
Reference in New Issue
Block a user