MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / newLargeReadTool

Function newLargeReadTool

test/agent_test.go:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func 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
65func 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"}}`

Calls

no outgoing calls

Tested by

no test coverage detected