PromptPluginUsage
PromptPluginUsage model for the prompt app.
- class smarter.apps.prompt.models.prompt_plugin_usage.PromptPluginUsage(*args, **kwargs)[source]
Bases:
TimestampedModelPlugin selection history model.
- Parameters:
id (Unknown) – Primary key: ID
created_at (Unknown) – Created at
updated_at (Unknown) – Updated at
input_text (Unknown) – Input text
Relationship fields:
- Parameters:
prompt (Unknown) – Prompt (related name:
promptpluginusage)plugin (Unknown) – Plugin (related name:
promptpluginusage)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- created_at
-
Created at
Timestamp indicating when the model instance was created.
This field is automatically set to the current date and time when the instance is first created. It is indexed in the database for efficient querying.
- Type:
Type
- id
-
Primary key: ID
- Type:
Type
- input_text
-
Input text
- Type:
Type
- objects = <django.db.models.Manager object>
- plugin
-
Plugin (related name:
promptpluginusage)- Type:
Type
- plugin_id
Internal field, use
plugininstead.
- prompt
ForeignKeytoPromptPrompt (related name:
promptpluginusage)- Type:
Type
- prompt_id
Internal field, use
promptinstead.
- updated_at
-
Updated at
Timestamp indicating when the model instance was last updated.
This field is automatically updated to the current date and time whenever the instance is saved. It is indexed in the database for efficient querying.
- Type:
Type