managed-deepagents 0.10.3.dev1__py3-none-win_amd64.whl → 0.10.3.dev2__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/delivery.py +2 -0
- managed_deepagents/_channels/messaging_registry.py +12 -0
- managed_deepagents/_channels/trigger/channel.py +9 -7
- managed_deepagents/_channels/trigger/http.py +7 -0
- managed_deepagents/_channels/trigger/types.py +2 -0
- {managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/METADATA +4 -1
- {managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/RECORD +12 -12
- {managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/WHEEL +0 -0
- {managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/entry_points.txt +0 -0
- {managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/licenses/LICENSE +0 -0
- {managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -30,6 +30,7 @@ from managed_deepagents._channels.binding import _TriggerTargetModel
|
|
|
30
30
|
from managed_deepagents._channels.messaging_registry import (
|
|
31
31
|
channel_auto_replies_for_name,
|
|
32
32
|
channel_provider_for_name,
|
|
33
|
+
channel_shows_status_for_name,
|
|
33
34
|
messaging_transport_for_name,
|
|
34
35
|
paused_notice_for_name,
|
|
35
36
|
)
|
|
@@ -534,6 +535,7 @@ async def _report_run_event(
|
|
|
534
535
|
interrupts,
|
|
535
536
|
message,
|
|
536
537
|
tracer_session_id=await tracer_session_id(),
|
|
538
|
+
show_progress=channel_shows_status_for_name(binding["name"]),
|
|
537
539
|
)
|
|
538
540
|
await _best_effort(client.post_runtime_event(target.channel_id, body))
|
|
539
541
|
except Exception as error: # noqa: BLE001 - reporting a run event never fails the run
|
|
@@ -29,6 +29,7 @@ PausedNotice = Callable[["JsonValue", "HttpDelivery"], "Awaitable[None]"]
|
|
|
29
29
|
_provider_by_name: dict[str, str] = {}
|
|
30
30
|
_provider_config_by_name: dict[str, JsonObject] = {}
|
|
31
31
|
_replies_none: set[str] = set()
|
|
32
|
+
_status_hidden: set[str] = set()
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
def channel_provider_for_name(name: str) -> str | None:
|
|
@@ -45,12 +46,19 @@ def channel_auto_replies_for_name(name: str) -> bool:
|
|
|
45
46
|
return name not in _replies_none
|
|
46
47
|
|
|
47
48
|
|
|
49
|
+
def channel_shows_status_for_name(name: str) -> bool:
|
|
50
|
+
"""Whether the channel shows a run's status and Stop button: ``False`` only
|
|
51
|
+
for one declared with ``status=False``."""
|
|
52
|
+
return name not in _status_hidden
|
|
53
|
+
|
|
54
|
+
|
|
48
55
|
_by_name: dict[str, MessagingFactory] = {}
|
|
49
56
|
_paused_notice_by_name: dict[str, PausedNotice] = {}
|
|
50
57
|
|
|
51
58
|
__all__ = [
|
|
52
59
|
"channel_auto_replies_for_name",
|
|
53
60
|
"channel_provider_config_for_name",
|
|
61
|
+
"channel_shows_status_for_name",
|
|
54
62
|
"messaging_transport_for_name",
|
|
55
63
|
"paused_notice_for_name",
|
|
56
64
|
"register_channel_messaging",
|
|
@@ -87,6 +95,10 @@ def _register_messaging_sources(sources: Sequence[object]) -> None:
|
|
|
87
95
|
_replies_none.add(name)
|
|
88
96
|
else:
|
|
89
97
|
_replies_none.discard(name)
|
|
98
|
+
if getattr(source, "status", None) is False:
|
|
99
|
+
_status_hidden.add(name)
|
|
100
|
+
else:
|
|
101
|
+
_status_hidden.discard(name)
|
|
90
102
|
requirements = getattr(source, "requirements", None)
|
|
91
103
|
if callable(requirements):
|
|
92
104
|
manifest = requirements(name)
|
|
@@ -95,7 +95,7 @@ class TriggerSlackChannel(Channel):
|
|
|
95
95
|
allow_bot_triggers: bool,
|
|
96
96
|
trigger_mode: SlackTriggerMode | None = None,
|
|
97
97
|
reactions: ReactionChoice = DEFAULT_REACTION_EMOJI,
|
|
98
|
-
status: SlackStatusChoice | None = None,
|
|
98
|
+
status: SlackStatusChoice | Literal[False] | None = None,
|
|
99
99
|
on_event: Mapping[str, SlackEventCallback] | None = None,
|
|
100
100
|
multitask_strategy: MultitaskStrategy = "enqueue",
|
|
101
101
|
reply: ChannelReply = "auto",
|
|
@@ -178,7 +178,8 @@ class TriggerSlackChannel(Channel):
|
|
|
178
178
|
source_provider="slack",
|
|
179
179
|
channel_name=name,
|
|
180
180
|
reactions=self.reactions,
|
|
181
|
-
started_status=started_status(self.status),
|
|
181
|
+
started_status=None if self.status is False else started_status(self.status),
|
|
182
|
+
show_progress=self.status is not False,
|
|
182
183
|
message_input=lambda event: with_slack_rich_content(
|
|
183
184
|
event["input"]["messages"], event.get("raw_event")
|
|
184
185
|
),
|
|
@@ -378,10 +379,10 @@ class _TriggerSlackArgs(BaseModel):
|
|
|
378
379
|
is_slack_status_value,
|
|
379
380
|
)
|
|
380
381
|
|
|
381
|
-
if value is None or callable(value) or is_slack_status_value(value):
|
|
382
|
+
if value is None or value is False or callable(value) or is_slack_status_value(value):
|
|
382
383
|
return value
|
|
383
384
|
raise ValueError(
|
|
384
|
-
"must be a status line, a list of steps (titles or {'title', 'status'}), "
|
|
385
|
+
"must be False, a status line, a list of steps (titles or {'title', 'status'}), "
|
|
385
386
|
"or a callable returning one"
|
|
386
387
|
)
|
|
387
388
|
|
|
@@ -429,7 +430,7 @@ def slack_channel(
|
|
|
429
430
|
trigger_on_all_messages: bool | None = None,
|
|
430
431
|
allow_bot_triggers: bool = False,
|
|
431
432
|
reactions: ReactionChoice = DEFAULT_REACTION_EMOJI,
|
|
432
|
-
status: SlackStatusChoice | None = None,
|
|
433
|
+
status: SlackStatusChoice | Literal[False] | None = None,
|
|
433
434
|
on_event: SlackHandlers | None = None,
|
|
434
435
|
multitask_strategy: MultitaskStrategy = "enqueue",
|
|
435
436
|
reply: ChannelReply = "auto",
|
|
@@ -471,7 +472,8 @@ def slack_channel(
|
|
|
471
472
|
step one of its tasks. Other apps show the line, or the first step
|
|
472
473
|
not yet done, as the thread's status. A callable that raises, takes
|
|
473
474
|
longer than 1 s, or returns something else leaves the status as it
|
|
474
|
-
is.
|
|
475
|
+
is. ``False`` shows no status and no Stop button; the reply, errors
|
|
476
|
+
and approvals still show.
|
|
475
477
|
Experimental: this may change in a minor release.
|
|
476
478
|
on_event: Handlers that decide what each kind of message starts, by
|
|
477
479
|
key: ``"mention"`` (a channel message that @-mentions your agent),
|
|
@@ -575,7 +577,7 @@ def slack_channel(
|
|
|
575
577
|
trigger_mode=parsed.trigger_mode or ("all" if parsed.trigger_on_all_messages else None),
|
|
576
578
|
allow_bot_triggers=parsed.allow_bot_triggers,
|
|
577
579
|
reactions=cast("ReactionChoice", parsed.reactions),
|
|
578
|
-
status=cast("SlackStatusChoice | None", parsed.status),
|
|
580
|
+
status=cast("SlackStatusChoice | Literal[False] | None", parsed.status),
|
|
579
581
|
on_event=_resolve_handlers(on_event),
|
|
580
582
|
multitask_strategy=multitask_strategy,
|
|
581
583
|
reply=reply,
|
|
@@ -506,6 +506,7 @@ async def handle_trigger_channel_event_request( # noqa: C901, PLR0911, PLR0912,
|
|
|
506
506
|
trigger_client: TriggerClientLike | None = None,
|
|
507
507
|
reactions: ReactionChoice = DEFAULT_REACTION_EMOJI,
|
|
508
508
|
started_status: TriggerChannelRuntimeStatus | None = None,
|
|
509
|
+
show_progress: bool = True,
|
|
509
510
|
message_input: MessageInputFn | None = None,
|
|
510
511
|
only_continues_thread: OnlyContinuesThreadFn | None = None,
|
|
511
512
|
decide_message: DecideMessageFn | None = None,
|
|
@@ -755,6 +756,7 @@ async def handle_trigger_channel_event_request( # noqa: C901, PLR0911, PLR0912,
|
|
|
755
756
|
user_id=user_id,
|
|
756
757
|
reactions=reactions,
|
|
757
758
|
started_status=started_status,
|
|
759
|
+
show_progress=show_progress,
|
|
758
760
|
multitask_strategy=multitask_strategy,
|
|
759
761
|
newer_run=newer_run,
|
|
760
762
|
)
|
|
@@ -940,6 +942,7 @@ async def _observe_accepted_run(
|
|
|
940
942
|
user_id: str,
|
|
941
943
|
reactions: ReactionChoice = DEFAULT_REACTION_EMOJI,
|
|
942
944
|
started_status: TriggerChannelRuntimeStatus | None = None,
|
|
945
|
+
show_progress: bool = True,
|
|
943
946
|
multitask_strategy: MultitaskStrategy | None = None,
|
|
944
947
|
newer_run: NewerRunFn | None = None,
|
|
945
948
|
) -> HttpFinish:
|
|
@@ -982,6 +985,7 @@ async def _observe_accepted_run(
|
|
|
982
985
|
message=message,
|
|
983
986
|
tracer_session_id=await tracer_session_id(),
|
|
984
987
|
status=status,
|
|
988
|
+
show_progress=show_progress,
|
|
985
989
|
)
|
|
986
990
|
await _best_effort(client.post_runtime_event(event["channel_id"], request))
|
|
987
991
|
|
|
@@ -1258,6 +1262,7 @@ def _runtime_event(
|
|
|
1258
1262
|
*,
|
|
1259
1263
|
tracer_session_id: str | None = None,
|
|
1260
1264
|
status: TriggerChannelRuntimeStatus | None = None,
|
|
1265
|
+
show_progress: bool = True,
|
|
1261
1266
|
) -> TriggerChannelRuntimeEventRequest:
|
|
1262
1267
|
request: TriggerChannelRuntimeEventRequest = {
|
|
1263
1268
|
"id": str(uuid.uuid4()),
|
|
@@ -1274,6 +1279,8 @@ def _runtime_event(
|
|
|
1274
1279
|
request["message"] = {"text": message}
|
|
1275
1280
|
if interrupts:
|
|
1276
1281
|
request["interrupts"] = interrupts
|
|
1282
|
+
if not show_progress:
|
|
1283
|
+
request["show_progress"] = False
|
|
1277
1284
|
# The status a channel set, on `run.started`.
|
|
1278
1285
|
if status is not None:
|
|
1279
1286
|
if "message" in status:
|
|
@@ -272,6 +272,8 @@ class TriggerChannelRuntimeEventRequest(TriggerChannelRuntimeEventRequestRequire
|
|
|
272
272
|
# channel can deep-link a run's trace. An opaque id, never a URL: a URL
|
|
273
273
|
# from here would let the deployment choose where a rendered link points.
|
|
274
274
|
tracer_session_id: str
|
|
275
|
+
# False when the channel shows no status and no Stop button.
|
|
276
|
+
show_progress: bool
|
|
275
277
|
|
|
276
278
|
|
|
277
279
|
class TriggerChannelRuntimeEventResponse(TypedDict):
|
{managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: managed-deepagents
|
|
3
|
-
Version: 0.10.3.
|
|
3
|
+
Version: 0.10.3.dev2
|
|
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
|
|
@@ -737,6 +737,9 @@ no longer listed is marked complete, since Slack can't remove one, and the
|
|
|
737
737
|
plan reads "Done" when the run ends. Other apps show the line, or the first
|
|
738
738
|
step not yet done, as the thread's status. Without `status`, nothing changes.
|
|
739
739
|
|
|
740
|
+
`status=False` shows no status and no Stop button, for an agent that works in
|
|
741
|
+
the background. The reply, errors and approvals still show.
|
|
742
|
+
|
|
740
743
|
### Replying from the agent
|
|
741
744
|
|
|
742
745
|
The channel posts the agent's last reply in the thread once a run succeeds.
|
{managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/RECORD
RENAMED
|
@@ -52,13 +52,13 @@ managed_deepagents/run_context.py,sha256=IayZdcpPrKVss70Hro8qI-EWtL94HZt4JKefzec
|
|
|
52
52
|
managed_deepagents/runtime.py,sha256=OVCWZFd8fikrmO9A9YbLCAFND-jsbh2U_7MUV6JumO4,136407
|
|
53
53
|
managed_deepagents/sandbox.py,sha256=cS66-vFcARsbHR3fH5jvWd4qF-MAjiGqRe-_Kocsqtg,4693
|
|
54
54
|
managed_deepagents/schedules.py,sha256=z_OlmZ7hW7LdvWLem-BiA131nHwFvUDSW_0-ObzU_G4,6039
|
|
55
|
-
managed_deepagents/_binaries/mda.exe,sha256=
|
|
55
|
+
managed_deepagents/_binaries/mda.exe,sha256=6qA2rjL5OrRmORMH37oPP9y7XHg_c_hWoqdBGleUjWc,5153792
|
|
56
56
|
managed_deepagents/_channels/__init__.py,sha256=mMgqza7EWRjhJM0lXlFd-W6wBYZrFkpLQ4_30Bpij7k,249
|
|
57
57
|
managed_deepagents/_channels/actor.py,sha256=3d_1-ia6vwVjXkw7PYn5gg6BjnlPwRXW4nW2C5vAO7c,5203
|
|
58
58
|
managed_deepagents/_channels/assistant_text.py,sha256=nf00-KJXNev-e_TkAK_8SBI3J9TiOis1GkGV_zT5048,8472
|
|
59
59
|
managed_deepagents/_channels/binding.py,sha256=hhx872cgBmJcdMq8Tqz5VKO8pcLCnz0eBlAYfj9_-MA,7837
|
|
60
60
|
managed_deepagents/_channels/context.py,sha256=3upGBFHPVZXjcZAC5pKhFIMmDhEnKN4d8CzAdOEH-5c,2294
|
|
61
|
-
managed_deepagents/_channels/delivery.py,sha256=
|
|
61
|
+
managed_deepagents/_channels/delivery.py,sha256=jWuW4ARG591VvNRSxf2maEEq17OB0ysC_fTSiqwe308,23638
|
|
62
62
|
managed_deepagents/_channels/github.py,sha256=rZp8OvPPGNPhGDllI1ZtBWepb81HIE0gyCNz2Xxaz18,20521
|
|
63
63
|
managed_deepagents/_channels/github_app_setup.py,sha256=r85rT3jzhMpeEM-R6CqngtKLefTrSmzXa4d0yfyjlh4,7126
|
|
64
64
|
managed_deepagents/_channels/github_connections.py,sha256=XlQxCjxt0E0RYhu5bVzC_UWKRLkdj0MENsBWptUz9SM,675
|
|
@@ -73,7 +73,7 @@ managed_deepagents/_channels/linear_graphql.py,sha256=ZXxF-9u-461CzZH4cqf8SyOm6B
|
|
|
73
73
|
managed_deepagents/_channels/linear_schema.py,sha256=tzJrVe2M9yG83PAs7zFZadJp1o1Y13owpKGiPIXpBhc,8620
|
|
74
74
|
managed_deepagents/_channels/linear_types.py,sha256=HW1gNfMQ4z2Wx4C8uhK_H3TfJ3HVawLZQwQ7FZHl3d4,8598
|
|
75
75
|
managed_deepagents/_channels/manifest.py,sha256=EIyTldueiMJwMCu83tWOSJpMx24yg1C1lnzEN1bXK0c,827
|
|
76
|
-
managed_deepagents/_channels/messaging_registry.py,sha256=
|
|
76
|
+
managed_deepagents/_channels/messaging_registry.py,sha256=PrdPQZCvvKyb_hxvzbkxzX5X-b_ucvHL206iNpYI90A,5324
|
|
77
77
|
managed_deepagents/_channels/reactions.py,sha256=vSKwhEaDCtsceqhL83VtsbRl7TpNCxqUpqSmIkY0eCs,3537
|
|
78
78
|
managed_deepagents/_channels/reserved_connections.py,sha256=oQuhMVKV2mv3n8hOZ0tlTRQCZJPM-khQpQ7wskBqoF8,2244
|
|
79
79
|
managed_deepagents/_channels/resolve_user.py,sha256=scjT6r4H0fZgMxa1evqkZu709ViF9iSFluWcivEeRyY,12996
|
|
@@ -103,15 +103,15 @@ managed_deepagents/_channels/slack/middleware.py,sha256=sWHSoC7FzQ5dPVbk26cgMoSa
|
|
|
103
103
|
managed_deepagents/_channels/slack/status.py,sha256=pGMCbTMg1r3OUxoepZiArUjM3mTKSEtimmlo_W3MGMU,21726
|
|
104
104
|
managed_deepagents/_channels/slack/transport.py,sha256=_BuHwmP5-qNh3o86QE1hEgzcNV5S3Fhndb7H56cTdZg,3247
|
|
105
105
|
managed_deepagents/_channels/trigger/__init__.py,sha256=bWj66XoPbDdrztPUCKBuSJBBS2pBocn4EA8FDE3WeBA,48
|
|
106
|
-
managed_deepagents/_channels/trigger/channel.py,sha256=
|
|
106
|
+
managed_deepagents/_channels/trigger/channel.py,sha256=XEGUgAxa3ULZukq7N7C5MrQC8ismRhV0p54P8vChOyw,27593
|
|
107
107
|
managed_deepagents/_channels/trigger/client.py,sha256=Nf2z93BTGJ-hF76i6P0oSmsgqDVYvmyrGXG-XQTdG-c,9501
|
|
108
108
|
managed_deepagents/_channels/trigger/conversation.py,sha256=aTAOIuD_2XHbuC5OoCSY6SDfHJUPMAO3txd9dSA0Hzk,4110
|
|
109
|
-
managed_deepagents/_channels/trigger/http.py,sha256=
|
|
109
|
+
managed_deepagents/_channels/trigger/http.py,sha256=v4qeLzZBqDElInL6F67iWRKZaUpL8XAdXIYOD9MXP9Q,52658
|
|
110
110
|
managed_deepagents/_channels/trigger/identity_context.py,sha256=QSuHeb_ohADIQg5B8r5eV0oQIE-V2I1O64ehIuHRQ-s,8065
|
|
111
111
|
managed_deepagents/_channels/trigger/ingress.py,sha256=BTxbPmEcPvQHe_wCMOD_FPWP2MznzUsQe155Q4BI55o,12920
|
|
112
112
|
managed_deepagents/_channels/trigger/tracing_project.py,sha256=iBFGDboFcCClXJvNV4PgTO8TeAhna5ms-NTXlTd8uV0,2091
|
|
113
113
|
managed_deepagents/_channels/trigger/transport.py,sha256=uV8Mv4Jf9oXGCs7M4nGrgUEoO6z5HrnVxKXbx9ud83I,2913
|
|
114
|
-
managed_deepagents/_channels/trigger/types.py,sha256=
|
|
114
|
+
managed_deepagents/_channels/trigger/types.py,sha256=DGBpsFpX1i_1m9TdjZZjnJIFQ-jq0QBF6pdpqiCR5Ik,14891
|
|
115
115
|
managed_deepagents/_concurrency/__init__.py,sha256=Lh6c0nU_E8YsGX3kdYM6KxSrL1WdxlUt8YKwleT50Lk,248
|
|
116
116
|
managed_deepagents/_concurrency/batch_processor.py,sha256=2aCVMckCCTs8-4vndRWJo9dACbb_2Gem8mvRLmP4JTw,4979
|
|
117
117
|
managed_deepagents/_concurrency/deadline.py,sha256=DEZpiUJZaXru10A2DwkUoBvCEkusLAThBYrK-5ZWlec,1159
|
|
@@ -155,9 +155,9 @@ managed_deepagents/identity/__init__.py,sha256=uZUKDHtfBc0n-T2xoJEFMqMplmXwAK7hb
|
|
|
155
155
|
managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
|
|
156
156
|
managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
|
|
157
157
|
managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
|
|
158
|
-
managed_deepagents-0.10.3.
|
|
159
|
-
managed_deepagents-0.10.3.
|
|
160
|
-
managed_deepagents-0.10.3.
|
|
161
|
-
managed_deepagents-0.10.3.
|
|
162
|
-
managed_deepagents-0.10.3.
|
|
163
|
-
managed_deepagents-0.10.3.
|
|
158
|
+
managed_deepagents-0.10.3.dev2.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
|
|
159
|
+
managed_deepagents-0.10.3.dev2.dist-info/METADATA,sha256=dms0igyMia4t7UU3Jbf8o1ZDtk0fOMDXvd0pTyFcSmo,94332
|
|
160
|
+
managed_deepagents-0.10.3.dev2.dist-info/WHEEL,sha256=bhMFZwp6VMtrbl2Ck6PlXryKaCggO1NzYn_HcFbBF1I,97
|
|
161
|
+
managed_deepagents-0.10.3.dev2.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
|
|
162
|
+
managed_deepagents-0.10.3.dev2.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
|
|
163
|
+
managed_deepagents-0.10.3.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{managed_deepagents-0.10.3.dev1.dist-info → managed_deepagents-0.10.3.dev2.dist-info}/top_level.txt
RENAMED
|
File without changes
|