Chat Model
Smarter API Chat Manifest Constants
Smarter API Chat - Chat.metadata
- pydantic model smarter.apps.prompt.manifest.models.chat.metadata.SAMChatMetadata[source]
Bases:
AbstractSAMMetadataBaseSmarter API Chat Manifest - Metadata class.
Show JSON schema
{ "title": "SAMChatMetadata", "description": "Smarter API Chat Manifest - Metadata class.", "type": "object", "properties": { "name": { "description": "The camelCase name of the manifest resource", "title": "Name", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The description for this resource. Be brief. Keep it under 255 characters.", "title": "Description" }, "version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The semantic version of the manifest. Example: 0.1.0", "title": "Version" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']", "title": "Tags" }, "annotations": { "anyOf": [ { "items": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "format": "date", "type": "string" }, { "format": "date-time", "type": "string" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "format": "uuid", "type": "string" }, { "format": "binary", "type": "string" }, { "items": {}, "type": "array" }, { "additionalProperties": true, "type": "object" } ] }, "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "The manifest annotations. Used for storing arbitrary metadata as\n key-value pairs. Example: [{'smarter.sh/test-manifest/project-name': 'Scooby dooby do'}]. The\n key should be a valid url-friendly string. The value accepts\n multi-line string values (YAML block scalars) and various scalar types including\n str, int, float, bool, datetime.date, datetime.datetime, decimal.Decimal, uuid.UUID, bytes, list, dict.\n ", "title": "Annotations" } }, "required": [ "name", "description", "version" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
Smarter API Chat - Chat.spec
- pydantic model smarter.apps.prompt.manifest.models.chat.spec.SAMChatSpecConfig[source]
Bases:
AbstractSAMSpecBaseSmarter API Chat Manifest Chat.spec.config
Show JSON schema
{ "title": "SAMChatSpecConfig", "description": "Smarter API Chat Manifest Chat.spec.config", "type": "object", "properties": {} }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Validators:
Smarter API Manifest - Chat.status
- pydantic model smarter.apps.prompt.manifest.models.chat.status.SAMChatStatus[source]
Bases:
AbstractSAMStatusBaseSmarter API Chat Manifest - Status class.
Show JSON schema
{ "title": "SAMChatStatus", "description": "Smarter API Chat Manifest - Status class.", "type": "object", "properties": { "recordLocator": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.", "title": "Recordlocator" }, "created": { "description": "The date in which this resource was created. Read only.", "format": "date-time", "title": "Created", "type": "string" }, "modified": { "description": "The date in which this resource was most recently changed. Read only.", "format": "date-time", "title": "Modified", "type": "string" } }, "required": [ "created", "modified" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
Smarter API Chat Manifest
- pydantic model smarter.apps.prompt.manifest.models.chat.model.SAMChat[source]
Bases:
AbstractSAMBaseSmarter API Manifest - Chat
Show JSON schema
{ "title": "SAMChat", "description": "Smarter API Manifest - Chat", "type": "object", "properties": { "apiVersion": { "description": "apiVersion[String]: Required. The API version of the AbstractSAMBase.", "title": "Apiversion", "type": "string" }, "kind": { "description": "kind[String]: Required. The kind of resource described by the manifest.", "title": "Kind", "type": "string" }, "metadata": { "$ref": "#/$defs/SAMChatMetadata", "description": "Chat.metadata[obj]: Required, the Chat metadata." }, "spec": { "$ref": "#/$defs/SAMChatSpecConfig", "description": "Chat.spec[obj]: Required, the Chat specification." }, "status": { "anyOf": [ { "$ref": "#/$defs/SAMChatStatus" }, { "type": "null" } ], "default": null, "description": "Chat.status[obj]: Optional, Read-only. Stateful status information about the Chat." } }, "$defs": { "SAMChatMetadata": { "description": "Smarter API Chat Manifest - Metadata class.", "properties": { "name": { "description": "The camelCase name of the manifest resource", "title": "Name", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The description for this resource. Be brief. Keep it under 255 characters.", "title": "Description" }, "version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "The semantic version of the manifest. Example: 0.1.0", "title": "Version" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']", "title": "Tags" }, "annotations": { "anyOf": [ { "items": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "format": "date", "type": "string" }, { "format": "date-time", "type": "string" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "format": "uuid", "type": "string" }, { "format": "binary", "type": "string" }, { "items": {}, "type": "array" }, { "additionalProperties": true, "type": "object" } ] }, "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "The manifest annotations. Used for storing arbitrary metadata as\n key-value pairs. Example: [{'smarter.sh/test-manifest/project-name': 'Scooby dooby do'}]. The\n key should be a valid url-friendly string. The value accepts\n multi-line string values (YAML block scalars) and various scalar types including\n str, int, float, bool, datetime.date, datetime.datetime, decimal.Decimal, uuid.UUID, bytes, list, dict.\n ", "title": "Annotations" } }, "required": [ "name", "description", "version" ], "title": "SAMChatMetadata", "type": "object" }, "SAMChatSpecConfig": { "description": "Smarter API Chat Manifest Chat.spec.config", "properties": {}, "title": "SAMChatSpecConfig", "type": "object" }, "SAMChatStatus": { "description": "Smarter API Chat Manifest - Status class.", "properties": { "recordLocator": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.", "title": "Recordlocator" }, "created": { "description": "The date in which this resource was created. Read only.", "format": "date-time", "title": "Created", "type": "string" }, "modified": { "description": "The date in which this resource was most recently changed. Read only.", "format": "date-time", "title": "Modified", "type": "string" } }, "required": [ "created", "modified" ], "title": "SAMChatStatus", "type": "object" } }, "required": [ "apiVersion", "kind", "metadata", "spec" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
-
field metadata:
SAMChatMetadata[Required] Chat.metadata[obj]: Required, the Chat metadata.
- Validated by:
-
field spec:
SAMChatSpecConfig[Required] Chat.spec[obj]: Required, the Chat specification.
- Validated by:
-
field status:
Optional[SAMChatStatus] = None Chat.status[obj]: Optional, Read-only. Stateful status information about the Chat.
- Validated by: