Socket
Socket
Sign inDemoInstall

@intuned/sdk-dev-types

Package Overview
Dependencies
Maintainers
0
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intuned/sdk-dev-types - npm Package Compare versions

Comparing version 1.0.5-rami-1 to 1.0.5-rami-123

53

ai-extractors/index.d.ts

@@ -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.5-rami-1",
"version": "1.0.5-rami-123",
"description": "intuned runner types",

@@ -5,0 +5,0 @@ "author": "Intuned Team",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc