clap-agents 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
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.
- clap/mcp_client/client.py +8 -7
- clap/vector_stores/chroma_store.py +2 -2
- {clap_agents-0.2.1.dist-info → clap_agents-0.2.2.dist-info}/METADATA +1 -1
- {clap_agents-0.2.1.dist-info → clap_agents-0.2.2.dist-info}/RECORD +6 -6
- {clap_agents-0.2.1.dist-info → clap_agents-0.2.2.dist-info}/WHEEL +0 -0
- {clap_agents-0.2.1.dist-info → clap_agents-0.2.2.dist-info}/licenses/LICENSE +0 -0
clap/mcp_client/client.py
CHANGED
@@ -113,14 +113,16 @@ class MCPClientManager:
|
|
113
113
|
await exit_stack.aclose()
|
114
114
|
print(f"{Fore.GREEN}Disconnected from MCP server: {server_name}{Fore.RESET}")
|
115
115
|
|
116
|
+
|
116
117
|
async def disconnect_all(self):
|
117
|
-
"""Disconnects from all currently connected servers."""
|
118
118
|
server_names = list(self.sessions.keys())
|
119
|
-
print(f"{Fore.YELLOW}Disconnecting from all servers
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
119
|
+
print(f"{Fore.YELLOW}MCPClientManager: Disconnecting from all servers ({len(server_names)})...{Fore.RESET}")
|
120
|
+
for name in server_names:
|
121
|
+
try:
|
122
|
+
await self.disconnect(name)
|
123
|
+
except Exception as e:
|
124
|
+
print(f"{Fore.RED}MCPClientManager: Error during disconnect of '{name}': {e}{Fore.RESET}")
|
125
|
+
print(f"{Fore.GREEN}MCPClientManager: Finished disconnecting all servers.{Fore.RESET}")
|
124
126
|
|
125
127
|
async def list_remote_tools(self, server_name: str) -> List[types.Tool]:
|
126
128
|
"""
|
@@ -192,4 +194,3 @@ class MCPClientManager:
|
|
192
194
|
except Exception as e:
|
193
195
|
print(f"{Fore.RED}Error calling tool '{tool_name}' on server '{server_name}': {e}{Fore.RESET}")
|
194
196
|
raise RuntimeError(f"Failed to call tool '{tool_name}' on '{server_name}'.") from e
|
195
|
-
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import json
|
2
2
|
import functools
|
3
|
-
from typing import Any, Dict, List, Optional, cast
|
3
|
+
from typing import Any, Dict, List, Optional, cast, Callable, Coroutine
|
4
4
|
import asyncio
|
5
5
|
import anyio
|
6
6
|
|
@@ -38,7 +38,7 @@ from clap.embedding.base_embedding import EmbeddingFunctionInterface as ClapEFIn
|
|
38
38
|
|
39
39
|
class _AsyncEFWrapperForChroma:
|
40
40
|
"""Wraps an async CLAP EmbeddingFunctionInterface to be callable synchronously by Chroma."""
|
41
|
-
def __init__(self, async_ef_call:
|
41
|
+
def __init__(self, async_ef_call: Callable[..., Coroutine[Any, Any, Embeddings]], loop: asyncio.AbstractEventLoop):
|
42
42
|
self._async_ef_call = async_ef_call
|
43
43
|
self._loop = loop
|
44
44
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: clap-agents
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: A Python framework for building cognitive agentic patterns including ReAct agents, Multi-Agent Teams, native tool calling, and MCP client integration.
|
5
5
|
Project-URL: Homepage, https://github.com/MaitreyaM/CLAP-AGENTS.git
|
6
6
|
Project-URL: Repository, https://github.com/MaitreyaM/CLAP-AGENTS.git
|
@@ -10,7 +10,7 @@ clap/llm_services/google_openai_compat_service.py,sha256=X5ehwQEv4DobXCBjhtuo2v3
|
|
10
10
|
clap/llm_services/groq_service.py,sha256=HQoY3IpNHiOe0h6Gy0EMa1YsCUex0CvZ_MxApNMo8Ig,3206
|
11
11
|
clap/llm_services/ollama_service.py,sha256=LsoJhCw8TZVbfuJeHATo2uPpkXsOWOuuE78HAxTQ9RY,5326
|
12
12
|
clap/mcp_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
clap/mcp_client/client.py,sha256=
|
13
|
+
clap/mcp_client/client.py,sha256=skIWhwkHnRXjlHwBvKXNZD5yQDe1iRIjrikn7WwczGM,8713
|
14
14
|
clap/multiagent_pattern/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
15
|
clap/multiagent_pattern/agent.py,sha256=6Og1ZujhAIzQ_JLzuhc4oh9TwJ_mTXl2q2ca302PE8g,8345
|
16
16
|
clap/multiagent_pattern/team.py,sha256=t8Xru3fVPblw75pyuPT1wmI3jlsrZHD_GKAW5APbpFg,7966
|
@@ -30,9 +30,9 @@ clap/utils/logging.py,sha256=FfrOHXnVJYCgc3mepIMKcIcGSdSWkMpV7ccKPGFxFiM,727
|
|
30
30
|
clap/utils/rag_utils.py,sha256=Zy-C9l39tHrxYSluaDWcEl1g__uozu4jx5hEGC7h370,6455
|
31
31
|
clap/vector_stores/__init__.py,sha256=H3w5jLdQFbXArVgiidy4RlAalM8a6LAiMlAX0Z-2v7U,404
|
32
32
|
clap/vector_stores/base.py,sha256=nvk8J1oNG3OKFhJfxBGFyVeh9YxoDs9RkB_iOzPBm1w,2853
|
33
|
-
clap/vector_stores/chroma_store.py,sha256=
|
33
|
+
clap/vector_stores/chroma_store.py,sha256=GWshlx0ZhiCLAhuZOCY_NjJT69r1wM8GSUVCY4CgLgo,7243
|
34
34
|
clap/vector_stores/qdrant_store.py,sha256=-SwMTb0yaGngpQ9AddDzDIt3x8GZevlFT-0FMkWD28I,9923
|
35
|
-
clap_agents-0.2.
|
36
|
-
clap_agents-0.2.
|
37
|
-
clap_agents-0.2.
|
38
|
-
clap_agents-0.2.
|
35
|
+
clap_agents-0.2.2.dist-info/METADATA,sha256=9qa7O_D0uNxkMTb9oqR5hsjDEmet-g_RIPPgaWCvsqc,27199
|
36
|
+
clap_agents-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
37
|
+
clap_agents-0.2.2.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
38
|
+
clap_agents-0.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|