gen_ai_hub
.
orchestration
.
models
.content_filtering
index
/home/jenkins/agent/workspace/ation_generative-ai-hub-sdk_main/gen_ai_hub/orchestration/models/content_filtering.py
Classes
gen_ai_hub.orchestration.models.base.JSONSerializable
(
abc.ABC
)
ContentFiltering
InputFiltering
OutputFiltering
class
ContentFiltering
(
gen_ai_hub.orchestration.models.base.JSONSerializable
)
ContentFiltering
(input_filtering: Optional[gen_ai_hub.orchestration.models.content_filtering.
InputFiltering
] = None, output_filtering: Optional[gen_ai_hub.orchestration.models.content_filtering.
OutputFiltering
] = None)
Module for managing and applying content filters.
Args:
input_filtering: Module for filtering and validating input content before processing.
output_filtering: Module for filtering and validating output content after generation.
Method resolution order:
ContentFiltering
gen_ai_hub.orchestration.models.base.JSONSerializable
abc.ABC
builtins.object
Methods defined here:
__init__
(self, input_filtering: Optional[gen_ai_hub.orchestration.models.content_filtering.InputFiltering] = None, output_filtering: Optional[gen_ai_hub.orchestration.models.content_filtering.OutputFiltering] = None)
Initialize self. See help(type(self)) for accurate signature.
to_dict
(self)
Convert the object to a JSON-serializable dictionary.
Data and other attributes defined here:
__abstractmethods__
= frozenset()
__annotations__
= {}
Data descriptors inherited from
gen_ai_hub.orchestration.models.base.JSONSerializable
:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
class
InputFiltering
(
gen_ai_hub.orchestration.models.base.JSONSerializable
)
InputFiltering
(filters: List[gen_ai_hub.orchestration.models.content_filter.ContentFilter])
Module for managing and applying input content filters.
Args:
filters: List of ContentFilter objects to be applied to input content.
Method resolution order:
InputFiltering
gen_ai_hub.orchestration.models.base.JSONSerializable
abc.ABC
builtins.object
Methods defined here:
__init__
(self, filters: List[gen_ai_hub.orchestration.models.content_filter.ContentFilter])
Initialize self. See help(type(self)) for accurate signature.
to_dict
(self)
Convert the object to a JSON-serializable dictionary.
Data and other attributes defined here:
__abstractmethods__
= frozenset()
__annotations__
= {}
Data descriptors inherited from
gen_ai_hub.orchestration.models.base.JSONSerializable
:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
class
OutputFiltering
(
gen_ai_hub.orchestration.models.base.JSONSerializable
)
OutputFiltering
(filters: List[gen_ai_hub.orchestration.models.content_filter.ContentFilter], stream_options: Optional[dict] = None)
Module for managing and applying output content filters.
Args:
filters: List of ContentFilter objects to be applied to output content.
stream_options: Module-specific streaming options.
Method resolution order:
OutputFiltering
gen_ai_hub.orchestration.models.base.JSONSerializable
abc.ABC
builtins.object
Methods defined here:
__init__
(self, filters: List[gen_ai_hub.orchestration.models.content_filter.ContentFilter], stream_options: Optional[dict] = None)
Initialize self. See help(type(self)) for accurate signature.
to_dict
(self)
Convert the object to a JSON-serializable dictionary.
Data and other attributes defined here:
__abstractmethods__
= frozenset()
__annotations__
= {}
Data descriptors inherited from
gen_ai_hub.orchestration.models.base.JSONSerializable
:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
Data
List
= typing.List
Optional
= typing.Optional