beamlit 0.0.33rc50__py3-none-any.whl → 0.0.34rc51__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
beamlit/agents/decorator.py
CHANGED
@@ -6,9 +6,10 @@ import importlib
|
|
6
6
|
import os
|
7
7
|
from logging import getLogger
|
8
8
|
|
9
|
-
from langchain_core.tools import
|
9
|
+
from langchain_core.tools import StructuredTool
|
10
10
|
from langgraph.checkpoint.memory import MemorySaver
|
11
11
|
from langgraph.prebuilt import create_react_agent
|
12
|
+
from langchain_core.tools.base import create_schema_from_function
|
12
13
|
|
13
14
|
from beamlit.api.models import get_model
|
14
15
|
from beamlit.authentication import new_client
|
@@ -94,19 +95,21 @@ def get_functions(client, dir="src/functions", from_decorator="function", remote
|
|
94
95
|
else:
|
95
96
|
if asyncio.iscoroutinefunction(func):
|
96
97
|
functions.append(
|
97
|
-
|
98
|
+
StructuredTool(
|
98
99
|
name=func.__name__,
|
99
100
|
description=func.__doc__,
|
100
101
|
func=func,
|
101
102
|
coroutine=func,
|
103
|
+
args_schema=create_schema_from_function(func.__name__, func)
|
102
104
|
)
|
103
105
|
)
|
104
106
|
else:
|
105
107
|
functions.append(
|
106
|
-
|
108
|
+
StructuredTool(
|
107
109
|
name=func.__name__,
|
108
110
|
description=func.__doc__,
|
109
111
|
func=func,
|
112
|
+
args_schema=create_schema_from_function(func.__name__, func)
|
110
113
|
)
|
111
114
|
)
|
112
115
|
except Exception as e:
|
@@ -7,7 +7,7 @@ beamlit/types.py,sha256=E1hhDh_zXfsSQ0NCt9-uw90_Mr5iIlsdfnfvxv5HarU,1005
|
|
7
7
|
beamlit/agents/__init__.py,sha256=nf1iwQwGtCG6nDqyVhxfWoqR6dv6X3bvSpCeqkTCFaM,101
|
8
8
|
beamlit/agents/chain.py,sha256=vfCjiFHuu02uTTGicxMlFzjyICQkIjpXrBGs-7uJEsg,2826
|
9
9
|
beamlit/agents/chat.py,sha256=gVyv4FGBdQTDhdutX8l64OUNa6Fdqaw4eCfEDRH0IPQ,3558
|
10
|
-
beamlit/agents/decorator.py,sha256=
|
10
|
+
beamlit/agents/decorator.py,sha256=n3sETKu8V2g3GDJ0f17kUowyqaRJvpg3n_BGRRVuNGY,10619
|
11
11
|
beamlit/api/__init__.py,sha256=zTSiG_ujSjAqWPyc435YXaX9XTlpMjiJWBbV-f-YtdA,45
|
12
12
|
beamlit/api/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
beamlit/api/agents/create_agent.py,sha256=t5Pr62My2EhQlcIY71MrI73-0_q5Djr3a_Ybt9MIiQQ,3587
|
@@ -256,6 +256,6 @@ beamlit/serve/app.py,sha256=DXWxQoMeuA5FYvBMyLrP94OEWQbwLf4GZk3I9fkwSPA,3523
|
|
256
256
|
beamlit/serve/middlewares/__init__.py,sha256=1dVmnOmhAQWvWktqHkKSIX-YoF6fmMU8xkUQuhg_rJU,148
|
257
257
|
beamlit/serve/middlewares/accesslog.py,sha256=Mu4T4_9OvHybjA0ApzZFpgi2C8f3X1NbUk-76v634XM,631
|
258
258
|
beamlit/serve/middlewares/processtime.py,sha256=lDAaIasZ4bwvN-HKHvZpaD9r-yrkVNZYx4abvbjbrCg,411
|
259
|
-
beamlit-0.0.
|
260
|
-
beamlit-0.0.
|
261
|
-
beamlit-0.0.
|
259
|
+
beamlit-0.0.34rc51.dist-info/METADATA,sha256=912n-eb3Gn8qEASD4KQYpO_lConoEVI06AixnfojXuA,2405
|
260
|
+
beamlit-0.0.34rc51.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
261
|
+
beamlit-0.0.34rc51.dist-info/RECORD,,
|
File without changes
|