MCPcopy Create free account
hub / github.com/diillson/chatcli / NewPartialInputReader

Function NewPartialInputReader

llm/partial_input.go:65–70  ·  view source on GitHub ↗

NewPartialInputReader builds a reader with a default 64KiB buffer limit. Tool inputs are tiny in practice (<2KB); the cap guards against pathological streams.

()

Source from the content-addressed store, hash-verified

63// limit. Tool inputs are tiny in practice (<2KB); the cap guards
64// against pathological streams.
65func NewPartialInputReader() *PartialInputReader {
66 return &PartialInputReader{
67 emitted: make(map[string]struct{}),
68 maxBuffer: 64 * 1024,
69 }
70}
71
72// WithMaxBuffer overrides the safety cap. Negative or zero disables
73// the cap entirely (caller assumes the risk of unbounded growth).

Calls

no outgoing calls