gen_ai_hub.evaluations.helpers.collector
index
/home/jenkins/agent/workspace/ation_generative-ai-hub-sdk_main/gen_ai_hub/evaluations/helpers/collector.py

 
Classes
       
builtins.object
ValidationCollector

 
class ValidationCollector(builtins.object)
    A class to collect and manage validation errors encountered during the orchestration configuration validation process.
 
  Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
add_error(self, internal_code, message)
Adds an error to the collector.
Args:
    internal_code (str): The internal error code.
    message (str): The detailed error message.
has_error_code(self, code)
checks if error code exists in the list of errors
has_errors(self)
checks if the collector collected any errors
raise_if_errors(self)
Raises a ValidationError if there are any collected errors.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)