aixtools 0.2.20__tar.gz → 0.2.21__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.
Potentially problematic release.
This version of aixtools might be problematic. Click here for more details.
- {aixtools-0.2.20 → aixtools-0.2.21}/PKG-INFO +1 -1
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/_version.py +3 -3
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/client.py +3 -1
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/config.py +2 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/README.md +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/config.toml +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/bn.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/en-US.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/gu.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/he-IL.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/hi.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/ja.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/kn.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/ml.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/mr.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/nl.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/ta.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/te.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/.chainlit/translations/zh-CN.json +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/app.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/google_sdk/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/google_sdk/pydantic_ai_adapter/agent_executor.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/google_sdk/pydantic_ai_adapter/storage.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/google_sdk/remote_agent_connection.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/google_sdk/utils.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/utils.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/agent.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/agent_batch.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/nodes_to_md.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/nodes_to_message.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/nodes_to_str.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/print_nodes.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/agents/prompt.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/app.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/auth/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/auth/auth.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/chainlit.md +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/compliance/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/compliance/private_data.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/context.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/db/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/db/database.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/db/vector_db.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/evals/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/evals/__main__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/evals/dataset.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/evals/discovery.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/evals/run_evals.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/google/client.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/log_view/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/log_view/app.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/log_view/display.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/log_view/export.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/log_view/filters.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/log_view/log_utils.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/log_view/node_summary.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logfilters/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logfilters/context_filter.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logging/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logging/log_objects.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logging/logging_config.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logging/mcp_log_models.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logging/mcp_logger.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logging/model_patch_logging.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/logging/open_telemetry.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/example_client.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/example_server.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/exceptions.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/fast_mcp_log.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/faulty_mcp.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/middleware.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/mcp/server.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/model_patch/model_patch.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/server/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/server/app_mounter.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/server/path.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/server/utils.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/testing/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/testing/agent_mock.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/testing/aix_test_model.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/testing/mock_tool.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/testing/model_patch_cache.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/tools/doctor/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/tools/doctor/mcp_tool_doctor.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/tools/doctor/tool_doctor.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/tools/doctor/tool_recommendation.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/chainlit/cl_agent_show.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/chainlit/cl_utils.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/config_util.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/enum_with_description.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/files.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/persisted_dict.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/utils/utils.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/vault/__init__.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools/vault/vault.py +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/aixtools.egg-info/SOURCES.txt +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/pyproject.toml +0 -0
- {aixtools-0.2.20 → aixtools-0.2.21}/setup.cfg +0 -0
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.2.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 2,
|
|
31
|
+
__version__ = version = '0.2.21'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 2, 21)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'gbbd8ec97d'
|
|
@@ -23,6 +23,7 @@ from pydantic_ai.toolsets.abstract import ToolsetTool
|
|
|
23
23
|
from aixtools.context import SessionIdTuple
|
|
24
24
|
from aixtools.logging.logging_config import get_logger
|
|
25
25
|
from aixtools.server.utils import create_session_headers
|
|
26
|
+
from aixtools.utils.config import MCP_TOOLS_MAX_RETRIES
|
|
26
27
|
|
|
27
28
|
MCP_TOOL_CACHE_TTL = 300 # 5 minutes
|
|
28
29
|
DEFAULT_MCP_CONNECTION_TIMEOUT = 30
|
|
@@ -87,6 +88,7 @@ def get_mcp_servers(
|
|
|
87
88
|
mcp_configs: list[MCPConfig],
|
|
88
89
|
session_id_tuple: SessionIdTuple,
|
|
89
90
|
auth_token: str = None,
|
|
91
|
+
max_retries: int = MCP_TOOLS_MAX_RETRIES,
|
|
90
92
|
*,
|
|
91
93
|
timeout: float = DEFAULT_MCP_CONNECTION_TIMEOUT,
|
|
92
94
|
):
|
|
@@ -115,7 +117,7 @@ def get_mcp_servers(
|
|
|
115
117
|
servers = []
|
|
116
118
|
for config in mcp_configs:
|
|
117
119
|
server = CachedMCPServerStreamableHTTP(
|
|
118
|
-
url=config.url, headers=headers, timeout=timeout, read_timeout=config.read_timeout
|
|
120
|
+
url=config.url, headers=headers, timeout=timeout, read_timeout=config.read_timeout, max_retries=max_retries
|
|
119
121
|
)
|
|
120
122
|
logger.info("Using MCP server at %s", config.url)
|
|
121
123
|
servers.append(server)
|
|
@@ -144,3 +144,5 @@ SKIP_MCP_AUTHORIZATION = str2bool(get_variable_env("SKIP_MCP_AUTHORIZATION", Tru
|
|
|
144
144
|
APP_DEFAULT_SCOPE = get_variable_env("APP_DEFAULT_SCOPE", allow_empty=True)
|
|
145
145
|
|
|
146
146
|
AUTH_TEST_TOKEN = get_variable_env("AUTH_TEST_TOKEN", allow_empty=True)
|
|
147
|
+
|
|
148
|
+
MCP_TOOLS_MAX_RETRIES = int(get_variable_env("MCP_TOOLS_MAX_RETRIES", default=10))
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aixtools-0.2.20 → aixtools-0.2.21}/aixtools/a2a/google_sdk/pydantic_ai_adapter/agent_executor.py
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|