aixtools 0.3.6__tar.gz → 0.3.7__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.3.6 → aixtools-0.3.7}/PKG-INFO +1 -1
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/_version.py +3 -3
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/auth_middleware.py +2 -3
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/auth/auth.py +8 -2
- {aixtools-0.3.6 → aixtools-0.3.7}/README.md +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/config.toml +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/bn.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/en-US.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/gu.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/he-IL.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/hi.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/ja.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/kn.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/ml.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/mr.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/nl.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/ta.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/te.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/.chainlit/translations/zh-CN.json +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/app.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/google_sdk/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/google_sdk/pydantic_ai_adapter/agent_executor.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/google_sdk/pydantic_ai_adapter/storage.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/google_sdk/remote_agent_connection.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/google_sdk/utils.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/a2a/utils.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/agent.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/agent_batch.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/nodes_to_md.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/nodes_to_message.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/nodes_to_str.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/print_nodes.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/agents/prompt.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/app.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/auth/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/chainlit.md +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/compliance/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/compliance/private_data.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/context.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/db/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/db/database.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/db/vector_db.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/evals/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/evals/__main__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/evals/dataset.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/evals/discovery.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/evals/run_evals.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/google/client.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/log_view/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/log_view/app.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/log_view/display.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/log_view/export.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/log_view/filters.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/log_view/log_utils.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/log_view/node_summary.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logfilters/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logfilters/context_filter.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logging/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logging/log_objects.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logging/logging_config.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logging/mcp_log_models.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logging/mcp_logger.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logging/model_patch_logging.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/logging/open_telemetry.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/client.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/example_client.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/example_server.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/exceptions.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/fast_mcp_log.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/faulty_mcp.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/middleware.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/mcp/server.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/model_patch/model_patch.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/server/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/server/app_mounter.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/server/path.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/server/utils.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/testing/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/testing/agent_mock.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/testing/aix_test_model.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/testing/mock_tool.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/testing/model_patch_cache.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/tools/doctor/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/tools/doctor/mcp_tool_doctor.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/tools/doctor/tool_doctor.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/tools/doctor/tool_recommendation.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/chainlit/cl_agent_show.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/chainlit/cl_utils.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/config.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/config_util.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/enum_with_description.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/files.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/persisted_dict.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/utils/utils.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/vault/__init__.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools/vault/vault.py +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/aixtools.egg-info/SOURCES.txt +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/pyproject.toml +0 -0
- {aixtools-0.3.6 → aixtools-0.3.7}/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.3.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 3,
|
|
31
|
+
__version__ = version = '0.3.7'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 3, 7)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g889028f57'
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"Auth module managing user authentication for A2A server"
|
|
2
2
|
|
|
3
|
-
from logging import getLogger
|
|
4
|
-
|
|
5
3
|
from starlette.middleware.base import BaseHTTPMiddleware
|
|
6
4
|
from starlette.requests import Request
|
|
7
5
|
|
|
8
6
|
from aixtools.auth.auth import AccessTokenAuthProvider, AuthTokenError
|
|
7
|
+
from aixtools.logging.logging_config import get_logger
|
|
9
8
|
from aixtools.utils import config
|
|
10
9
|
|
|
11
|
-
logger =
|
|
10
|
+
logger = get_logger(__name__)
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
class AuthMiddleware(BaseHTTPMiddleware): # pylint: disable=too-few-public-methods
|
|
@@ -3,7 +3,6 @@ Module that manages OAuth2 functions for authentication
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
import enum
|
|
6
|
-
import logging
|
|
7
6
|
|
|
8
7
|
import jwt
|
|
9
8
|
from fastapi import HTTPException
|
|
@@ -13,9 +12,11 @@ from mcp.server.auth.provider import (
|
|
|
13
12
|
AccessToken,
|
|
14
13
|
)
|
|
15
14
|
|
|
15
|
+
from aixtools.context import user_id_var
|
|
16
|
+
from aixtools.logging.logging_config import get_logger
|
|
16
17
|
from aixtools.utils import config
|
|
17
18
|
|
|
18
|
-
logger =
|
|
19
|
+
logger = get_logger(__name__)
|
|
19
20
|
TEST_CLIENT = "test-client"
|
|
20
21
|
|
|
21
22
|
|
|
@@ -108,6 +109,11 @@ class AccessTokenVerifier:
|
|
|
108
109
|
# ensure audience verification is carried out
|
|
109
110
|
options={"verify_aud": True},
|
|
110
111
|
)
|
|
112
|
+
# set user_id for logging context.
|
|
113
|
+
user_id = claims.get("email")
|
|
114
|
+
if user_id:
|
|
115
|
+
user_id_var.set(user_id)
|
|
116
|
+
|
|
111
117
|
logger.info("Verified JWT token")
|
|
112
118
|
return claims
|
|
113
119
|
|
|
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.3.6 → aixtools-0.3.7}/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
|
|
File without changes
|