Chat Model

Smarter API Prompt Manifest Constants.

Smarter API Prompt - Prompt.metadata.

class smarter.apps.prompt.manifest.models.prompt.metadata.SAMPromptMetadata(*, name, description, version, tags=<factory>, annotations=<factory>)[source]

Bases: AbstractSAMMetadataBase

Smarter API Prompt Manifest - Metadata class.

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

Smarter API Prompt - Prompt.spec.

class smarter.apps.prompt.manifest.models.prompt.spec.SAMPromptSpecConfig(*, sessionKey=None, llmclient=None, ipAddress=None, userAgent=None, url=None)[source]

Bases: AbstractSAMSpecBase

Smarter API Prompt Manifest Prompt.spec.config.

class_identifier: ClassVar[str] = 'Prompt.spec.configuration'
ipAddress: str | None
llmclient: str | None
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

sessionKey: str | None
url: str | None
userAgent: str | None

Smarter API Manifest - Prompt.status.

class smarter.apps.prompt.manifest.models.prompt.status.SAMPromptStatus(*, recordLocator, created, modified, dependencies=None)[source]

Bases: AbstractSAMStatusBase

Smarter API Prompt Manifest - Status class.

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

Smarter API Prompt Manifest.

class smarter.apps.prompt.manifest.models.prompt.model.SAMPrompt(*, apiVersion, kind, metadata, spec, status=None)[source]

Bases: AbstractSAMBase

Smarter API Manifest - Prompt.

class_identifier: ClassVar[str] = 'Prompt'
metadata: SAMPromptMetadata
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: SAMPromptSpecConfig
status: SAMPromptStatus | None