Enumerations
Smarter API V1 Manifests Enumerations.
- class smarter.apps.api.v1.manifests.enum.SAMKinds(*values)[source]
Bases:
SmarterEnumAbstractSmarter manifest kinds enumeration.
This is the comprehensive list of all manifest kinds supported by the Smarter platform.
Each manifest kind corresponds to a specific resource type within the Smarter ecosystem, such as plugins, connections, account resources, prompt resources, and provider resources.
- STATIC_PLUGIN
Represents a static plugin manifest kind.
- API_PLUGIN
Represents an API plugin manifest kind.
- SQL_PLUGIN
Represents an SQL plugin manifest kind.
- API_CONNECTION
Represents an API connection manifest kind.
- SQL_CONNECTION
Represents an SQL connection manifest kind.
- ACCOUNT
Represents an account manifest kind.
- AUTH_TOKEN
Represents an authentication token manifest kind.
- USER
Represents a user manifest kind.
- SECRET
Represents a secret manifest kind.
- CHAT
Represents a prompt manifest kind.
- CHAT_HISTORY
Represents a prompt history manifest kind.
- CHAT_PLUGIN_USAGE
Represents a prompt plugin usage manifest kind.
- CHAT_TOOL_CALL
Represents a prompt tool call manifest kind.
- LLM_CLIENT
Represents an llm_client manifest kind.
- PROVIDER
Represents a provider manifest kind.
- str_to_kind(cls, kind_str
str) -> “SAMKinds”: Convert a string to a SAMKinds enumeration value.
- all_slugs(cls) list
Return a list of all manifest kind slugs (singular and plural).
- singular_slugs(cls) list
Return a list of singular manifest kind slugs.
- plural_slugs(cls) list
Return a list of plural manifest kind slugs.
- from_url(cls, url) str
Extract the manifest kind from a URL.
- ACCOUNT = 'Account'
- API_CONNECTION = 'ApiConnection'
- API_PLUGIN = 'ApiPlugin'
- AUTH_TOKEN = 'SmarterAuthToken'
- CHAT = 'Prompt'
- CHAT_HISTORY = 'PromptHistory'
- CHAT_PLUGIN_USAGE = 'PromptPluginUsage'
- CHAT_TOOL_CALL = 'PromptToolCall'
- LLM_CLIENT = 'LLMClient'
- PROVIDER = 'Provider'
- SECRET = 'Secret'
- SQL_CONNECTION = 'SqlConnection'
- SQL_PLUGIN = 'SqlPlugin'
- STATIC_PLUGIN = 'Plugin'
- USER = 'User'
- VECTORSTORE = 'Vectorstore'
- classmethod all_connections()[source]
- classmethod all_plugins()[source]
- classmethod str_to_kind(kind_str)[source]
Convert a string to a SAMKinds enumeration value.
- Return type:
SAMKinds