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

Method WithMaxBuffer

llm/partial_input.go:74–77  ·  view source on GitHub ↗

WithMaxBuffer overrides the safety cap. Negative or zero disables the cap entirely (caller assumes the risk of unbounded growth).

(n int)

Source from the content-addressed store, hash-verified

72// WithMaxBuffer overrides the safety cap. Negative or zero disables
73// the cap entirely (caller assumes the risk of unbounded growth).
74func (r *PartialInputReader) WithMaxBuffer(n int) *PartialInputReader {
75 r.maxBuffer = n
76 return r
77}
78
79// Feed appends another JSON fragment from the provider and attempts to
80// re-parse the accumulated buffer. If parsing succeeds and yields a

Calls

no outgoing calls

Tested by 1