Skip to main content

FinalReviewCompleted Interface

An EventFlowDebugEvent marking the end of the flow for prompting an LLM to complete a final review of its edits and determine whether the user's goal was accomplished.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/ai-collab/alpha.

For more information about our API support guarantees, see here.

Signature

export interface FinalReviewCompleted<TIsLlmResponseValid = boolean, TReviewResponse = TIsLlmResponseValid extends true ? "yes" | "no" : undefined> extends EventFlowDebugEvent

Extends: EventFlowDebugEvent

Type Parameters

ParameterDefaultDescription
TIsLlmResponseValidboolean
TReviewResponseTIsLlmResponseValid extends true ? "yes" | "no" : undefined

Properties

PropertyAlertsTypeDescription
didLlmAccomplishGoalAlphaTReviewResponseWhether the Llm believes the user's ask was accomplished, based on the Edits is has already generated and applied. If the status field is false then this field value will be undefined, otherwise it will be either "yes" or "no"
eventFlowNameAlphatypeof EventFlowDebugNames.FINAL_REVIEW
eventFlowStatusAlpha"COMPLETED"
eventNameAlpha"FINAL_REVIEW_COMPLETED"
isLlmResponseValidAlphaTIsLlmResponseValid

Whether the response produced by the LLM is an expected response. In the event that the LLM fails to respond in an expected way, despite the API call to the LLM itself being successful, then this fields value will be false.

For now, this case is limited to the LLM returning undefined as a response when it should have returned something. But in the future this could expand to things such as invalid json.

Property Details

didLlmAccomplishGoal

Whether the Llm believes the user's ask was accomplished, based on the Edits is has already generated and applied. If the status field is false then this field value will be undefined, otherwise it will be either "yes" or "no"

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

didLlmAccomplishGoal: TReviewResponse;

Type: TReviewResponse

eventFlowName

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

eventFlowName: typeof EventFlowDebugNames.FINAL_REVIEW;

Type: typeof EventFlowDebugNames.FINAL_REVIEW

eventFlowStatus

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

eventFlowStatus: "COMPLETED";

Type: "COMPLETED"

eventName

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

eventName: "FINAL_REVIEW_COMPLETED";

Type: "FINAL_REVIEW_COMPLETED"

isLlmResponseValid

Whether the response produced by the LLM is an expected response. In the event that the LLM fails to respond in an expected way, despite the API call to the LLM itself being successful, then this fields value will be false.

For now, this case is limited to the LLM returning undefined as a response when it should have returned something. But in the future this could expand to things such as invalid json.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

isLlmResponseValid: TIsLlmResponseValid;

Type: TIsLlmResponseValid