hoops_ai.flowmanager.flow_builder.validate_function_signature

hoops_ai.flowmanager.flow_builder.validate_function_signature(func, expected_params, task_type)

Validates that a function has the expected signature for the task type.

Parameters:
  • func (Callable) – The function to validate

  • expected_params (List[str]) – List of expected parameter names

  • task_type (str) – Type of task for error messages

Returns:

True if signature is valid

Raises:

ValueError – If signature is invalid

Return type:

bool