()
| 51 | } |
| 52 | |
| 53 | func newLargeReadTool() *largeReadTool { |
| 54 | return &largeReadTool{BaseTool: coretools.BaseTool{Spec: coretools.ToolSpec{ |
| 55 | Name: "large_read", |
| 56 | Description: "large read", |
| 57 | InputPrototype: largeReadInput{}, |
| 58 | ReadOnly: coretools.BoolPtr(true), |
| 59 | ConcurrencySafe: coretools.BoolPtr(true), |
| 60 | Destructive: coretools.BoolPtr(false), |
| 61 | MaxOutputChars: 100_000, |
| 62 | }}} |
| 63 | } |
| 64 | |
| 65 | func TestInvalidMaxTokensAPIErrorIsNotPromptTooLong(t *testing.T) { |
| 66 | msg := `DeepSeek API error 400: {"error":{"message":"Invalid max_tokens value, the valid range of max_tokens is [1, 393216]","type":"invalid_request_error"}}` |
no outgoing calls
no test coverage detected