Share via


ai_service_client_base Module

Classes

AIServiceClientBase

Base class for all AI Services.

Has an ai_model_id and service_id, any other fields have to be defined by the subclasses.

The ai_model_id can refer to a specific model, like 'gpt-35-turbo' for OpenAI, or can just be a string that is used to identify the model in the service.

The service_id is used in Semantic Kernel to identify the service, if empty the ai_model_id is used.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.