llm-exe 2.3.11 → 3.0.0-beta.2
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/dist/index.d.mts +571 -184
- package/dist/index.d.ts +571 -184
- package/dist/index.js +3191 -910
- package/dist/index.mjs +3188 -910
- package/package.json +3 -4
- package/readme.md +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-exe",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
4
|
"description": "Simplify building LLM-powered apps with easy-to-use base components, supporting text and chat-based prompts with handlebars template engine, output parsers, and flexible function calling capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
"anthropic",
|
|
10
10
|
"bedrock",
|
|
11
11
|
"llama",
|
|
12
|
-
"
|
|
13
|
-
"gpt-4",
|
|
12
|
+
"chatgpt",
|
|
14
13
|
"claude",
|
|
15
14
|
"grok",
|
|
16
15
|
"gemini",
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"predocs:build": "npm run build:docs-examples && bash scripts/generate-llms-txt.sh",
|
|
50
49
|
"docs:dev": "eval $(cat docs/.env) && concurrently \"vitepress dev docs\" \"npm run build:watch:docs-examples\"",
|
|
51
50
|
"docs:build": "eval $(cat docs/.env) && vitepress build docs",
|
|
52
|
-
"docs:update-providers": "node docs/.vitepress/scripts/updateProviders.
|
|
51
|
+
"docs:update-providers": "ts-node --transpile-only -r tsconfig-paths/register docs/.vitepress/scripts/updateProviders.ts",
|
|
53
52
|
"lint": "eslint .",
|
|
54
53
|
"format:check": "prettier --check \"src\"",
|
|
55
54
|
"format:write": "prettier --write \"src\"",
|
package/readme.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/llm-exe/llm-exe/actions/workflows/tests.yml) [](https://coveralls.io/github/llm-exe/llm-exe?branch=main) [](https://badge.fury.io/js/llm-exe)
|
|
4
4
|
|
|
5
|
+
> Upgrading from llm-exe 2.x to 3.x? Read the [v2 to v3 migration guide](https://llm-exe.com/misc/v2-to-v3-migration-guide.html) before updating. It covers parser and output-boundary changes that may require code updates.
|
|
6
|
+
|
|
5
7
|
A package that provides simplified base components to make building and maintaining LLM-powered applications easier.
|
|
6
8
|
|
|
7
9
|
- Write functions powered by LLM's with easy to use building blocks.
|
|
@@ -83,7 +85,7 @@ Welcome back!
|
|
|
83
85
|
```ts
|
|
84
86
|
createParser("string"); // pass-through, returns string
|
|
85
87
|
createParser("json", { schema }); // JSON with optional schema validation
|
|
86
|
-
createParser("boolean"); //
|
|
88
|
+
createParser("boolean"); // parses a boolean token
|
|
87
89
|
createParser("number"); // extracts number from response
|
|
88
90
|
createParser("stringExtract", { enum: ["yes", "no"] }); // match one of the enum values
|
|
89
91
|
createParser("listToArray"); // newline-separated list → string[]
|