ApplyEditFailure Interface
An EventFlowDebugEvent marking the failure of applying an edit generated by the LLM to a SharedTree.
To use, import via @fluidframework/ai-collab/alpha
.
For more information about our API support guarantees, see here.
Signature
export interface ApplyEditFailure extends EventFlowDebugEvent
Extends: EventFlowDebugEvent
Properties
Property | Alerts | Type | Description |
---|---|---|---|
edit | Alpha |
LlmTreeEdit | The LlmTreeEdit generated by the LLM. |
errorMessage | Alpha |
string | The error message that was thrown when attempting to apply the edit. |
eventFlowName | Alpha |
typeof EventFlowDebugNames.GENERATE_AND_APPLY_TREE_EDIT | |
eventFlowStatus | Alpha |
"IN_PROGRESS" | |
eventFlowTraceId | Alpha |
string | A unique id that will be shared across all debug events that are part of the same event flow. |
eventName | Alpha |
"APPLIED_EDIT_FAILURE" | |
sequentialErrorCount | Alpha |
number | The total number of errors that have occurred up until this point, not including this error. |
Property Details
edit
The LlmTreeEdit generated by the LLM.
For more information about our API support guarantees, see here.
Signature
edit: LlmTreeEdit;
Type: LlmTreeEdit
errorMessage
The error message that was thrown when attempting to apply the edit.
For more information about our API support guarantees, see here.
Signature
errorMessage: string;
Type: string
eventFlowName
For more information about our API support guarantees, see here.
Signature
eventFlowName: typeof EventFlowDebugNames.GENERATE_AND_APPLY_TREE_EDIT;
Type: typeof EventFlowDebugNames.GENERATE_AND_APPLY_TREE_EDIT
eventFlowStatus
For more information about our API support guarantees, see here.
Signature
eventFlowStatus: "IN_PROGRESS";
Type: "IN_PROGRESS"
eventFlowTraceId
A unique id that will be shared across all debug events that are part of the same event flow.
For more information about our API support guarantees, see here.
Signature
eventFlowTraceId: string;
Type: string
eventName
For more information about our API support guarantees, see here.
Signature
eventName: "APPLIED_EDIT_FAILURE";
Type: "APPLIED_EDIT_FAILURE"
sequentialErrorCount
The total number of errors that have occurred up until this point, not including this error.
For more information about our API support guarantees, see here.
Signature
sequentialErrorCount: number;
Type: number