| | |
- gen_ai_hub.orchestration.models.base.JSONSerializable(abc.ABC)
-
- ContentFiltering
- InputFiltering
- OutputFiltering
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. |
| |
- 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)
- Initializes the OutputFiltering with specified filters and optional streaming options.
:param filters: List of ContentFilter objects to be applied to output content.
:type filters: List[ContentFilter]
:param stream_options: Module-specific streaming options, defaults to None
:type stream_options: Optional[dict], optional
- to_dict(self)
- to_dict method to convert the output filtering configuration to a dictionary.
:return: dictionary representation of the output filtering configuration.
:rtype: dict
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)
| |