Chat History Model
Smarter API Chat Manifest Constants
Smarter API Chat - Chat.metadata
- pydantic model smarter.apps.prompt.manifest.models.chat_history.metadata.SAMChatHistoryMetadata[source]
Bases:
AbstractSAMMetadataBaseSmarter API Chat Manifest - Metadata class.
Show JSON schema
{ "title": "SAMChatHistoryMetadata", "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_history.spec.SAMChatHistorySpecConfig[source]
Bases:
AbstractSAMSpecBaseSmarter API Chat Manifest Chat.spec.config
Show JSON schema
{ "title": "SAMChatHistorySpecConfig", "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_history.status.SAMChatHistoryStatus[source]
Bases:
AbstractSAMStatusBaseSmarter API Chat Manifest - Status class.
Show JSON schema
{ "title": "SAMChatHistoryStatus", "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_history.model.SAMChatHistory[source]
Bases:
AbstractSAMBaseSmarter API Manifest - Chat
Show JSON schema
{ "title": "SAMChatHistory", "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/SAMChatHistoryMetadata", "description": "ChatHistory.metadata[obj]: Required, the ChatHistory metadata." }, "spec": { "$ref": "#/$defs/SAMChatHistorySpecConfig", "description": "ChatHistory.spec[obj]: Required, the ChatHistory specification." }, "status": { "anyOf": [ { "$ref": "#/$defs/SAMChatHistoryStatus" }, { "type": "null" } ], "default": null, "description": "ChatHistory.status[obj]: Optional, Read-only. Stateful status information about the ChatHistory." } }, "$defs": { "SAMChatHistoryMetadata": { "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": "SAMChatHistoryMetadata", "type": "object" }, "SAMChatHistorySpecConfig": { "description": "Smarter API Chat Manifest Chat.spec.config", "properties": {}, "title": "SAMChatHistorySpecConfig", "type": "object" }, "SAMChatHistoryStatus": { "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": "SAMChatHistoryStatus", "type": "object" } }, "required": [ "apiVersion", "kind", "metadata", "spec" ] }
- Config:
from_attributes: bool = True
arbitrary_types_allowed: bool = True
frozen: bool = True
- Fields:
- Validators:
-
field metadata:
SAMChatHistoryMetadata[Required] ChatHistory.metadata[obj]: Required, the ChatHistory metadata.
- Validated by:
-
field spec:
SAMChatHistorySpecConfig[Required] ChatHistory.spec[obj]: Required, the ChatHistory specification.
- Validated by:
-
field status:
Optional[SAMChatHistoryStatus] = None ChatHistory.status[obj]: Optional, Read-only. Stateful status information about the ChatHistory.
- Validated by: