gen_ai_hub.prompt_registry.models.orchestration_config module

class gen_ai_hub.prompt_registry.models.orchestration_config.OrchestrationConfigPostRequest(*, name: Annotated[str, MaxLen(max_length=120)], version: Annotated[str, MaxLen(max_length=10)], scenario: Annotated[str, MaxLen(max_length=120)], spec: OrchestrationConfig)

Bases: BaseModel

Request to create an orchestration config.

Parameters:
  • name – The name of the orchestration config.

  • version – The version of the orchestration config.

  • scenario – The scenario of the orchestration config.

  • spec – The orchestration config specification.

name: str
version: str
scenario: str
spec: OrchestrationConfig
model_dump(**kwargs)

Dumps the model to a dictionary with default settings.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class gen_ai_hub.prompt_registry.models.orchestration_config.OrchestrationConfigPostResponse(*, message: str, id: str, scenario: str, name: str, version: str)

Bases: BaseModel

Response to the orchestration config post request.

Parameters:
  • message – Response message.

  • id – UUID of the created/updated config.

  • scenario – The scenario name.

  • name – The config name.

  • version – The config version.

message: str
id: str
scenario: str
name: str
version: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class gen_ai_hub.prompt_registry.models.orchestration_config.OrchestrationConfigGetResponse(*, id: str | None = None, name: str | None = None, version: str | None = None, scenario: str | None = None, creation_timestamp: str | None = None, managed_by: str | None = None, is_version_head: bool | None = None, resource_group_id: str | None = None, spec: OrchestrationConfig | None = None)

Bases: BaseModel

Response to a get orchestration config request.

Parameters:
  • id – UUID of the config.

  • name – Config name.

  • version – Config version.

  • scenario – Scenario name.

  • creation_timestamp – When the config was created.

  • managed_by – Who manages the config.

  • is_version_head – Whether this is the head version.

  • spec – The orchestration config specification (optional).

id: str | None
name: str | None
version: str | None
scenario: str | None
creation_timestamp: str | None
managed_by: str | None
is_version_head: bool | None
resource_group_id: str | None
spec: OrchestrationConfig | None
model_dump(**kwargs)

Dumps the model to a dictionary with default settings.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class gen_ai_hub.prompt_registry.models.orchestration_config.OrchestrationConfigListResponse(*, count: int, resources: List[OrchestrationConfigGetResponse])

Bases: BaseModel

Response to list orchestration configs request.

Parameters:
  • count – Number of configs returned.

  • resources – List of OrchestrationConfigGetResponse objects.

count: int
resources: List[OrchestrationConfigGetResponse]
model_dump(**kwargs)

Dumps the model to a dictionary with default settings.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class gen_ai_hub.prompt_registry.models.orchestration_config.OrchestrationConfigDeleteResponse(*, message: str)

Bases: BaseModel

Response to a delete orchestration config request.

Parameters:

message – Response message.

message: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].