Skip to content

Commit 46851ea

Browse files
committed
feat: introduce HealthMiddleware for agent health monitoring and resilience
1 parent 80c3970 commit 46851ea

File tree

4 files changed

+1571
-2
lines changed

4 files changed

+1571
-2
lines changed

libs/langchain_v1/langchain/agents/middleware/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
ContextEditingMiddleware,
66
)
77
from .file_search import FilesystemFileSearchMiddleware
8+
from .health import (
9+
HealthMiddleware,
10+
HealthPolicy,
11+
HealthStats,
12+
create_langsmith_emitter,
13+
)
814
from .human_in_the_loop import (
915
HumanInTheLoopMiddleware,
1016
InterruptOnConfig,
@@ -49,6 +55,9 @@
4955
"ContextEditingMiddleware",
5056
"DockerExecutionPolicy",
5157
"FilesystemFileSearchMiddleware",
58+
"HealthMiddleware",
59+
"HealthPolicy",
60+
"HealthStats",
5261
"HostExecutionPolicy",
5362
"HumanInTheLoopMiddleware",
5463
"InterruptOnConfig",
@@ -71,6 +80,7 @@
7180
"after_model",
7281
"before_agent",
7382
"before_model",
83+
"create_langsmith_emitter",
7484
"dynamic_prompt",
7585
"hook_config",
7686
"wrap_model_call",

0 commit comments

Comments
 (0)