beamlit 0.0.34rc51__py3-none-any.whl → 0.0.34rc53__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
@@ -119,7 +119,7 @@ def get_functions(client, dir="src/functions", from_decorator="function", remote
|
|
119
119
|
|
120
120
|
def agent(
|
121
121
|
agent: Agent | dict = None,
|
122
|
-
|
122
|
+
override_model=None,
|
123
123
|
override_agent=None,
|
124
124
|
mcp_hub=None,
|
125
125
|
remote_functions=None,
|
@@ -132,7 +132,7 @@ def agent(
|
|
132
132
|
)
|
133
133
|
|
134
134
|
client = new_client()
|
135
|
-
chat_model =
|
135
|
+
chat_model = override_model or None
|
136
136
|
settings = init()
|
137
137
|
|
138
138
|
def wrapper(func):
|
@@ -155,7 +155,7 @@ def agent(
|
|
155
155
|
remote_functions_empty=not remote_functions,
|
156
156
|
)
|
157
157
|
|
158
|
-
|
158
|
+
|
159
159
|
|
160
160
|
if agent is not None:
|
161
161
|
metadata = AgentMetadata(**agent.get("metadata", {}))
|
@@ -211,6 +211,8 @@ def agent(
|
|
211
211
|
toolkit.initialize()
|
212
212
|
functions.extend(toolkit.get_tools())
|
213
213
|
|
214
|
+
settings.agent.functions = functions
|
215
|
+
|
214
216
|
if override_agent is None and len(functions) == 0:
|
215
217
|
raise ValueError(
|
216
218
|
"You must define at least one function, you can define this function in directory "
|
@@ -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=yY3tObddiFjzLah_eQoecaXORShIrF0qvvF8sYR8r84,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.34rc53.dist-info/METADATA,sha256=mYmSQ4b1y6e0X4Ead4ZQOE4Bk0akR7ot4Q-7NOCzC9I,2405
|
260
|
+
beamlit-0.0.34rc53.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
261
|
+
beamlit-0.0.34rc53.dist-info/RECORD,,
|
File without changes
|