AiCollabErrorResponse Interface
An error response from the AI collaboration.
To use, import via @fluidframework/ai-collab/alpha
.
For more information about our API support guarantees, see here.
Signature
export interface AiCollabErrorResponse
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
errorMessage | Alpha |
readonly |
"tokenLimitExceeded" | "tooManyErrors" | "tooManyModelCalls" | "aborted" | The type of known error that occured - 'tokenLimitExceeded' indicates that the LLM exceeded the token limits set by the user - 'tooManyErrors' indicates that the LLM made too many errors in a row - 'tooManyModelCalls' indicates that the LLM made too many model calls - 'aborted' indicates that the AI collaboration was aborted by the user or a limiter |
status | Alpha |
readonly |
"failure" | "partial-failure" | The status of the Ai Collaboration. - A 'partial-failure' status indicates that the AI collaboration was partially successful, but was aborted due to a limiter or other error - A "failure" status indicates that the AI collaboration was not successful at creating any changes. |
tokensUsed | Alpha |
readonly |
TokenUsage | Total usage of tokens by an LLM. |
Property Details
errorMessage
The type of known error that occured - 'tokenLimitExceeded' indicates that the LLM exceeded the token limits set by the user - 'tooManyErrors' indicates that the LLM made too many errors in a row - 'tooManyModelCalls' indicates that the LLM made too many model calls - 'aborted' indicates that the AI collaboration was aborted by the user or a limiter
To use, import via @fluidframework/ai-collab/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly errorMessage: "tokenLimitExceeded" | "tooManyErrors" | "tooManyModelCalls" | "aborted";
Type: "tokenLimitExceeded" | "tooManyErrors" | "tooManyModelCalls" | "aborted"
status
The status of the Ai Collaboration. - A 'partial-failure' status indicates that the AI collaboration was partially successful, but was aborted due to a limiter or other error - A "failure" status indicates that the AI collaboration was not successful at creating any changes.
To use, import via @fluidframework/ai-collab/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly status: "failure" | "partial-failure";
Type: "failure" | "partial-failure"
tokensUsed
Total usage of tokens by an LLM.
To use, import via @fluidframework/ai-collab/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly tokensUsed: TokenUsage;
Type: TokenUsage