The last error associated with this run. Will be null if there are no errors.

interface LastError {
    code: "server_error" | "rate_limit_exceeded" | "invalid_prompt";
    message: string;
}

Properties

Properties

code: "server_error" | "rate_limit_exceeded" | "invalid_prompt"

One of server_error, rate_limit_exceeded, or invalid_prompt.

message: string

A human-readable description of the error.