Skip to content
Merged
Show file tree
Hide file tree
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
40 changes: 40 additions & 0 deletions CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ The project contains predefined configs of application and predefined tools
| deployment | Yes | Object | The DIAL deployment configuration. See [Deployment configuration](#deployment-configuration) | - | - |
| system_prompt | Yes | Object | The configuration for the system prompt. See [System prompt configuration](#system-prompt-configuration) | - | - |
| max_iterations | No | Integer | The max count of orchestrator(agent) operations. -1 value for infinite | Integer | 15 |
| tool_discovery | No | Object | `[Preview]` Dynamic tool discovery configuration. See [Tool discovery configuration](#tool-discovery-configuration) | - | `null` |

#### Deployment configuration

Expand Down Expand Up @@ -331,6 +332,39 @@ Custom system prompt:

</details>

#### Tool discovery configuration

`[Preview]` Requires `ENABLE_PREVIEW_FEATURES=true`. When enabled, toolsets withheld from the initial LLM payload
(see the per-toolset `deferred` field in [Tool sets configuration](#tool-sets-configuration)) are surfaced on demand
via the `internal_tool_search` meta-tool (referred to as "tool search" below), which routes the query to the matching
tool schemas through an isolated LLM call.

| Field | Required | Type | Description | Available Values | Default Value |
|------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------|---------------|
| enabled | No | Boolean | Enable dynamic tool discovery. When `true`, toolsets with `deferred: true` are withheld from the initial LLM payload and surfaced via the `internal_tool_search` meta-tool. | - | `false` |
| service_model | No | String | DIAL deployment used for the anonymous routing call inside `internal_tool_search`. Falls back to the orchestrator's own deployment when omitted. | - | - |
| min_tools_for_deferral | No | Integer | Minimum number of tools in a toolset for deferral to apply. Toolsets smaller than this threshold are promoted to eager loading even when `deferred: true`. Deployment-wide default set by `MIN_TOOLS_FOR_DEFERRAL`. | - | `10` |

<details>
<summary><b>Tool discovery configuration JSON sample</b></summary>

```json
{
"orchestrator": {
"deployment": { "name": "gpt-4o" },
"tool_discovery": {
"enabled": true,
"service_model": "gpt-4o-mini",
"min_tools_for_deferral": 5
}
}
}
```

</details>

See [Dynamic Tool Discovery design doc](docs/designs/dynamic_tool_discovery.md) for the full behavioral reference.

### Contexts configuration

| Field | Required | Type | Description | Available Values | Default Value |
Expand Down Expand Up @@ -471,6 +505,12 @@ SSRF envelope, deployment dispatch table, error messages and agent retry behavio

### Tool sets configuration

Most toolset types also accept a `deferred` field (Boolean, default `true`): `[Preview]` when true or unset, and
[Tool discovery configuration](#tool-discovery-configuration) is enabled, the toolset's tool schemas are withheld
from the initial LLM payload and discovered on demand via the `internal_tool_search` meta-tool. Set to `false` to
keep a specific toolset always eager. Currently honored by REST API, MCP, and Internal toolsets; DIAL deployment and
DIAL app toolsets accept the field but do not yet act on it.

#### RestApiToolSet Configuration

| Field | Required | Type | Description | Default Value |
Expand Down
175 changes: 115 additions & 60 deletions README.md
Comment thread
VinShurik marked this conversation as resolved.

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions config/predefined/toolset/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
},
"required": [
"latitude",
"longitude",
"current",
"format"
"longitude"
]
}
}
Expand Down
Loading
Loading