MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / with_max_tokens

Method with_max_tokens

core/src/agents.rs:70–73  ·  view source on GitHub ↗

Set max tokens

(mut self, max_tokens: u32)

Source from the content-addressed store, hash-verified

68
69 /// Set max tokens
70 pub fn with_max_tokens(mut self, max_tokens: u32) -> Self {
71 self.max_tokens = Some(max_tokens);
72 self
73 }
74
75 /// Set temperature
76 pub fn with_temperature(mut self, temperature: f32) -> Self {

Callers 15

__anext__Method · 0.45
complete_batchMethod · 0.45
chat_optimizedMethod · 0.45
__anext__Method · 0.45
streaming_responseMethod · 0.45
build_llm_requestMethod · 0.45
execute_internalMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_openai_llmFunction · 0.36
test_anthropic_llmFunction · 0.36
test_huggingface_llmFunction · 0.36
test_perplexity_llmFunction · 0.36
test_deepseek_llmFunction · 0.36
test_ollama_llmFunction · 0.36
test_togetherai_llmFunction · 0.36
test_azurellm_with_toolsFunction · 0.36