MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_max_results

Method with_max_results

core/src/context/mod.rs:136–139  ·  view source on GitHub ↗

Set the maximum number of results

(mut self, max: usize)

Source from the content-addressed store, hash-verified

134
135 /// Set the maximum number of results
136 pub fn with_max_results(mut self, max: usize) -> Self {
137 self.max_results = max;
138 self
139 }
140
141 /// Set the maximum total tokens
142 pub fn with_max_tokens(mut self, max: usize) -> Self {

Callers 3

respects_result_limitFunction · 0.80

Calls

no outgoing calls

Tested by 2