managed-deepagents 0.9.3.dev29__py3-none-win_amd64.whl → 0.9.3.dev31__py3-none-win_amd64.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.
- managed_deepagents/_binaries/mda.exe +0 -0
- managed_deepagents/_channels/trigger/client.py +10 -4
- managed_deepagents/_channels/trigger/http.py +2 -1
- managed_deepagents/_channels/trigger/identity_context.py +3 -2
- managed_deepagents/_cors.py +5 -1
- managed_deepagents/_identity_auth.py +5 -0
- managed_deepagents/_loopback.py +3 -2
- {managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/METADATA +18 -1
- {managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/RECORD +13 -13
- {managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/WHEEL +0 -0
- {managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/entry_points.txt +0 -0
- {managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/licenses/LICENSE +0 -0
- {managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -81,7 +81,7 @@ class TriggerClient(TriggerClientLike):
|
|
|
81
81
|
) -> None:
|
|
82
82
|
resolved_env = os.environ if env is None else env
|
|
83
83
|
self._api_base = _trigger_server_api_base(_configured_trigger_server_url(resolved_env))
|
|
84
|
-
api_key = (resolved_env
|
|
84
|
+
api_key = _configured_api_key(resolved_env)
|
|
85
85
|
if not api_key:
|
|
86
86
|
raise ValueError("Channel runtime is not configured.")
|
|
87
87
|
self._api_key = api_key
|
|
@@ -182,9 +182,8 @@ def create_trigger_client(
|
|
|
182
182
|
) -> TriggerClient | None:
|
|
183
183
|
"""Build a client when both hosted Trigger settings are present."""
|
|
184
184
|
resolved_env = os.environ if env is None else env
|
|
185
|
-
if (
|
|
186
|
-
|
|
187
|
-
or not (resolved_env.get("LANGSMITH_API_KEY") or "").strip()
|
|
185
|
+
if _configured_trigger_server_url(resolved_env) is None or not _configured_api_key(
|
|
186
|
+
resolved_env
|
|
188
187
|
):
|
|
189
188
|
return None
|
|
190
189
|
return TriggerClient(user_id=user_id, env=resolved_env, fetch=fetch, timeout=timeout)
|
|
@@ -201,6 +200,13 @@ def _configured_trigger_server_url(env: Mapping[str, str]) -> str | None:
|
|
|
201
200
|
return (env.get(LANGSMITH_MDA_TRIGGER_SERVER_URL_ENV) or "").strip() or None
|
|
202
201
|
|
|
203
202
|
|
|
203
|
+
def _configured_api_key(env: Mapping[str, str]) -> str:
|
|
204
|
+
# Self-hosted Host injects the deployment key under its legacy name.
|
|
205
|
+
return (env.get("LANGSMITH_API_KEY") or "").strip() or (
|
|
206
|
+
env.get("LANGCHAIN_API_KEY") or ""
|
|
207
|
+
).strip()
|
|
208
|
+
|
|
209
|
+
|
|
204
210
|
def _trigger_server_api_base(raw: str | None) -> str:
|
|
205
211
|
if not raw or not raw.strip():
|
|
206
212
|
raise ValueError("Channel runtime is not configured.")
|
|
@@ -330,7 +330,8 @@ async def handle_trigger_channel_event_request( # noqa: C901, PLR0911
|
|
|
330
330
|
else:
|
|
331
331
|
if client is None:
|
|
332
332
|
logger.error(
|
|
333
|
-
"channel transport is not configured
|
|
333
|
+
"channel transport is not configured "
|
|
334
|
+
"(%s and LANGSMITH_API_KEY or LANGCHAIN_API_KEY are required)",
|
|
334
335
|
LANGSMITH_MDA_TRIGGER_SERVER_URL_ENV,
|
|
335
336
|
)
|
|
336
337
|
if client is None:
|
|
@@ -53,10 +53,11 @@ class IdentityContextUnavailableError(RuntimeError):
|
|
|
53
53
|
def resolve_identity_context_issuer(
|
|
54
54
|
env: Mapping[str, str] | None = None,
|
|
55
55
|
) -> str:
|
|
56
|
-
"""
|
|
56
|
+
"""Canonical issuer; self-hosted API URLs may use an internal host or prefix."""
|
|
57
57
|
source = env if env is not None else os.environ
|
|
58
58
|
raw = (
|
|
59
|
-
(source.get("
|
|
59
|
+
(source.get("OAUTH_AS_ISSUER") or "").strip()
|
|
60
|
+
or (source.get("LANGSMITH_ENDPOINT") or "").strip()
|
|
60
61
|
or (source.get("LANGCHAIN_ENDPOINT") or "").strip()
|
|
61
62
|
or _DEFAULT_LANGSMITH_ENDPOINT
|
|
62
63
|
)
|
managed_deepagents/_cors.py
CHANGED
|
@@ -186,7 +186,11 @@ def wrap_with_managed_cors(app: AsgiApp) -> AsgiApp:
|
|
|
186
186
|
receive: Callable[[], Awaitable[MutableMapping[str, Any]]],
|
|
187
187
|
send: Callable[[MutableMapping[str, Any]], Awaitable[None]],
|
|
188
188
|
) -> None:
|
|
189
|
-
|
|
189
|
+
path = str(scope.get("path", ""))
|
|
190
|
+
root_path = str(scope.get("root_path", "")).rstrip("/")
|
|
191
|
+
if root_path.startswith("/") and path.startswith(f"{root_path}/"):
|
|
192
|
+
path = path[len(root_path) :]
|
|
193
|
+
if scope.get("type") != "http" or not is_managed_cors_path(path):
|
|
190
194
|
await self.app(scope, receive, send)
|
|
191
195
|
return
|
|
192
196
|
await self.cors_app(scope, receive, send)
|
|
@@ -409,6 +409,11 @@ def is_channel_events_request(method: str | None, path: str | None) -> bool:
|
|
|
409
409
|
if str(method).upper() != "POST":
|
|
410
410
|
return False
|
|
411
411
|
path_value = str(path).rstrip("/")
|
|
412
|
+
# Host keeps the deployment mount prefix in auth requests. Strip only the
|
|
413
|
+
# server-configured prefix at a complete path-segment boundary.
|
|
414
|
+
mount_prefix = os.environ.get("MOUNT_PREFIX", "").rstrip("/")
|
|
415
|
+
if mount_prefix.startswith("/") and path_value.startswith(f"{mount_prefix}/"):
|
|
416
|
+
path_value = path_value[len(mount_prefix) :]
|
|
412
417
|
return (
|
|
413
418
|
_is_events_path(path_value, CHANNEL_EVENTS_PATH_PREFIX, CHANNEL_EVENTS_PATH_SUFFIX)
|
|
414
419
|
or _is_events_path(
|
managed_deepagents/_loopback.py
CHANGED
|
@@ -11,7 +11,7 @@ def resolve_loopback_api_url(*, explicit: str | None = None) -> str:
|
|
|
11
11
|
"""Return the Agent Server base URL for in-process/loopback SDK clients.
|
|
12
12
|
|
|
13
13
|
Prefers ``explicit``, then ``MDA_CHANNEL_API_URL`` / ``LANGGRAPH_API_URL``,
|
|
14
|
-
else ``http://127.0.0.1:{PORT|8000}``. ``LANGSMITH_ENDPOINT`` is deliberately
|
|
14
|
+
else ``http://127.0.0.1:{PORT|8000}{MOUNT_PREFIX}``. ``LANGSMITH_ENDPOINT`` is deliberately
|
|
15
15
|
not consulted: it is the tracing/API endpoint (LangSmith SaaS by default),
|
|
16
16
|
not this server's origin.
|
|
17
17
|
"""
|
|
@@ -21,7 +21,8 @@ def resolve_loopback_api_url(*, explicit: str | None = None) -> str:
|
|
|
21
21
|
if from_env and from_env.strip():
|
|
22
22
|
return from_env.strip().rstrip("/")
|
|
23
23
|
port = os.environ.get("PORT") or "8000"
|
|
24
|
-
|
|
24
|
+
prefix = os.environ.get("MOUNT_PREFIX", "").rstrip("/")
|
|
25
|
+
return f"http://127.0.0.1:{port}{prefix if prefix.startswith('/') else ''}"
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
def resolve_loopback_api_key(*, explicit: str | None = None) -> str:
|
{managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: managed-deepagents
|
|
3
|
-
Version: 0.9.3.
|
|
3
|
+
Version: 0.9.3.dev31
|
|
4
4
|
Summary: Managed Deep Agents — the define_deep_agent authoring interface plus the CLI that compiles and deploys a code-first Deep Agent repository to a managed LangGraph runtime.
|
|
5
5
|
Author: LangChain
|
|
6
6
|
License: MIT
|
|
@@ -373,6 +373,23 @@ when available. Its `link.status` currently reports `not_required`; it does not
|
|
|
373
373
|
perform an account-link lookup. Its source thread identifier retains the existing
|
|
374
374
|
provider-thread/LangGraph-thread fallback behavior.
|
|
375
375
|
|
|
376
|
+
### Self-hosted channel runtime configuration
|
|
377
|
+
|
|
378
|
+
Agent Server's `MOUNT_PREFIX` is honored by managed event routes and default
|
|
379
|
+
loopback clients. Explicit `MDA_CHANNEL_API_URL` or `LANGGRAPH_API_URL` overrides
|
|
380
|
+
must already include the deployment path.
|
|
381
|
+
|
|
382
|
+
Trigger-backed channels require `LANGSMITH_MDA_TRIGGER_SERVER_URL` and a
|
|
383
|
+
deployment key (`LANGSMITH_API_KEY`, or `LANGCHAIN_API_KEY` on self-hosted).
|
|
384
|
+
The runtime prefers `LANGSMITH_API_KEY` when both are present.
|
|
385
|
+
|
|
386
|
+
If the Agent Auth token issuer differs from the runtime's LangSmith API URL,
|
|
387
|
+
set `OAUTH_AS_ISSUER` in the deployment environment to the configured issuer
|
|
388
|
+
(for example, `https://langsmith.example.com/api`). The runtime verifies the
|
|
389
|
+
exact issuer and fetches its public `/.well-known/jwks.json`; it does not trust
|
|
390
|
+
an issuer supplied by an incoming token. LangSmith must have signing keys
|
|
391
|
+
configured, and the agent must be able to reach that public-key endpoint.
|
|
392
|
+
|
|
376
393
|
## Tool and middleware runtime types
|
|
377
394
|
|
|
378
395
|
Python requires 3.11 or later and includes Deep Agents, LangChain, and LangGraph.
|
{managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/RECORD
RENAMED
|
@@ -7,18 +7,18 @@ managed_deepagents/_cli.py,sha256=jVaw2i1ysdRoWziMdPFmRXtKry_baYGRspyzyIeGWoU,16
|
|
|
7
7
|
managed_deepagents/_connection_authorization.py,sha256=J_aIsTebFjZi_Klc5_Fw2hvAEfPWzfd3T3BvrfWI55s,4660
|
|
8
8
|
managed_deepagents/_connections.py,sha256=Qy3-BlldxvzrCmfs1K4eifh6vj2zwc_RZgrQJUIC2KE,21260
|
|
9
9
|
managed_deepagents/_connector.py,sha256=f5TS8sMhx65gThmkkpqDCfwNPdbWNDKEEuEswWdG8-s,8286
|
|
10
|
-
managed_deepagents/_cors.py,sha256=
|
|
10
|
+
managed_deepagents/_cors.py,sha256=WAlD_PgLFVAN1BAQaYU44DKctAJk4xQnFZ0I-9EwMng,7814
|
|
11
11
|
managed_deepagents/_credential_gate.py,sha256=2BsZ13jJns7qFMxD89JnQoujXmkfoOBelRQEx0A8WBE,12208
|
|
12
12
|
managed_deepagents/_eval_filesystem.py,sha256=_oRR0CUzpO7XND2JkkNUZH63m5kwxmGcR7cfqfFO378,8768
|
|
13
13
|
managed_deepagents/_extension.py,sha256=MqCWS4AGxiURPtLlA2y_tWKdRL8Zu1-VZyQ6Q3HDgzc,5315
|
|
14
|
-
managed_deepagents/_identity_auth.py,sha256=
|
|
14
|
+
managed_deepagents/_identity_auth.py,sha256=bNAbg-IyKK8cLYCIlA5LBnOsReFm3ZOKaBJlVefFRQE,35284
|
|
15
15
|
managed_deepagents/_identity_http.py,sha256=AvPpbGtJ60zTovPrLnFwUOum2Aqg5kfVntCIlYCQ4IE,16230
|
|
16
16
|
managed_deepagents/_identity_links.py,sha256=T-Ae45zliSDkWhEG8_YH8hS5Kixt77_bpdAoBcSGe3U,8082
|
|
17
17
|
managed_deepagents/_identity_runtime.py,sha256=6Q3YU2N_9WDIlkHqIxhDGclCD2eyxfIACNBPtVl5Hg4,26279
|
|
18
18
|
managed_deepagents/_ingress.py,sha256=XD2cyC4Ya8Sz_9QprOuL0_wL8TAe2u29DVvu7Bf3sDw,4325
|
|
19
19
|
managed_deepagents/_ingress_runs.py,sha256=tsf0VkNfH4-ZK7ZSjtz08QX0heXfhnERcelP9pChpnE,3417
|
|
20
20
|
managed_deepagents/_log.py,sha256=oYwOO0ZL4-INkge9YJvtLuCxL9zAtgjSPIggVbkcyc8,2932
|
|
21
|
-
managed_deepagents/_loopback.py,sha256=
|
|
21
|
+
managed_deepagents/_loopback.py,sha256=k7pH60FzXyT1CArp0wup8sLJejzpiFlm1lMBJLbfNuA,2525
|
|
22
22
|
managed_deepagents/_managed_composition.py,sha256=tTIhy_gDL6CsHkoUCRdc3_wFFZ-1nv6ZHQi5rBjzn6M,9649
|
|
23
23
|
managed_deepagents/_managed_middleware.py,sha256=LijT0XmqR6lYvg8oiweq63C1bjSjBUZd5GMF4s6EKHc,10449
|
|
24
24
|
managed_deepagents/_managed_tools.py,sha256=fr_fJkk8wN0PZrRnihBsLTLW2Q3L-sFnRz54vD2cBzY,11120
|
|
@@ -40,7 +40,7 @@ managed_deepagents/run_context.py,sha256=1Nc3pew_nROgKi18PAKhn7vOAed-PmxArqUTpce
|
|
|
40
40
|
managed_deepagents/runtime.py,sha256=88QmwIzEVCyq4p2BWOmw20xJJLSyemfbPneVfNnx7C0,95214
|
|
41
41
|
managed_deepagents/sandbox.py,sha256=8qaswX6F2LYJX1uGq_7XwAGHZjGOD9VQ0WISqPK_ohs,4734
|
|
42
42
|
managed_deepagents/schedules.py,sha256=XROsDs-QwCWH0yEwakIN5Rhl5aM06eZX5-JFJ-KG1To,5898
|
|
43
|
-
managed_deepagents/_binaries/mda.exe,sha256=
|
|
43
|
+
managed_deepagents/_binaries/mda.exe,sha256=SZe-6hFfjDZ0G1vHrVJ3KI7m5edplIW4DI9ebE1V6EQ,4537856
|
|
44
44
|
managed_deepagents/_channels/__init__.py,sha256=tY94zltWKNw-FIzbGjrh0cSAc2JIHCEAvcY7hzoRED0,801
|
|
45
45
|
managed_deepagents/_channels/assistant_text.py,sha256=ZLYAF1MQVE5_EN49MoPJdB8Ckf3vNPpXNBhkdA4egF0,3414
|
|
46
46
|
managed_deepagents/_channels/binding.py,sha256=DnxB7FXkbY5B3PCEAGz3JJBCCnQSdWz8PU8ze4fdcZU,5302
|
|
@@ -65,9 +65,9 @@ managed_deepagents/_channels/slack/middleware.py,sha256=sWHSoC7FzQ5dPVbk26cgMoSa
|
|
|
65
65
|
managed_deepagents/_channels/slack/transport.py,sha256=_BuHwmP5-qNh3o86QE1hEgzcNV5S3Fhndb7H56cTdZg,3247
|
|
66
66
|
managed_deepagents/_channels/trigger/__init__.py,sha256=bWj66XoPbDdrztPUCKBuSJBBS2pBocn4EA8FDE3WeBA,48
|
|
67
67
|
managed_deepagents/_channels/trigger/channel.py,sha256=4ndfYw8HiWvSr-zFA4Xj3qkwZ015aLJGjP57Z43n6NQ,6690
|
|
68
|
-
managed_deepagents/_channels/trigger/client.py,sha256=
|
|
69
|
-
managed_deepagents/_channels/trigger/http.py,sha256=
|
|
70
|
-
managed_deepagents/_channels/trigger/identity_context.py,sha256=
|
|
68
|
+
managed_deepagents/_channels/trigger/client.py,sha256=wT6tss0HSNuAeZdceUiq2t-e80soZ8vbF-1n8srSXdo,9217
|
|
69
|
+
managed_deepagents/_channels/trigger/http.py,sha256=terH10jpljdRlVx82nUl94KBRsuMlZ76P1v8nyVfFHg,26562
|
|
70
|
+
managed_deepagents/_channels/trigger/identity_context.py,sha256=2iZGHIIX11sR_lHqqyqfs_VbuUePZam0y4HHPUNUUAc,8192
|
|
71
71
|
managed_deepagents/_channels/trigger/ingress.py,sha256=9SQkldNrGnasFAsde13hoTqxHiuhUp4FLkYWcYDTbxE,6787
|
|
72
72
|
managed_deepagents/_channels/trigger/tracing_project.py,sha256=iBFGDboFcCClXJvNV4PgTO8TeAhna5ms-NTXlTd8uV0,2091
|
|
73
73
|
managed_deepagents/_channels/trigger/transport.py,sha256=h4tNQ__MlfH5NtpR3DoiMO7__Z_H4Ygq8wew6W2uzKw,1830
|
|
@@ -103,9 +103,9 @@ managed_deepagents/identity/__init__.py,sha256=YMB5p2DRyyY_82gGNVfGHjfjnUFRTtMne
|
|
|
103
103
|
managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
|
|
104
104
|
managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
|
|
105
105
|
managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
|
|
106
|
-
managed_deepagents-0.9.3.
|
|
107
|
-
managed_deepagents-0.9.3.
|
|
108
|
-
managed_deepagents-0.9.3.
|
|
109
|
-
managed_deepagents-0.9.3.
|
|
110
|
-
managed_deepagents-0.9.3.
|
|
111
|
-
managed_deepagents-0.9.3.
|
|
106
|
+
managed_deepagents-0.9.3.dev31.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
|
|
107
|
+
managed_deepagents-0.9.3.dev31.dist-info/METADATA,sha256=t02eeDBNKWNQWSEM7Un7AedR_mwBcaZBu43jDZxQZQY,34811
|
|
108
|
+
managed_deepagents-0.9.3.dev31.dist-info/WHEEL,sha256=3I5VVWZdsFlU417aCS2bMRuerS8wsfvBq99MyatBV3A,97
|
|
109
|
+
managed_deepagents-0.9.3.dev31.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
|
|
110
|
+
managed_deepagents-0.9.3.dev31.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
|
|
111
|
+
managed_deepagents-0.9.3.dev31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{managed_deepagents-0.9.3.dev29.dist-info → managed_deepagents-0.9.3.dev31.dist-info}/top_level.txt
RENAMED
|
File without changes
|