Skip to content

Commit e934974

Browse files
stephenvapiaiclaude
andcommitted
docs: validate the strict example, link model.maxTokens, tidy the symptom card
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 27b043f commit e934974

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

‎fern/tools/custom-tools-troubleshooting.mdx‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ Start with the most common issue for your symptoms:
3131
format problems
3232
</Card>
3333
<Card title="Parameters cut off" href="#token-truncation">
34-
**Symptoms:** Tool parameters or responses truncated Increase the model
35-
token limit
34+
**Symptoms:** Tool parameters or responses are truncated.
3635
</Card>
3736
</CardGroup>
3837

@@ -77,14 +76,17 @@ Check that your tool schema includes all required parameters:
7776

7877
Add `strict: true` to catch validation errors early:
7978

80-
```json title="Tool configuration" {7}
79+
```json title="Tool configuration" {9}
8180
{
82-
"name": "get_weather",
83-
"description": "Get current weather for a city",
84-
"parameters": {
85-
// ... your parameters
86-
},
87-
"strict": true
81+
"type": "function",
82+
"function": {
83+
"name": "get_weather",
84+
"description": "Get current weather for a city",
85+
"parameters": {
86+
// ... your parameters
87+
},
88+
"strict": true
89+
}
8890
}
8991
```
9092

@@ -228,8 +230,9 @@ Tool parameters or responses are getting cut off.
228230
### Increase the model token limit
229231

230232
Tool call arguments are generated by the model, so they draw on the same
231-
per-turn token budget as speech. Raise `maxTokens` on the assistant's `model`,
232-
not on the tool. It accepts a value from `50` to `10000` and defaults to `250`.
233+
per-turn token budget as speech. Raise [`maxTokens` on the assistant's `model`](/api-reference/assistants/create#request.body.model),
234+
not on the tool. It accepts a value from `50` to `10000`. When unset, the model
235+
applies its own default (currently `250`).
233236

234237
<Warning>
235238
`maxTokens` is a model property, not a tool property. Setting it inside

0 commit comments

Comments
 (0)