From e11a7dbb54f4b187cba11f9f5431f02fd8d5c61b Mon Sep 17 00:00:00 2001 From: Patrick Devaney Date: Tue, 31 Dec 2024 11:49:28 -0500 Subject: [PATCH] align repo with upstream --- new_features_examples/multi_tool_usage_agent.py | 7 +++++-- pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/new_features_examples/multi_tool_usage_agent.py b/new_features_examples/multi_tool_usage_agent.py index 33c61abe..58fae9cb 100644 --- a/new_features_examples/multi_tool_usage_agent.py +++ b/new_features_examples/multi_tool_usage_agent.py @@ -19,7 +19,7 @@ class ToolDefinition: callable: Optional[Callable] = None -def extract_type_hints(func: Callable) -> dict: +def extract_type_hints(func: Callable) -> Dict[str, Any]: """Extract parameter types from function type hints.""" return typing.get_type_hints(func) @@ -111,6 +111,9 @@ class ExecutionContext: history: List[Dict[str, Any]] = field(default_factory=list) +def func(): + pass + hints = get_type_hints(func) @@ -417,4 +420,4 @@ agent = ToolAgent( result = agent.run( "Calculate returns for $10000 invested at 7% for 10 years" -) +) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 438e09c4..23e51ebf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,7 @@ rich = "*" # sentence-transformers = "*" swarm-models = "*" termcolor = "*" -clusterops = { git = "https://github.com/The-Swarm-Corporation/clusterops.git", branch = "main" } +clusterops = "*" # [tool.poetry.extras] diff --git a/requirements.txt b/requirements.txt index 7c369dcc..5bca5470 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,7 +24,7 @@ pytest>=8.1.1 pandas>=2.2.2 networkx aiofiles -git+https://github.com/The-Swarm-Corporation/clusterops.git@main#egg=clusterops +clusterops reportlab doc-master termcolor \ No newline at end of file