beamlit 0.0.56rc107__py3-none-any.whl → 0.0.57rc109__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.
- beamlit/agents/thread.py +6 -3
- beamlit/functions/mcp/mcp.py +2 -1
- {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57rc109.dist-info}/METADATA +1 -1
- {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57rc109.dist-info}/RECORD +7 -7
- {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57rc109.dist-info}/WHEEL +0 -0
- {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57rc109.dist-info}/entry_points.txt +0 -0
- {beamlit-0.0.56rc107.dist-info → beamlit-0.0.57rc109.dist-info}/licenses/LICENSE +0 -0
beamlit/agents/thread.py
CHANGED
@@ -22,7 +22,10 @@ def get_default_thread(request: Request) -> str:
|
|
22
22
|
return request.headers.get("X-Beamlit-Sub")
|
23
23
|
authorization = request.headers.get("Authorization", request.headers.get("X-Beamlit-Authorization"))
|
24
24
|
if authorization and len(authorization.split("Bearer ")) > 1:
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
try:
|
26
|
+
token = authorization.split(" ")[1]
|
27
|
+
decoded = jwt.decode(token, options={"verify_signature": False})
|
28
|
+
return decoded["sub"]
|
29
|
+
except Exception:
|
30
|
+
return ""
|
28
31
|
return ""
|
beamlit/functions/mcp/mcp.py
CHANGED
@@ -31,7 +31,7 @@ logger = logging.getLogger(__name__)
|
|
31
31
|
|
32
32
|
|
33
33
|
class MCPClient:
|
34
|
-
def __init__(self, client: AuthenticatedClient, url: str):
|
34
|
+
def __init__(self, client: AuthenticatedClient, url: str, sse: bool = False):
|
35
35
|
self.client = client
|
36
36
|
self.url = url
|
37
37
|
self._sse = False
|
@@ -152,6 +152,7 @@ class MCPToolkit(BaseToolkit):
|
|
152
152
|
name=tool.name,
|
153
153
|
description=tool.description or "",
|
154
154
|
args_schema=create_schema_model(tool.name, tool.inputSchema),
|
155
|
+
sse=self.sse,
|
155
156
|
)
|
156
157
|
# list_tools returns a PaginatedResult, but I don't see a way to pass the cursor to retrieve more tools
|
157
158
|
for tool in self._tools.tools
|
@@ -8,7 +8,7 @@ beamlit/agents/__init__.py,sha256=bWsFaXUbAps3IsL3Prti89m1s714vICXodbQi77h3vY,20
|
|
8
8
|
beamlit/agents/chain.py,sha256=SA1u_oFP2dVO7sUg4MBjahz2rpLoMV4BF0zrcFVOWks,4935
|
9
9
|
beamlit/agents/chat.py,sha256=ItuS9zXkALgXVa6IevNpCVKvsicwg9OcUf4_VqO1x5Q,8603
|
10
10
|
beamlit/agents/decorator.py,sha256=dz0XPS_RQFrCdX6VB_dnFc6f_1z8sszJzgaxlwd9E8Q,8435
|
11
|
-
beamlit/agents/thread.py,sha256=
|
11
|
+
beamlit/agents/thread.py,sha256=PVP9Gey8fMZHA-Cs8WbfmdSlD7g-n4HKuk1sTVf8yOQ,1087
|
12
12
|
beamlit/agents/voice/openai.py,sha256=-RDBwl16i4TbUhFo5-77Ci3zmI3Y8U2yf2MmvXR2haQ,9479
|
13
13
|
beamlit/agents/voice/utils.py,sha256=tQidyM40Ewuy12wKqpvJLvfJgneQ0sZf50dqnerPGHg,836
|
14
14
|
beamlit/api/__init__.py,sha256=zTSiG_ujSjAqWPyc435YXaX9XTlpMjiJWBbV-f-YtdA,45
|
@@ -149,7 +149,7 @@ beamlit/functions/__init__.py,sha256=Mnoqpa1dm7TXwjodBbF_40JyD78aXsOYWmqjDSnA1lU
|
|
149
149
|
beamlit/functions/common.py,sha256=4SK1N0VoQiydUT4frGT9OWMRxgHgMHUcsBhicMkcMmc,9996
|
150
150
|
beamlit/functions/decorator.py,sha256=iQbLwUo0K83DFJ3ub8O5jKtkbSINnku6GZcKJ9h7-5E,2292
|
151
151
|
beamlit/functions/local/local.py,sha256=KjkHWBxGlG9fliXnOOwZQEop1g2o10IaLiPo4Zu_XAk,1929
|
152
|
-
beamlit/functions/mcp/mcp.py,sha256=
|
152
|
+
beamlit/functions/mcp/mcp.py,sha256=mhSATY3-p6xsmdNVtLoucQh-UtzIxvTxMD38JBB67Ck,5816
|
153
153
|
beamlit/functions/mcp/utils.py,sha256=V7bah6cymdtjJ_LJUrNcHDeApDHA6uXvaGVeFJGKj2U,1850
|
154
154
|
beamlit/functions/remote/remote.py,sha256=BQkRHOITBndco3ewH2g0_PXMef5OCx2g21GEQlS1_L4,6743
|
155
155
|
beamlit/models/__init__.py,sha256=Pb6m_N_UwQ7N-EgdlhaciTHuXyD-8OCwbLicC9Lee1w,10084
|
@@ -282,8 +282,8 @@ beamlit/serve/app.py,sha256=lM59fdUtfkfAYNPWSCU9pkXIPBnhgVGvvgfoMkSVtks,4531
|
|
282
282
|
beamlit/serve/middlewares/__init__.py,sha256=O7fyfE1DIYmajFY9WWdzxCgeAQWZzJfeUjzHGbpWaAk,309
|
283
283
|
beamlit/serve/middlewares/accesslog.py,sha256=lcu33j4epFSHRBaeTpyt8deNb3kaM3K91-andw4fp80,1112
|
284
284
|
beamlit/serve/middlewares/processtime.py,sha256=3x5w1yQexB0xFNKK6fgLbINxT-eLLunfZ6UDV0bIIF4,944
|
285
|
-
beamlit-0.0.
|
286
|
-
beamlit-0.0.
|
287
|
-
beamlit-0.0.
|
288
|
-
beamlit-0.0.
|
289
|
-
beamlit-0.0.
|
285
|
+
beamlit-0.0.57rc109.dist-info/METADATA,sha256=ug4_7m2fxJm5vHrqPHJe0_2CuLQHhzMp8xvUzjIolTo,3515
|
286
|
+
beamlit-0.0.57rc109.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
287
|
+
beamlit-0.0.57rc109.dist-info/entry_points.txt,sha256=zxhgdn7SP-Otk4rEv7LMPAAa9w4TUCLbu9TJi9-K3xg,115
|
288
|
+
beamlit-0.0.57rc109.dist-info/licenses/LICENSE,sha256=p5PNQvpvyDT_0aYBDgmV1fFI_vAD2aSV0wWG7VTgRis,1069
|
289
|
+
beamlit-0.0.57rc109.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|