Validate execution configuration
(&self)
| 507 | } |
| 508 | /// Validate execution configuration |
| 509 | fn validate_config(&self) -> Result<(), ToolExecutionError> { |
| 510 | if self.config.max_execution_time_ms == 0 { |
| 511 | return Err(ToolExecutionError::ValidationError( |
| 512 | "Max execution time must be greater than 0".to_string(), |
| 513 | )); |
| 514 | } |
| 515 | |
| 516 | if self.config.max_tool_calls == 0 { |
| 517 | return Err(ToolExecutionError::ValidationError( |
| 518 | "Max tool calls must be greater than 0".to_string(), |
| 519 | )); |
| 520 | } |
| 521 | |
| 522 | Ok(()) |
| 523 | } |
| 524 | |
| 525 | /// Validate tool call parameters |
| 526 | fn validate_tool_call(&self, tool_call: &LlmToolCall) -> Result<(), ToolExecutionError> { |
no test coverage detected