changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "ExtractError": {
+ "description": "Extract error details.",
+ "properties": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Content returned for http client or server errors, if any.",
+ "title": "Content"
+ },
+ "error_type": {
+ "description": "Error type.",
+ "title": "Error Type",
+ "type": "string"
+ },
+ "http_status_code": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "HTTP status code, if available.",
+ "title": "Http Status Code"
+ },
+ "url": {
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "error_type",
+ "http_status_code",
+ "content"
+ ],
+ "title": "ExtractError",
+ "type": "object"
+ },
+ "ExtractResult": {
+ "description": "Extract result for a single URL.",
+ "properties": {
+ "excerpts": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Relevant excerpted content from the URL, formatted as markdown.",
+ "title": "Excerpts"
+ },
+ "full_content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Full content from the URL formatted as markdown, if requested.",
+ "title": "Full Content"
+ },
+ "publish_date": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Publish date of the webpage in YYYY-MM-DD format, if available.",
+ "title": "Publish Date"
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Title of the webpage, if available.",
+ "title": "Title"
+ },
+ "url": {
+ "description": "URL associated with the search result.",
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "title": "ExtractResult",
+ "type": "object"
+ },
+ "UsageItem": {
+ "description": "Usage item for a single operation.",
+ "properties": {
+ "count": {
+ "description": "Count of the SKU.",
+ "examples": [
+ 1
+ ],
+ "title": "Count",
+ "type": "integer"
+ },
+ "name": {
+ "description": "Name of the SKU.",
+ "examples": [
+ "sku_search_additional_results",
+ "sku_extract_excerpts"
+ ],
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "count"
+ ],
+ "title": "UsageItem",
+ "type": "object"
+ },
+ "Warning": {
+ "description": "Human-readable message for a task.",
+ "properties": {
+ "detail": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional detail supporting the warning.",
+ "title": "Detail"
+ },
+ "message": {
+ "description": "Human-readable message.",
+ "title": "Message",
+ "type": "string"
+ },
+ "type": {
+ "description": "Type of warning. Note that adding new warning types is considered a backward-compatible change.",
+ "enum": [
+ "spec_validation_warning",
+ "input_validation_warning",
+ "warning"
+ ],
+ "examples": [
+ "spec_validation_warning",
+ "input_validation_warning"
+ ],
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "message"
+ ],
+ "title": "Warning",
+ "type": "object"
+ }
+ },
+ "description": "Fetch result.",
+ "properties": {
+ "errors": {
+ "description": "Extract errors: requested URLs not in the results.",
+ "items": {
+ "$ref": "#/$defs/ExtractError"
+ },
+ "title": "Errors",
+ "type": "array"
+ },
+ "extract_id": {
+ "description": "Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`",
+ "title": "Extract Id",
+ "type": "string"
+ },
+ "results": {
+ "description": "Successful extract results.",
+ "items": {
+ "$ref": "#/$defs/ExtractResult"
+ },
+ "title": "Results",
+ "type": "array"
+ },
+ "usage": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/UsageItem"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Usage metrics for the extract request.",
+ "title": "Usage"
+ },
+ "warnings": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/Warning"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Warnings for the extract request, if any.",
+ "title": "Warnings"
+ }
+ },
+ "required": [
+ "extract_id",
+ "results",
+ "errors"
+ ],
+ "title": "ExtractResponse",
+ "type": "object"
+}