EditResult Interface
A result from a tree-agent edit attempt.
This API is provided as an alpha preview and may change without notice.
To use, import via @fluidframework/tree-agent/alpha.
For more information about our API support guarantees, see here.
Signature
export interface EditResult
Properties
| Property | Alerts | Type | Description |
|---|---|---|---|
| message | Alpha | string | A human-readable message describing the result of the edit attempt. |
| type | Alpha | "success" | "editingError" | "tooManyEditsError" | The type of the edit result. |
Property Details
message
A human-readable message describing the result of the edit attempt.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
message: string;
Type: string
Remarks
In the case of an error, this message is appropriate to include in a model's chat history.
type
The type of the edit result.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Signature
type: "success" | "editingError" | "tooManyEditsError";
Type: "success" | "editingError" | "tooManyEditsError"
Remarks
success: The edit was successfully applied. -editingError: An error was thrown while parsing or executing the provided JavaScript. -tooManyEditsError: The model requested more than the configured number of sequential edits.