Chat Plugin Usage Model

Smarter API Prompt Manifest Constants.

Smarter API PromptPluginUsage - PromptPluginUsage.metadata.

class smarter.apps.prompt.manifest.models.prompt_plugin_usage.metadata.SAMPromptPluginUsageMetadata(*, 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: AbstractSAMMetadataBase

Smarter API PromptPluginUsage Manifest - Metadata class.

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

Smarter API PromptPluginUsage - PromptPluginUsage.spec.

class smarter.apps.prompt.manifest.models.prompt_plugin_usage.spec.SAMPromptPluginUsageSpecConfig[source]

Bases: AbstractSAMSpecBase

Smarter API PromptPluginUsage Manifest PromptPluginUsage.spec.config.

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

Smarter API Manifest - PromptPluginUsage.status.

class smarter.apps.prompt.manifest.models.prompt_plugin_usage.status.SAMPromptPluginUsageStatus(*, recordLocator: str, created: datetime, modified: datetime)[source]

Bases: AbstractSAMStatusBase

Smarter API PromptPluginUsage Manifest - Status class.

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

Smarter API PromptPluginUsage Manifest.

class smarter.apps.prompt.manifest.models.prompt_plugin_usage.model.SAMPromptPluginUsage(*, apiVersion: str, kind: str, metadata: SAMPromptPluginUsageMetadata, spec: SAMPromptPluginUsageSpecConfig, status: SAMPromptPluginUsageStatus | None = None)[source]

Bases: AbstractSAMBase

Smarter API Manifest - PromptPluginUsage.

class_identifier: ClassVar[str] = 'PromptPluginUsage'
metadata: SAMPromptPluginUsageMetadata
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: SAMPromptPluginUsageSpecConfig
status: SAMPromptPluginUsageStatus | None