Common Plugin Models

Smarter API Manifest - Plugin.metadata.

class smarter.apps.llmtool.manifest.models.common.plugin.metadata.SAMPluginCommonMetadata(*, name, description, version, tags=<factory>, annotations=<factory>, pluginClass)[source]

Bases: AbstractSAMMetadataBase

Smarter API Plugin Manifest - common Metadata class.

model_config = {'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.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • context (Any) – The context.

Return type:

None

pluginClass: str
classmethod validate_plugin_class(v)[source]

Validate the plugin class.

Return type:

str

Smarter API Manifest - Plugin.status.

class smarter.apps.llmtool.manifest.models.common.plugin.status.SAMPluginCommonStatus(*, recordLocator, created, modified, dependencies=None, accountNumber, username)[source]

Bases: AbstractSAMStatusBase

Smarter API Plugin Manifest - Status class.

accountNumber: str
class_identifier: ClassVar[str] = 'Plugin.status'
model_config = {'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.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • context (Any) – The context.

Return type:

None

username: str

Smarter API Plugin Manifest.

class smarter.apps.llmtool.manifest.models.common.plugin.model.SAMPluginCommon(*, apiVersion, kind, metadata, spec, status=None)[source]

Bases: AbstractSAMBase

Smarter API Manifest - Common Plugin Base Model.

class_identifier: ClassVar[str] = 'Plugin'
metadata: SAMPluginCommonMetadata
model_config = {'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.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • context (Any) – The context.

Return type:

None

spec: SAMPluginCommonSpec
status: SAMPluginCommonStatus | None