Class: AiAgentInstructionReference
Methods
delete
▸ delete(): Promise
<void
>
Deletes an existing instruction entry for the agent. Throws an error if an entry with the specified instruction ID does not exist.
Returns
Promise
<void
>
A promise that resolves when the instruction entry is successfully deleted.
insert
▸ insert(data
): Promise
<void
>
Adds a new instruction entry to the agent. Throws an error if an entry with the same ID already exists.
Parameters
Name | Type | Description |
---|---|---|
data | AiInstructionData | An object containing options for creating the entry. |
Returns
Promise
<void
>
A promise that resolves when the instruction entry is successfully created.
update
▸ update(data
): Promise
<void
>
Updates an existing instruction entry for the agent. Throws an error if an entry with the specified instruction ID does not exist.
Parameters
Name | Type | Description |
---|---|---|
data | AiInstructionData | An object containing options for updating the entry. |
Returns
Promise
<void
>
A promise that resolves when the instruction entry is successfully updated.