Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/oss/langchain/middleware/built-in.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1124,11 +1124,11 @@ const agent = createAgent({
</ParamField>

<ParamField body="max_tools" type="number">
Maximum number of tools to select. Defaults to no limit.
Maximum number of tools to select. If the model selects more, only the first max_tools will be used. No limit if not specified.
</ParamField>

<ParamField body="always_include" type="list[string]">
List of tool names to always include in the selection
Tool names to always include regardless of selection. These do not count against the max_tools limit.
</ParamField>
:::

Expand All @@ -1137,12 +1137,16 @@ const agent = createAgent({
Model for tool selection. Can be a model identifier string (e.g., `'openai:gpt-4o-mini'`) or a `BaseChatModel` instance. Defaults to the agent's main model.
</ParamField>

<ParamField body="systemPrompt" type="string">
Instructions for the selection model. Uses built-in prompt if not specified.
</ParamField>

<ParamField body="maxTools" type="number">
Maximum number of tools to select. Defaults to no limit.
Maximum number of tools to select. If the model selects more, only the first maxTools will be used. No limit if not specified.
</ParamField>

<ParamField body="alwaysInclude" type="string[]">
Array of tool names to always include in the selection
Tool names to always include regardless of selection. These do not count against the maxTools limit.
</ParamField>
:::

Expand Down
Loading