Skip to content

Commit c3fed20

Browse files
authored
docs: correct ported over directives (#33121)
Match rest of repo
1 parent 6d418ba commit c3fed20

File tree

4 files changed

+17
-22
lines changed

4 files changed

+17
-22
lines changed

docs/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,13 @@ def example_function(param1: str, param2: int = 5) -> bool:
118118
119119
.. warning::
120120
This function is experimental and may change.
121-
122-
.. deprecated:: 0.2.0
123-
Use :func:`new_function` instead.
124121
"""
125122
```
126123

127124
**Special Markers:**
128125

129126
- `:private:` in docstrings excludes members from documentation
130-
- `.. deprecated::` creates deprecation notices
131127
- `.. warning::` adds warning admonitions
132-
- `.. beta::` (custom directive) marks beta features
133128

134129
#### Site Styling and Assets
135130

libs/langchain_v1/langchain/agents/react_agent.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
971971
return model.bind_tools(tools)
972972
```
973973
974-
!!! note "Dynamic Model Requirements"
974+
.. note::
975975
Ensure returned models have appropriate tools bound via
976976
`.bind_tools()` and support required functionality. Bound tools
977977
must be a subset of those specified in the `tools` parameter.
@@ -1011,10 +1011,10 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
10111011
- description: Optional custom description (defaults to model docstring)
10121012
- strict: Whether to enforce strict validation
10131013
1014-
!!! Important
1014+
.. important::
10151015
`response_format` requires the model to support tool calling
10161016
1017-
!!! Note
1017+
.. note::
10181018
Structured responses are handled directly in the model call node via tool calls,
10191019
eliminating the need for separate structured response nodes.
10201020
@@ -1037,12 +1037,12 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
10371037
}
10381038
```
10391039
1040-
!!! Important
1040+
.. important::
10411041
At least one of `messages` or `llm_input_messages` MUST be provided
10421042
and will be used as an input to the `agent` node.
10431043
The rest of the keys will be added to the graph state.
10441044
1045-
!!! Warning
1045+
.. warning::
10461046
If you are returning `messages` in the pre-model hook,
10471047
you should OVERWRITE the `messages` key by doing the following:
10481048
@@ -1059,7 +1059,7 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
10591059
Post-model hook must be a callable or a runnable that takes in
10601060
current graph state and returns a state update.
10611061
1062-
!!! Note
1062+
.. note::
10631063
Only available with `version="v2"`.
10641064
state_schema: An optional state schema that defines graph state.
10651065
Must have `messages` and `remaining_steps` keys.
@@ -1092,7 +1092,7 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
10921092
another graph as a subgraph node -
10931093
particularly useful for building multi-agent systems.
10941094
1095-
!!! warning "`config_schema` Deprecated"
1095+
.. warning::
10961096
The `config_schema` parameter is deprecated in v0.6.0 and support will be removed in v2.0.0.
10971097
Please use `context_schema` instead to specify the schema for run-scoped context.
10981098

libs/langchain_v1/langchain/agents/tool_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ class InjectedStore(InjectedToolArg):
10201020
for maintaining context, user preferences, or any other data that needs to
10211021
persist beyond individual workflow executions.
10221022
1023-
!!! Warning
1023+
.. warning::
10241024
`InjectedStore` annotation requires `langchain-core >= 0.3.8`
10251025
10261026
Example:

uv.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)