langfn 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ OpenAIEmbeddings
3
+ } from "./chunk-LIUWQ4NY.js";
4
+ import "./chunk-MLKGABMK.js";
5
+ export {
6
+ OpenAIEmbeddings
7
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ OpenAIChatModel
3
+ } from "./chunk-6NDYO7WC.js";
4
+ import "./chunk-MLKGABMK.js";
5
+ export {
6
+ OpenAIChatModel
7
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ ReActAgent
3
+ } from "./chunk-MHMMFGVC.js";
4
+ import "./chunk-MLKGABMK.js";
5
+ export {
6
+ ReActAgent
7
+ };
@@ -0,0 +1,13 @@
1
+ import "./chunk-MLKGABMK.js";
2
+
3
+ // src/streaming/sse.ts
4
+ async function* toSSE(lang, prompt) {
5
+ for await (const event of lang.stream(prompt)) {
6
+ yield `data: ${JSON.stringify(event)}
7
+
8
+ `;
9
+ }
10
+ }
11
+ export {
12
+ toSSE
13
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ ToolAgent
3
+ } from "./chunk-IDYTII3W.js";
4
+ import "./chunk-MLKGABMK.js";
5
+ export {
6
+ ToolAgent
7
+ };
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "langfn",
3
+ "version": "0.0.1",
4
+ "description": "Comprehensive AI Development SDK for LLM-based workflows",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "dev": "tsup src/index.ts --format esm --dts --watch",
20
+ "build": "tsup src/index.ts --format esm --dts --clean",
21
+ "test": "vitest run",
22
+ "test:watch": "vitest",
23
+ "lint": "eslint src/**/*.ts",
24
+ "typecheck": "tsc --noEmit"
25
+ },
26
+ "keywords": [
27
+ "llm",
28
+ "agents",
29
+ "orchestration",
30
+ "ai",
31
+ "superfunctions"
32
+ ],
33
+ "author": "21n",
34
+ "license": "MIT",
35
+ "bugs": {
36
+ "url": "https://github.com/21nCo/super-functions/issues"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/21nCo/super-functions.git",
41
+ "directory": "langfn/typescript"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "superfunctions": {
47
+ "initFunction": "langFn",
48
+ "schemaVersion": 1,
49
+ "namespace": "langfn"
50
+ },
51
+ "dependencies": {
52
+ "@superfunctions/db": "*",
53
+ "@superfunctions/http": "*",
54
+ "zod": "^3.23.8",
55
+ "zod-to-json-schema": "^3.23.2"
56
+ },
57
+ "devDependencies": {
58
+ "@types/node": "^22.0.0",
59
+ "tsup": "^8.2.4",
60
+ "typescript": "^5.6.0",
61
+ "vitest": "^3.2.4"
62
+ }
63
+ }