instavm 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -9
- package/dist/InstaVM-DjkmUcaP.d.mts +1393 -0
- package/dist/InstaVM-DjkmUcaP.d.ts +1393 -0
- package/dist/_instavmToolsCore-34H4iqVZ.d.mts +26 -0
- package/dist/_instavmToolsCore-BuaJyxXB.d.ts +26 -0
- package/dist/cli.js +7973 -2227
- package/dist/cli.js.map +1 -1
- package/dist/index.d.mts +12 -919
- package/dist/index.d.ts +12 -919
- package/dist/index.js +1465 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1450 -136
- package/dist/index.mjs.map +1 -1
- package/dist/integrations/azure-openai.d.mts +18 -0
- package/dist/integrations/azure-openai.d.ts +18 -0
- package/dist/integrations/azure-openai.js +332 -0
- package/dist/integrations/azure-openai.js.map +1 -0
- package/dist/integrations/azure-openai.mjs +299 -0
- package/dist/integrations/azure-openai.mjs.map +1 -0
- package/dist/integrations/langchain.d.mts +7 -0
- package/dist/integrations/langchain.d.ts +7 -0
- package/dist/integrations/langchain.js +364 -0
- package/dist/integrations/langchain.js.map +1 -0
- package/dist/integrations/langchain.mjs +327 -0
- package/dist/integrations/langchain.mjs.map +1 -0
- package/dist/integrations/llamaindex.d.mts +11 -0
- package/dist/integrations/llamaindex.d.ts +11 -0
- package/dist/integrations/llamaindex.js +415 -0
- package/dist/integrations/llamaindex.js.map +1 -0
- package/dist/integrations/llamaindex.mjs +378 -0
- package/dist/integrations/llamaindex.mjs.map +1 -0
- package/dist/integrations/ollama.d.mts +35 -0
- package/dist/integrations/ollama.d.ts +35 -0
- package/dist/integrations/ollama.js +421 -0
- package/dist/integrations/ollama.js.map +1 -0
- package/dist/integrations/ollama.mjs +391 -0
- package/dist/integrations/ollama.mjs.map +1 -0
- package/dist/integrations/openai.d.mts +19 -0
- package/dist/integrations/openai.d.ts +19 -0
- package/dist/integrations/openai.js +302 -0
- package/dist/integrations/openai.js.map +1 -0
- package/dist/integrations/openai.mjs +272 -0
- package/dist/integrations/openai.mjs.map +1 -0
- package/package.json +46 -4
- package/dist/integrations/openai/index.d.mts +0 -16
- package/dist/integrations/openai/index.d.ts +0 -16
- package/dist/integrations/openai/index.js +0 -38
- package/dist/integrations/openai/index.js.map +0 -1
- package/dist/integrations/openai/index.mjs +0 -12
- package/dist/integrations/openai/index.mjs.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as InstaVM, b as BrowserSession } from './InstaVM-DjkmUcaP.mjs';
|
|
2
|
+
|
|
3
|
+
/** OpenAI / Azure / Ollama–compatible function tool schema. */
|
|
4
|
+
type InstaVMOpenAITool = {
|
|
5
|
+
type: 'function';
|
|
6
|
+
function: {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
parameters: Record<string, unknown>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type ToolCallLike = {
|
|
13
|
+
function: {
|
|
14
|
+
name: string;
|
|
15
|
+
arguments: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Execute a single OpenAI-style tool call (parity with Python `execute_tool`).
|
|
20
|
+
* Returns a dict; when a new browser session is created, `session` holds the `BrowserSession` instance.
|
|
21
|
+
*/
|
|
22
|
+
declare function executeInstavmToolCall(instavm: InstaVM, toolCall: ToolCallLike, browserSession?: BrowserSession | null): Promise<Record<string, unknown> & {
|
|
23
|
+
session?: BrowserSession;
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
export { type InstaVMOpenAITool as I, type ToolCallLike as T, executeInstavmToolCall as e };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as InstaVM, b as BrowserSession } from './InstaVM-DjkmUcaP.js';
|
|
2
|
+
|
|
3
|
+
/** OpenAI / Azure / Ollama–compatible function tool schema. */
|
|
4
|
+
type InstaVMOpenAITool = {
|
|
5
|
+
type: 'function';
|
|
6
|
+
function: {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
parameters: Record<string, unknown>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type ToolCallLike = {
|
|
13
|
+
function: {
|
|
14
|
+
name: string;
|
|
15
|
+
arguments: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Execute a single OpenAI-style tool call (parity with Python `execute_tool`).
|
|
20
|
+
* Returns a dict; when a new browser session is created, `session` holds the `BrowserSession` instance.
|
|
21
|
+
*/
|
|
22
|
+
declare function executeInstavmToolCall(instavm: InstaVM, toolCall: ToolCallLike, browserSession?: BrowserSession | null): Promise<Record<string, unknown> & {
|
|
23
|
+
session?: BrowserSession;
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
export { type InstaVMOpenAITool as I, type ToolCallLike as T, executeInstavmToolCall as e };
|