LLMClientExtensions Model
- class smarter.apps.llmclient.models.LLMClientExtensions(*args, **kwargs)[source]
Bases:
TimestampedModelThe Extensions whose tools a LLMClient offers the LLM.
Each record links an LLMClient to an
Extension, as listed, by slug, in the LLMClient manifest’sspec.extensions. On each prompt, the tools of the linked extensions that are enabled, and available to the LLMClient’s account, are offered to the LLM.Usage Example
LLMClientExtensions.objects.create(llmclient=my_llmclient, extension=weather) extensions = LLMClientExtensions.extensions_for(my_llmclient)
- Parameters:
id (Unknown) – Primary key: ID
created_at (Unknown) – Created at
updated_at (Unknown) – Updated at
Relationship fields:
- Parameters:
llmclient (Unknown) – Llmclient (related name:
llmclientextensions)extension (Unknown) – Extension. The Extension. (related name:
llmclient_extensions)
- 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
- extension
-
Extension. The Extension. (related name:
llmclient_extensions)- Type:
Type
- classmethod extensions_for(llmclient)[source]
Return the extensions of a LLMClient, in order of slug, with their installed versions.
The versions’ archives are not fetched:
load_version()reads one only the first time a process loads it.
- id
-
Primary key: ID
- Type:
Type
- llmclient
-
Llmclient (related name:
llmclientextensions)- Type:
Type
- objects = <django.db.models.Manager object>
- 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