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:
SAMPluginCommonSpecSmarter API Plugin Manifest Plugin.spec
- data: SAMPluginStaticSpecData
- class smarter.apps.plugin.manifest.models.static_plugin.spec.SAMPluginStaticSpecData(*, staticData: dict | None = None)[source]
Bases:
SmarterBasePydanticModelSmarter API Plugin Manifest 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:
- Parameters:
self – The BaseModel instance.
context – The context.
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:
SAMPluginCommonSmarter API Manifest - 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:
- Parameters:
self – The BaseModel instance.
context – The context.
- spec: SAMPluginStaticSpec