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

Function apply_step_budget

core/src/agent_api/agent_binding.rs:33–37  ·  view source on GitHub ↗
(opts: &mut SessionOptions, def: &AgentDefinition)

Source from the content-addressed store, hash-verified

31}
32
33fn apply_step_budget(opts: &mut SessionOptions, def: &AgentDefinition) {
34 if opts.max_tool_rounds.is_none() {
35 opts.max_tool_rounds = def.max_steps;
36 }
37}
38
39fn apply_model(opts: &mut SessionOptions, def: &AgentDefinition) {
40 if opts.model.is_some() {

Callers 1

apply_agent_definitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected