MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / extract_max_iterations

Method extract_max_iterations

python/src/workflow/executor.rs:813–822  ·  view source on GitHub ↗
(
        node_config: &std::collections::HashMap<String, serde_json::Value>,
        default_value: usize,
    )

Source from the content-addressed store, hash-verified

811 }
812
813 fn extract_max_iterations(
814 node_config: &std::collections::HashMap<String, serde_json::Value>,
815 default_value: usize,
816 ) -> usize {
817 node_config
818 .get("max_iterations")
819 .and_then(|v| v.as_u64())
820 .map(|v| v as usize)
821 .unwrap_or(default_value)
822 }
823
824 fn apply_node_llm_overrides(
825 mut req: graphbit_core::llm::LlmRequest,

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected