{ "name": "nlp_operations", "description": "Performs various Natural Language Processing tasks such as Fill-Mask, Question Answering, Summarization, and more.", "strict": false, "parameters": { "type": "object", "required": [ "task", "widget" ], "properties": { "task": { "type": "string", "description": "The specific NLP task to perform." }, "widget": { "type": "array", "items": { "type": "object", "required": [ "text", "context", "src", "table", "candidate_labels", "multi_class", "sentences", "structured_data", "prompt", "example_title" ], "properties": { "src": { "type": "string", "description": "The source URL for audio or image inputs." }, "text": { "type": "string", "description": "The main text input for the task." }, "table": { "type": "object", "required": [ "Repository", "Stars", "Contributors", "Programming language" ], "properties": { "Stars": { "type": "array", "items": { "type": "number" }, "description": "List of stars for each repository." }, "Repository": { "type": "array", "items": { "type": "string" }, "description": "List of repository names." }, "Contributors": { "type": "array", "items": { "type": "number" }, "description": "List of contributors for each repository." }, "Programming language": { "type": "array", "items": { "type": "string" }, "description": "Programming languages used in each repository." } }, "description": "Table structured data for the Table Question Answering task.", "additionalProperties": false }, "prompt": { "type": "string", "description": "Prompt for tasks that support text-guided generation." }, "context": { "type": "string", "description": "Contextual information related to the text, used in tasks like Question Answering." }, "sentences": { "type": "array", "items": { "type": "string" }, "description": "Sentences to compare against a source sentence in Sentence Similarity." }, "multi_class": { "type": "boolean", "description": "Indicates whether multiple labels can be assigned." }, "example_title": { "type": "string", "description": "Title for the given example." }, "structured_data": { "type": "object", "required": [ "fixed_acidity", "volatile_acidity", "citric_acid", "residual_sugar", "chlorides", "free_sulfur_dioxide", "total_sulfur_dioxide", "density", "pH", "sulphates", "alcohol" ], "properties": { "pH": { "type": "array", "items": { "type": "number" }, "description": "List of pH values." }, "alcohol": { "type": "array", "items": { "type": "number" }, "description": "List of alcohol content values." }, "density": { "type": "array", "items": { "type": "number" }, "description": "List of density values." }, "chlorides": { "type": "array", "items": { "type": "number" }, "description": "List of chlorides values." }, "sulphates": { "type": "array", "items": { "type": "number" }, "description": "List of sulphates values." }, "citric_acid": { "type": "array", "items": { "type": "number" }, "description": "List of citric acid values." }, "fixed_acidity": { "type": "array", "items": { "type": "number" }, "description": "List of fixed acidity values." }, "residual_sugar": { "type": "array", "items": { "type": "number" }, "description": "List of residual sugar values." }, "volatile_acidity": { "type": "array", "items": { "type": "number" }, "description": "List of volatile acidity values." }, "free_sulfur_dioxide": { "type": "array", "items": { "type": "number" }, "description": "List of free sulfur dioxide values." }, "total_sulfur_dioxide": { "type": "array", "items": { "type": "number" }, "description": "List of total sulfur dioxide values." } }, "description": "Structured data for classification tasks.", "additionalProperties": false }, "candidate_labels": { "type": "string", "description": "Possible labels for Zero-Shot Classification tasks." } }, "additionalProperties": false }, "description": "A list of inputs for the selected NLP task." } }, "additionalProperties": false } }