@intuned/sdk-dev-types
Advanced tools
Comparing version 1.0.4 to 1.0.5-beta.1-url-1
@@ -9,3 +9,3 @@ import { Locator, Page } from "@intuned/playwright-core"; | ||
* @param options.prompt optional, a prompt to guide the extraction process and provide more context. | ||
* @param options.strategy optional, the strategy to use for extraction, currently, only `MARKDOWN` is supported. The file will be converted to markdown and then the data will be extracted from it. | ||
* @param options.strategy optional, the strategy to use for extraction. use `IMAGE` if the info you're trying to extract is visual and cannot be converted to markdown. Defaults to `MARKDOWN` strategy with `gpt4-turbo` model. | ||
* @example | ||
@@ -48,12 +48,3 @@ * ```typescript extractStructuredDataFromFile | ||
prompt?: string; | ||
strategy?: { | ||
type: "MARKDOWN"; | ||
model: | ||
| "claude-3-opus" | ||
| "claude-3-sonnet" | ||
| "claude-3-haiku" | ||
| "gpt4-turbo" | ||
| "gpt-4o" | ||
| "gpt3.5-turbo"; | ||
}; | ||
strategy?: MarkdownFileStrategy | ImageFileStrategy; | ||
} | ||
@@ -300,2 +291,3 @@ ): Promise<any>; | ||
| "claude-3-sonnet" | ||
| "claude-3.5-sonnet" | ||
| "claude-3-haiku" | ||
@@ -319,2 +311,3 @@ | "gpt4-turbo" | ||
| "claude-3-sonnet" | ||
| "claude-3.5-sonnet" | ||
| "claude-3-haiku" | ||
@@ -328,2 +321,39 @@ | "gpt4-turbo" | ||
/** | ||
* this strategy will extract markdown content from the file then run data extraction on it. | ||
* | ||
* @interface | ||
* @property model - the model to use in the extraction process | ||
* @property type - the type of the strategy | ||
*/ | ||
export interface MarkdownFileStrategy { | ||
model: | ||
| "claude-3-opus" | ||
| "claude-3-sonnet" | ||
| "claude-3.5-sonnet" | ||
| "claude-3-haiku" | ||
| "gpt4-turbo" | ||
| "gpt3.5-turbo" | ||
| "gpt-4o"; | ||
type: "MARKDOWN"; | ||
} | ||
/** | ||
* this strategy will use the image content of the file to extract the needed data. | ||
* should be used when the information you're trying to extract cannot be converted to markdown. For example, a checkbox in a pdf file. | ||
* @interface | ||
* @property model - the model to use in the extraction process. | ||
* @property type - the type of the strategy | ||
*/ | ||
export interface ImageFileStrategy { | ||
model: | ||
| "claude-3-opus" | ||
| "claude-3-sonnet" | ||
| "claude-3.5-sonnet" | ||
| "claude-3-haiku" | ||
| "gpt4-turbo" | ||
| "gpt-4o"; | ||
type: "IMAGE"; | ||
} | ||
/** | ||
* Extracts structured data from content items (text or images). | ||
@@ -380,2 +410,3 @@ * | ||
| "claude-3-sonnet" | ||
| "claude-3.5-sonnet" | ||
| "claude-3-haiku" | ||
@@ -382,0 +413,0 @@ | "gpt4-turbo" |
@@ -74,3 +74,3 @@ import type { Page, Locator } from "@intuned/playwright-core"; | ||
/** | ||
* Gets the content of specified pages in the PDF file. | ||
* Gets the text content of specified pages in the PDF file. Does not support links. | ||
* | ||
@@ -77,0 +77,0 @@ * @param {number[]} [pageNumbers] - Optional. An array of page numbers to get content from. |
{ | ||
"name": "@intuned/sdk-dev-types", | ||
"version": "1.0.4", | ||
"version": "1.0.5-beta.1-url-1", | ||
"description": "intuned runner types", | ||
@@ -5,0 +5,0 @@ "author": "Intuned Team", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66917
2026
2