PromptPluginUsage

PromptPluginUsage model for the prompt app.

class smarter.apps.prompt.models.prompt_plugin_usage.PromptPluginUsage(*args, **kwargs)[source]

Bases: TimestampedModel

Plugin 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

DateTimeField

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

BigAutoField

Primary key: ID

Type:

Type

input_text

TextField

Input text

Type:

Type

objects = <django.db.models.Manager object>
plugin

ForeignKey to PluginMeta

Plugin (related name: promptpluginusage)

Type:

Type

plugin_id

Internal field, use plugin instead.

prompt

ForeignKey to Prompt

Prompt (related name: promptpluginusage)

Type:

Type

prompt_id

Internal field, use prompt instead.

updated_at

DateTimeField

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