| 169 | |
| 170 | impl std::fmt::Debug for AgentConfig { |
| 171 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 172 | f.debug_struct("AgentConfig") |
| 173 | .field("prompt_slots", &self.prompt_slots) |
| 174 | .field("tools", &self.tools) |
| 175 | .field("max_tool_rounds", &self.max_tool_rounds) |
| 176 | .field("security_provider", &self.security_provider.is_some()) |
| 177 | .field("permission_checker", &self.permission_checker.is_some()) |
| 178 | .field("permission_policy", &self.permission_policy.is_some()) |
| 179 | .field("confirmation_manager", &self.confirmation_manager.is_some()) |
| 180 | .field("confirmation_policy", &self.confirmation_policy.is_some()) |
| 181 | .field("queue_config", &self.queue_config.is_some()) |
| 182 | .field("context_providers", &self.context_providers.len()) |
| 183 | .field("planning_mode", &self.planning_mode) |
| 184 | .field("goal_tracking", &self.goal_tracking) |
| 185 | .field("hook_engine", &self.hook_engine.is_some()) |
| 186 | .field( |
| 187 | "skill_registry", |
| 188 | &self.skill_registry.as_ref().map(|r| r.len()), |
| 189 | ) |
| 190 | .field( |
| 191 | "enforce_active_skill_tool_restrictions", |
| 192 | &self.enforce_active_skill_tool_restrictions, |
| 193 | ) |
| 194 | .field("max_parse_retries", &self.max_parse_retries) |
| 195 | .field("tool_timeout_ms", &self.tool_timeout_ms) |
| 196 | .field("max_parallel_tasks", &self.max_parallel_tasks) |
| 197 | .field("auto_delegation", &self.auto_delegation) |
| 198 | .field( |
| 199 | "agent_registry", |
| 200 | &self.agent_registry.as_ref().map(|registry| registry.len()), |
| 201 | ) |
| 202 | .field("circuit_breaker_threshold", &self.circuit_breaker_threshold) |
| 203 | .field( |
| 204 | "duplicate_tool_call_threshold", |
| 205 | &self.duplicate_tool_call_threshold, |
| 206 | ) |
| 207 | .field("auto_compact", &self.auto_compact) |
| 208 | .field("auto_compact_threshold", &self.auto_compact_threshold) |
| 209 | .field("max_context_tokens", &self.max_context_tokens) |
| 210 | .field("continuation_enabled", &self.continuation_enabled) |
| 211 | .field("max_continuation_turns", &self.max_continuation_turns) |
| 212 | .field("memory", &self.memory.is_some()) |
| 213 | .finish() |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | impl Default for AgentConfig { |