Pydantic Models
Smarter API LLMHost Manifest Constants.
Smarter API Manifest - LLMHost.metadata.
- class smarter.apps.llmhost.manifest.models.llmhost.metadata.SAMLLMHostMetadata(*, name: str, description: str | None, version: str | None, tags: List[str] | None = <factory>, annotations: List[dict[str, str | int | float | bool | ~datetime.date | ~datetime.datetime | ~decimal.Decimal | ~uuid.UUID | bytes | list | dict]] | None=<factory>)[source]
Bases:
AbstractSAMMetadataBaseSmarter API LLMHost Manifest - Metadata class.
Pydantic manifest spec for the LLMHost SAM (Smarter API Manifest) resource.
- class smarter.apps.llmhost.manifest.models.llmhost.spec.SAMLLMHostCharacteristicsConfig(**data)[source]
Bases:
BaseModelModel capability metadata.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- quantization: Quantization
- class smarter.apps.llmhost.manifest.models.llmhost.spec.SAMLLMHostHealthCheckConfig(**data)[source]
Bases:
BaseModelOptional health check wiring.
- class smarter.apps.llmhost.manifest.models.llmhost.spec.SAMLLMHostInfrastructureConfig(**data)[source]
Bases:
BaseModelWhere and on what hardware this LLM is deployed.
- deploymentType: DeploymentType
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class smarter.apps.llmhost.manifest.models.llmhost.spec.SAMLLMHostProvenanceConfig(**data)[source]
Bases:
BaseModelWhere the model weights came from.
- class smarter.apps.llmhost.manifest.models.llmhost.spec.SAMLLMHostServingConfig(**data)[source]
Bases:
BaseModelThe inference server this LLM is exposed through.
- apiFormat: ApiFormat
- endpointUrl: HttpUrl
- inferenceEngine: InferenceEngine
- class smarter.apps.llmhost.manifest.models.llmhost.spec.SAMLLMHostSpec(*, config: SAMLLMHostSpecConfig)[source]
Bases:
AbstractSAMSpecBaseSmarter API LLMClient Manifest LLMClient.spec.
- config: SAMLLMHostSpecConfig
Smarter API Manifest - LLMHost.status.
- class smarter.apps.llmhost.manifest.models.llmhost.status.SAMLLMHostStatus(*, recordLocator: str, created: datetime, modified: datetime, accountNumber: str, username: str)[source]
Bases:
AbstractSAMStatusBaseSmarter API LLMHost Manifest - Status class.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
- Parameters:
self – The BaseModel instance.
context – The context.
Smarter API LLMHost Manifest.
- class smarter.apps.llmhost.manifest.models.llmhost.model.SAMLLMHost(*, apiVersion: str, kind: str, metadata: SAMLLMHostMetadata, spec: SAMLLMHostSpec, status: SAMLLMHostStatus | None = None)[source]
Bases:
AbstractSAMBaseSmarter API Manifest - LLMHost.
- metadata: SAMLLMHostMetadata
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
- Parameters:
self – The BaseModel instance.
context – The context.
- spec: SAMLLMHostSpec
- status: SAMLLMHostStatus | None