Static Plugin Model

Smarter API Plugin Manifest Constants

Smarter API Manifest - Plugin.spec

class smarter.apps.plugin.manifest.models.static_plugin.spec.SAMPluginStaticSpec(*, selector: SAMPluginCommonSpecSelector, prompt: SAMPluginCommonSpecPrompt, data: SAMPluginStaticSpecData)[source]

Bases: SAMPluginCommonSpec

Smarter API Plugin Manifest Plugin.spec

class_identifier: ClassVar[str] = 'Plugin.spec'
data: SAMPluginStaticSpecData
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:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

class smarter.apps.plugin.manifest.models.static_plugin.spec.SAMPluginStaticSpecData(*, staticData: dict | None = None)[source]

Bases: SmarterBasePydanticModel

Smarter API Plugin Manifest Plugin.spec.data

class_identifier: ClassVar[str] = 'Plugin.spec.data'
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:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

staticData: dict | None

Smarter API Plugin Manifest

class smarter.apps.plugin.manifest.models.static_plugin.model.SAMStaticPlugin(*, apiVersion: str, kind: str, metadata: SAMPluginCommonMetadata, spec: SAMPluginStaticSpec, status: SAMPluginCommonStatus | None = None)[source]

Bases: SAMPluginCommon

Smarter API Manifest - Plugin

class_identifier: ClassVar[str] = 'Plugin'
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:

None

Parameters:
  • self – The BaseModel instance.

  • context – The context.

spec: SAMPluginStaticSpec