beamlit 0.0.22rc12__py3-none-any.whl → 0.0.23rc13__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/common/settings.py
CHANGED
@@ -2,16 +2,6 @@ import os
|
|
2
2
|
from logging import getLogger
|
3
3
|
from typing import List, Tuple, Type, Union
|
4
4
|
|
5
|
-
from langchain_core.language_models.chat_models import BaseChatModel
|
6
|
-
from langgraph.graph.graph import CompiledGraph
|
7
|
-
from pydantic import Field
|
8
|
-
from pydantic_settings import (
|
9
|
-
BaseSettings,
|
10
|
-
PydanticBaseSettingsSource,
|
11
|
-
SettingsConfigDict,
|
12
|
-
YamlConfigSettingsSource,
|
13
|
-
)
|
14
|
-
|
15
5
|
from beamlit.api.functions import get_function_deployment
|
16
6
|
from beamlit.api.models import get_model_deployment
|
17
7
|
from beamlit.client import AuthenticatedClient
|
@@ -20,6 +10,11 @@ from beamlit.models.agent_deployment import AgentDeployment
|
|
20
10
|
from beamlit.models.function_deployment import FunctionDeployment
|
21
11
|
from beamlit.models.model_deployment import ModelDeployment
|
22
12
|
from beamlit.types import UNSET, Unset
|
13
|
+
from langchain_core.language_models.chat_models import BaseChatModel
|
14
|
+
from langgraph.graph.graph import CompiledGraph
|
15
|
+
from pydantic import Field
|
16
|
+
from pydantic_settings import (BaseSettings, PydanticBaseSettingsSource,
|
17
|
+
SettingsConfigDict, YamlConfigSettingsSource)
|
23
18
|
|
24
19
|
global SETTINGS
|
25
20
|
SETTINGS = None
|
@@ -65,6 +60,7 @@ class Settings(BaseSettings):
|
|
65
60
|
|
66
61
|
workspace: str
|
67
62
|
environment: str = Field(default="production")
|
63
|
+
remote: bool = Field(default=False)
|
68
64
|
type: str = Field(default="agent")
|
69
65
|
name: str = Field(default="beamlit-agent")
|
70
66
|
base_url: str = Field(default="https://api.beamlit.dev/v0")
|
beamlit/functions/decorator.py
CHANGED
@@ -3,12 +3,11 @@
|
|
3
3
|
from collections.abc import Callable
|
4
4
|
from logging import getLogger
|
5
5
|
|
6
|
-
from langchain_core.tools import create_schema_from_function
|
7
|
-
|
8
6
|
from beamlit.authentication import new_client
|
9
7
|
from beamlit.common.settings import get_settings
|
10
8
|
from beamlit.models import FunctionDeployment, FunctionKit
|
11
9
|
from beamlit.run import RunClient
|
10
|
+
from langchain_core.tools import create_schema_from_function
|
12
11
|
|
13
12
|
logger = getLogger(__name__)
|
14
13
|
|
@@ -72,10 +71,7 @@ def function(
|
|
72
71
|
def wrapper(func: Callable) -> Callable:
|
73
72
|
if bl_function and not func.__doc__ and bl_function.description:
|
74
73
|
func.__doc__ = bl_function.description
|
75
|
-
if
|
76
|
-
settings.environment == "development"
|
77
|
-
or settings.environment == "production"
|
78
|
-
):
|
74
|
+
if settings.remote:
|
79
75
|
remote_func = get_remote_function(func, bl_function)
|
80
76
|
if not kwargs.get("args_schema"):
|
81
77
|
kwargs["args_schema"] = create_schema_from_function(
|
@@ -138,10 +138,10 @@ beamlit/common/__init__.py,sha256=yDoMJDKj-xjTGl7U1YI59KpWxiOV65HSiUulgO8xdTA,27
|
|
138
138
|
beamlit/common/generate.py,sha256=VJ_MiRDulXdQdnlKdM4_Bod6CO6DOGlFiosGXOLuLGs,7227
|
139
139
|
beamlit/common/logger.py,sha256=ayabnsoHS8ncXm8EpBS01FkvSe0XRcaNdQjKVuPI5z4,1025
|
140
140
|
beamlit/common/secrets.py,sha256=sid81bOe3LflkMKDHwBsBs9nIju8bp5-v9qU9gkyNMc,212
|
141
|
-
beamlit/common/settings.py,sha256=
|
141
|
+
beamlit/common/settings.py,sha256=cL5HAg6atxnTJXL9Rxz5Xs4iApNCCYY5ijha8UM3PW4,5446
|
142
142
|
beamlit/common/utils.py,sha256=jouz5igBvT37Xn_e94-foCHyQczVim-UzVcoIF6RWJ4,657
|
143
143
|
beamlit/functions/__init__.py,sha256=_RPG1Bfg54JGdIPnViAU6n9zD7E1cDNsdXi8oYGskzE,138
|
144
|
-
beamlit/functions/decorator.py,sha256=
|
144
|
+
beamlit/functions/decorator.py,sha256=uYZOVxD-7ZNHORTQfCIn0qdNKPIZupsr7_QdUmWEKu0,2996
|
145
145
|
beamlit/functions/github/__init__.py,sha256=gYnUkeegukOfbymdabuuJkScvH-_ZJygX05BoqkPn0o,49
|
146
146
|
beamlit/functions/github/github.py,sha256=FajzLCNkpXcwfgnC0l9rOGT2eSPLCz8-qrMzK9N_ZNc,598
|
147
147
|
beamlit/functions/github/kit/__init__.py,sha256=jBwPqZv6C23_utukohxqXZwrlicNlI7PYPUj0Den7Cw,136
|
@@ -296,6 +296,6 @@ beamlit/serve/app.py,sha256=_0ZesKcczd1sYm8vs3ulbXO1M1boO_5DhFf3jSmjM4g,2398
|
|
296
296
|
beamlit/serve/middlewares/__init__.py,sha256=1dVmnOmhAQWvWktqHkKSIX-YoF6fmMU8xkUQuhg_rJU,148
|
297
297
|
beamlit/serve/middlewares/accesslog.py,sha256=wM52-hcwtO-_hdM1pnsEJzerzJf1MzEyN5m85BdDccE,609
|
298
298
|
beamlit/serve/middlewares/processtime.py,sha256=lDAaIasZ4bwvN-HKHvZpaD9r-yrkVNZYx4abvbjbrCg,411
|
299
|
-
beamlit-0.0.
|
300
|
-
beamlit-0.0.
|
301
|
-
beamlit-0.0.
|
299
|
+
beamlit-0.0.23rc13.dist-info/METADATA,sha256=pgkuT087O9yvCPPpcE64DjtxW5PcTcqBPA5oToxGwFk,2027
|
300
|
+
beamlit-0.0.23rc13.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
301
|
+
beamlit-0.0.23rc13.dist-info/RECORD,,
|
File without changes
|