AiAssistantProfileReference class

Constructors

AiAssistantProfileReference.new(AiAssistantClient _client, IntegrationId _integrationId, String _profileId)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

chat(String prompt) → Observable<String>
Sends a prompt to the current profile.
context(String? id) AiAssistantContextReference
Retrieves a context reference for the current profile. A context reference can be used to add a new context entry to the profile, or update/delete an existing entry context.
delete() Future<void>
Deletes an existing assistant profile. This will result in an error if a profile has not yet been created for the current profile id.
insert({required AiModelName modelName, dynamic isPublic = false}) Future<void>
Adds a new profile to the assistant. This will result in an error if a profile already exists with the same id.
instruction(String? id) AiAssistantInstructionReference
Retrieves an instruction reference for the current profile. An instruction reference can be used to add a new instruction entry to the profile, or update/delete an existing instruction entry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update({required AiModelName? modelName}) Future<void>
Updates an existing assistant profile. This will result in an error if a profile has not yet been created for the current profile id.

Operators

operator ==(Object other) bool
The equality operator.
inherited