Chat Plugin Usage Model

Smarter API Chat Manifest Constants

Smarter API ChatPluginUsage - ChatPluginUsage.metadata

pydantic model smarter.apps.prompt.manifest.models.chat_plugin_usage.metadata.SAMChatPluginUsageMetadata[source]

Bases: AbstractSAMMetadataBase

Smarter API ChatPluginUsage Manifest - Metadata class.

Show JSON schema
{
   "title": "SAMChatPluginUsageMetadata",
   "description": "Smarter API ChatPluginUsage 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:

class_identifier: ClassVar[str] = 'ChatPluginUsage.metadata'

Smarter API ChatPluginUsage - ChatPluginUsage.spec

pydantic model smarter.apps.prompt.manifest.models.chat_plugin_usage.spec.SAMChatPluginUsageSpecConfig[source]

Bases: AbstractSAMSpecBase

Smarter API ChatPluginUsage Manifest ChatPluginUsage.spec.config

Show JSON schema
{
   "title": "SAMChatPluginUsageSpecConfig",
   "description": "Smarter API ChatPluginUsage Manifest ChatPluginUsage.spec.config",
   "type": "object",
   "properties": {}
}

Config:
  • from_attributes: bool = True

  • arbitrary_types_allowed: bool = True

  • frozen: bool = True

Validators:

class_identifier: ClassVar[str] = 'ChatPluginUsage.spec.configuration'

Smarter API Manifest - ChatPluginUsage.status

pydantic model smarter.apps.prompt.manifest.models.chat_plugin_usage.status.SAMChatPluginUsageStatus[source]

Bases: AbstractSAMStatusBase

Smarter API ChatPluginUsage Manifest - Status class.

Show JSON schema
{
   "title": "SAMChatPluginUsageStatus",
   "description": "Smarter API ChatPluginUsage 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:

class_identifier: ClassVar[str] = 'ChatPluginUsage.status'

Smarter API ChatPluginUsage Manifest

pydantic model smarter.apps.prompt.manifest.models.chat_plugin_usage.model.SAMChatPluginUsage[source]

Bases: AbstractSAMBase

Smarter API Manifest - ChatPluginUsage

Show JSON schema
{
   "title": "SAMChatPluginUsage",
   "description": "Smarter API Manifest - ChatPluginUsage",
   "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/SAMChatPluginUsageMetadata",
         "description": "ChatPluginUsage.metadata[obj]: Required, the ChatPluginUsage metadata."
      },
      "spec": {
         "$ref": "#/$defs/SAMChatPluginUsageSpecConfig",
         "description": "ChatPluginUsage.spec[obj]: Required, the ChatPluginUsage specification."
      },
      "status": {
         "anyOf": [
            {
               "$ref": "#/$defs/SAMChatPluginUsageStatus"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "ChatPluginUsage.status[obj]: Optional, Read-only. Stateful status information about the ChatPluginUsage."
      }
   },
   "$defs": {
      "SAMChatPluginUsageMetadata": {
         "description": "Smarter API ChatPluginUsage 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": "SAMChatPluginUsageMetadata",
         "type": "object"
      },
      "SAMChatPluginUsageSpecConfig": {
         "description": "Smarter API ChatPluginUsage Manifest ChatPluginUsage.spec.config",
         "properties": {},
         "title": "SAMChatPluginUsageSpecConfig",
         "type": "object"
      },
      "SAMChatPluginUsageStatus": {
         "description": "Smarter API ChatPluginUsage 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": "SAMChatPluginUsageStatus",
         "type": "object"
      }
   },
   "required": [
      "apiVersion",
      "kind",
      "metadata",
      "spec"
   ]
}

Config:
  • from_attributes: bool = True

  • arbitrary_types_allowed: bool = True

  • frozen: bool = True

Fields:
Validators:
field metadata: SAMChatPluginUsageMetadata [Required]

ChatPluginUsage.metadata[obj]: Required, the ChatPluginUsage metadata.

Validated by:
field spec: SAMChatPluginUsageSpecConfig [Required]

ChatPluginUsage.spec[obj]: Required, the ChatPluginUsage specification.

Validated by:
field status: Optional[SAMChatPluginUsageStatus] = None

ChatPluginUsage.status[obj]: Optional, Read-only. Stateful status information about the ChatPluginUsage.

Validated by:
class_identifier: ClassVar[str] = 'ChatPluginUsage'