@@ -971,7 +971,7 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
971
971
return model.bind_tools(tools)
972
972
```
973
973
974
- !!! note "Dynamic Model Requirements"
974
+ .. note::
975
975
Ensure returned models have appropriate tools bound via
976
976
`.bind_tools()` and support required functionality. Bound tools
977
977
must be a subset of those specified in the `tools` parameter.
@@ -1011,10 +1011,10 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
1011
1011
- description: Optional custom description (defaults to model docstring)
1012
1012
- strict: Whether to enforce strict validation
1013
1013
1014
- !!! Important
1014
+ .. important::
1015
1015
`response_format` requires the model to support tool calling
1016
1016
1017
- !!! Note
1017
+ .. note::
1018
1018
Structured responses are handled directly in the model call node via tool calls,
1019
1019
eliminating the need for separate structured response nodes.
1020
1020
@@ -1037,12 +1037,12 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
1037
1037
}
1038
1038
```
1039
1039
1040
- !!! Important
1040
+ .. important::
1041
1041
At least one of `messages` or `llm_input_messages` MUST be provided
1042
1042
and will be used as an input to the `agent` node.
1043
1043
The rest of the keys will be added to the graph state.
1044
1044
1045
- !!! Warning
1045
+ .. warning::
1046
1046
If you are returning `messages` in the pre-model hook,
1047
1047
you should OVERWRITE the `messages` key by doing the following:
1048
1048
@@ -1059,7 +1059,7 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
1059
1059
Post-model hook must be a callable or a runnable that takes in
1060
1060
current graph state and returns a state update.
1061
1061
1062
- !!! Note
1062
+ .. note::
1063
1063
Only available with `version="v2"`.
1064
1064
state_schema: An optional state schema that defines graph state.
1065
1065
Must have `messages` and `remaining_steps` keys.
@@ -1092,7 +1092,7 @@ def select_model(state: AgentState, runtime: Runtime[ModelContext]) -> ChatOpenA
1092
1092
another graph as a subgraph node -
1093
1093
particularly useful for building multi-agent systems.
1094
1094
1095
- !!! warning "`config_schema` Deprecated"
1095
+ .. warning::
1096
1096
The `config_schema` parameter is deprecated in v0.6.0 and support will be removed in v2.0.0.
1097
1097
Please use `context_schema` instead to specify the schema for run-scoped context.
1098
1098
0 commit comments