langchain-dev-utils 1.2.2__py3-none-any.whl → 1.2.3__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.
- langchain_dev_utils/__init__.py +1 -1
- langchain_dev_utils/agents/middleware/model_fallback.py +1 -1
- langchain_dev_utils/agents/middleware/plan.py +5 -1
- {langchain_dev_utils-1.2.2.dist-info → langchain_dev_utils-1.2.3.dist-info}/METADATA +5 -5
- {langchain_dev_utils-1.2.2.dist-info → langchain_dev_utils-1.2.3.dist-info}/RECORD +7 -7
- {langchain_dev_utils-1.2.2.dist-info → langchain_dev_utils-1.2.3.dist-info}/WHEEL +0 -0
- {langchain_dev_utils-1.2.2.dist-info → langchain_dev_utils-1.2.3.dist-info}/licenses/LICENSE +0 -0
langchain_dev_utils/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.3"
|
|
@@ -17,7 +17,7 @@ class ModelFallbackMiddleware(_ModelFallbackMiddleware):
|
|
|
17
17
|
|
|
18
18
|
Example:
|
|
19
19
|
```python
|
|
20
|
-
from langchain_dev_utils.agents.middleware
|
|
20
|
+
from langchain_dev_utils.agents.middleware import ModelFallbackMiddleware
|
|
21
21
|
from langchain_dev_utils.agents import create_agent
|
|
22
22
|
|
|
23
23
|
fallback = ModelFallbackMiddleware(
|
|
@@ -250,6 +250,8 @@ _PLAN_SYSTEM_PROMPT_NOT_READ_PLAN = """You can manage task plans using two simpl
|
|
|
250
250
|
## finish_sub_plan
|
|
251
251
|
- Call it **only when the current task is 100% done**. It automatically marks it `"done"` and promotes the next `"pending"` task to `"in_progress"`. No parameters needed. Never use it mid-task or if anything’s incomplete.
|
|
252
252
|
Keep plans lean, update immediately, and never batch completions.
|
|
253
|
+
|
|
254
|
+
**Note**: Make sure that all tasks end up with the status `"done"`.
|
|
253
255
|
"""
|
|
254
256
|
|
|
255
257
|
_PLAN_SYSTEM_PROMPT = """You can manage task plans using three simple tools:
|
|
@@ -263,6 +265,8 @@ _PLAN_SYSTEM_PROMPT = """You can manage task plans using three simple tools:
|
|
|
263
265
|
## read_plan
|
|
264
266
|
- Retrieve the full current plan list with statuses, especially when you forget which sub-plan you're supposed to execute next.
|
|
265
267
|
- No parameters required—returns a current plan list with statuses.
|
|
268
|
+
|
|
269
|
+
**Note**: Make sure that all tasks end up with the status `"done"`.
|
|
266
270
|
"""
|
|
267
271
|
|
|
268
272
|
|
|
@@ -290,7 +294,7 @@ class PlanMiddleware(AgentMiddleware):
|
|
|
290
294
|
message_key: The key of the message to be updated. Defaults to "messages".
|
|
291
295
|
Example:
|
|
292
296
|
```python
|
|
293
|
-
from langchain_dev_utils.agents.middleware
|
|
297
|
+
from langchain_dev_utils.agents.middleware import PlanMiddleware
|
|
294
298
|
from langchain_dev_utils.agents import create_agent
|
|
295
299
|
|
|
296
300
|
agent = create_agent("vllm:qwen3-4b", middleware=[PlanMiddleware()])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langchain-dev-utils
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: A practical utility library for LangChain and LangGraph development
|
|
5
5
|
Project-URL: Source Code, https://github.com/TBice123123/langchain-dev-utils
|
|
6
6
|
Project-URL: repository, https://github.com/TBice123123/langchain-dev-utils
|
|
@@ -171,7 +171,7 @@ text = format_sequence([
|
|
|
171
171
|
], separator="\n", with_num=True)
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
**For more information about message conversion, please refer to**: [Message
|
|
174
|
+
**For more information about message conversion, please refer to**: [Message Process](https://tbice123123.github.io/langchain-dev-utils-docs/en/message-conversion/message.html), [Formatting List Content](https://tbice123123.github.io/langchain-dev-utils-docs/en/message-conversion/format.html)
|
|
175
175
|
|
|
176
176
|
### 3. **Tool Calling**
|
|
177
177
|
|
|
@@ -231,7 +231,7 @@ def get_current_time() -> str:
|
|
|
231
231
|
return str(datetime.datetime.now().timestamp())
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
-
**For more information about tool calling, please refer to**: [Add Human-in-the-Loop Support](https://tbice123123.github.io/langchain-dev-utils-docs/en/tool-calling/human-in-the-loop.html), [Tool Call
|
|
234
|
+
**For more information about tool calling, please refer to**: [Add Human-in-the-Loop Support](https://tbice123123.github.io/langchain-dev-utils-docs/en/tool-calling/human-in-the-loop.html), [Tool Call Handling](https://tbice123123.github.io/langchain-dev-utils-docs/en/tool-calling/tool.html)
|
|
235
235
|
|
|
236
236
|
### 4. **Agent Development**
|
|
237
237
|
|
|
@@ -278,7 +278,7 @@ response = agent.invoke({"messages": [{"role": "user", "content": "Give me a tra
|
|
|
278
278
|
print(response)
|
|
279
279
|
```
|
|
280
280
|
|
|
281
|
-
**For more information about agent development and all built-in middleware, please refer to**: [
|
|
281
|
+
**For more information about agent development and all built-in middleware, please refer to**: [Pre-built Agent Functions](https://tbice123123.github.io/langchain-dev-utils-docs/en/agent-development/prebuilt.html), [Middleware](https://tbice123123.github.io/langchain-dev-utils-docs/en/agent-development/middleware.html)
|
|
282
282
|
|
|
283
283
|
### 5. **State Graph Orchestration**
|
|
284
284
|
|
|
@@ -391,7 +391,7 @@ response = graph.invoke({"messages": [HumanMessage("Hello")]})
|
|
|
391
391
|
print(response)
|
|
392
392
|
```
|
|
393
393
|
|
|
394
|
-
**For more information about state graph orchestration, please refer to**: [State Graph Orchestration
|
|
394
|
+
**For more information about state graph orchestration, please refer to**: [State Graph Orchestration](https://tbice123123.github.io/langchain-dev-utils-docs/en/graph-orchestration/pipeline.html)
|
|
395
395
|
|
|
396
396
|
## 💬 Join the Community
|
|
397
397
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
langchain_dev_utils/__init__.py,sha256=
|
|
1
|
+
langchain_dev_utils/__init__.py,sha256=C-D_WWrVkBDmQmApLcm0sWNh2CgIrwWfc8_sB5vvU-Q,22
|
|
2
2
|
langchain_dev_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
langchain_dev_utils/agents/__init__.py,sha256=e17SMQdJIQngbUCr2N1tY-yw0tD3tEnH7PSvyDmVPeQ,127
|
|
4
4
|
langchain_dev_utils/agents/factory.py,sha256=h4uAkid2NJMMs4qV6RYFexew-ixfhEvpa254eDeDEcU,3912
|
|
@@ -6,9 +6,9 @@ langchain_dev_utils/agents/file_system.py,sha256=S6RUEmQI2eerW0gBQp0IP0X5ak5Fwvq
|
|
|
6
6
|
langchain_dev_utils/agents/plan.py,sha256=ydJuJLlNydheQvLPl2uCc3TBVv42YxGzPhKgtldIdIk,6497
|
|
7
7
|
langchain_dev_utils/agents/wrap.py,sha256=4BWksU9DRz8c3ZHQiUi4GHwGhNysDLNs8pmLWV7BeAI,5165
|
|
8
8
|
langchain_dev_utils/agents/middleware/__init__.py,sha256=cjrb8Rue5uukl9pKPF7CjSrHtcYsUBj3Mdvv2szlp7E,679
|
|
9
|
-
langchain_dev_utils/agents/middleware/model_fallback.py,sha256=
|
|
9
|
+
langchain_dev_utils/agents/middleware/model_fallback.py,sha256=pXdraahOMukLgvjX70LwhrjIoEhLYQfNEwJMQHG2WPk,1673
|
|
10
10
|
langchain_dev_utils/agents/middleware/model_router.py,sha256=bq-sQ7wmvpeRM3cjFPErLQxiWfS6l5nEVBN01NNWjAU,9077
|
|
11
|
-
langchain_dev_utils/agents/middleware/plan.py,sha256=
|
|
11
|
+
langchain_dev_utils/agents/middleware/plan.py,sha256=saRXhzkC2pd7LNiNclSmGJelmisbTXhhTrbSUkSkf9g,16220
|
|
12
12
|
langchain_dev_utils/agents/middleware/summarization.py,sha256=BtWPJcQBssGAT0nb1c0xsGEOsb8x5sAAE6xqujYjHhY,3027
|
|
13
13
|
langchain_dev_utils/agents/middleware/tool_emulator.py,sha256=u9rV24yUB-dyc1uUfUe74B1wOGVI3TZRwxkE1bvGm18,2025
|
|
14
14
|
langchain_dev_utils/agents/middleware/tool_selection.py,sha256=ZqdyK4Yhp2u3GM6B_D6U7Srca9vy1o7s6N_LrV24-dQ,3107
|
|
@@ -29,7 +29,7 @@ langchain_dev_utils/pipeline/types.py,sha256=T3aROKKXeWvd0jcH5XkgMDQfEkLfPaiOhhV
|
|
|
29
29
|
langchain_dev_utils/tool_calling/__init__.py,sha256=mu_WxKMcu6RoTf4vkTPbA1WSBSNc6YIqyBtOQ6iVQj4,322
|
|
30
30
|
langchain_dev_utils/tool_calling/human_in_the_loop.py,sha256=nbaON9806pv5tpMRQUA_Ch3HJA5HBFgzZR7kQRf6PiY,9819
|
|
31
31
|
langchain_dev_utils/tool_calling/utils.py,sha256=3cNv_Zx32KxdsGn8IkxjWUzxYEEwVJeJgTZTbfSg0pA,2751
|
|
32
|
-
langchain_dev_utils-1.2.
|
|
33
|
-
langchain_dev_utils-1.2.
|
|
34
|
-
langchain_dev_utils-1.2.
|
|
35
|
-
langchain_dev_utils-1.2.
|
|
32
|
+
langchain_dev_utils-1.2.3.dist-info/METADATA,sha256=p0QMY0-NQL2kwnJxui2bdIO_ua-kacHVRw7nVQNI8o8,16296
|
|
33
|
+
langchain_dev_utils-1.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
langchain_dev_utils-1.2.3.dist-info/licenses/LICENSE,sha256=AWAOzNEcsvCEzHOF0qby5OKxviVH_eT9Yce1sgJTico,1084
|
|
35
|
+
langchain_dev_utils-1.2.3.dist-info/RECORD,,
|
|
File without changes
|
{langchain_dev_utils-1.2.2.dist-info → langchain_dev_utils-1.2.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|