CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-gradio--client

JavaScript and TypeScript client library for interacting with Gradio APIs, providing methods to connect to, submit predictions to, and manage connections with Gradio applications.

96

1.11x
Quality

Pending

Does it follow best practices?

Impact

96%

1.11x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how effectively the engineer uses @gradio/client's error handling capabilities to catch, categorize, and report errors during connection and prediction operations. The focus is on proper use of try-catch blocks, error type detection, and structured error responses.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Client.connect() usage",
      "description": "Uses Client.connect() method properly within try-catch blocks to handle connection failures. Should catch errors thrown during connection attempts.",
      "max_score": 20
    },
    {
      "name": "Connection error detection",
      "description": "Correctly identifies and categorizes connection-related errors (invalid endpoints, network failures, unreachable servers) by examining error messages or error types from Client.connect().",
      "max_score": 15
    },
    {
      "name": "Authentication error detection",
      "description": "Correctly identifies authentication failures (HTTP 401 errors or authentication-related error messages) when connecting to private spaces or authenticated endpoints.",
      "max_score": 15
    },
    {
      "name": "Prediction error handling",
      "description": "Uses try-catch blocks around client.predict() or client.submit() calls to handle prediction failures. Should catch errors during prediction execution.",
      "max_score": 15
    },
    {
      "name": "Validation error detection",
      "description": "Correctly identifies parameter validation errors (HTTP 422 errors or validation-related error messages) and extracts information about which parameters are invalid.",
      "max_score": 15
    },
    {
      "name": "Error categorization logic",
      "description": "Implements logic to categorize errors into specific types (connection, authentication, validation, network, unknown) based on error properties, status codes, or error messages.",
      "max_score": 10
    },
    {
      "name": "Structured error response",
      "description": "Returns ErrorHandlingResult objects with proper structure including success flag, error type, error message, and details fields as specified in the API.",
      "max_score": 10
    }
  ]
}

tile.json