Skip to content

Commit bd160a4

Browse files
authored
add ai packages (#3631)
1 parent 360ec14 commit bd160a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+7427
-11
lines changed

.changeset/olive-ads-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/experimental": patch
3+
---
4+
5+
add Sse module to experimental, for parsing server-side-events

.changeset/soft-bees-applaud.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@effect/ai-openai": minor
3+
"@effect/ai": minor
4+
---
5+
6+
add @effect/ai packages
7+
8+
Experimental modules for working with LLMs, currently only from OpenAI.

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: pnpm build
2323
- name: Create snapshot
2424
id: snapshot
25-
run: pnpx [email protected] publish --pnpm --comment=off ./packages/*
25+
run: pnpx [email protected] publish --pnpm --comment=off ./packages/* ./packages/ai/*

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "module",
44
"packageManager": "[email protected]+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c",
55
"workspaces": [
6-
"packages/*"
6+
"packages/*",
7+
"packages/ai/*"
78
],
89
"scripts": {
910
"clean": "node scripts/clean.mjs",

packages/ai/ai/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Effectful Technologies Inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/ai/ai/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# @effect/ai

packages/ai/ai/docgen.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "../../../node_modules/@effect/docgen/schema.json",
3+
"exclude": [
4+
"src/internal/**/*.ts"
5+
],
6+
"examplesCompilerOptions": {
7+
"noEmit": true,
8+
"strict": true,
9+
"skipLibCheck": true,
10+
"moduleResolution": "Bundler",
11+
"module": "ES2022",
12+
"target": "ES2022",
13+
"lib": [
14+
"ES2022",
15+
"DOM",
16+
"DOM.Iterable"
17+
],
18+
"paths": {
19+
"effect": [
20+
"../../../../effect/src/index.js"
21+
],
22+
"effect/*": [
23+
"../../../../effect/src/*.js"
24+
],
25+
"@effect/platform": [
26+
"../../../../platform/src/index.js"
27+
],
28+
"@effect/platform/*": [
29+
"../../../../platform/src/*.js"
30+
],
31+
"@effect/schema": [
32+
"../../../../schema/src/index.js"
33+
],
34+
"@effect/schema/*": [
35+
"../../../../schema/src/*.js"
36+
],
37+
"@effect/ai": [
38+
"../../../ai/src/index.js"
39+
],
40+
"@effect/ai/*": [
41+
"../../../ai/src/*.js"
42+
],
43+
"@effect/ai-openai": [
44+
"../../../ai-openai/src/index.js"
45+
],
46+
"@effect/ai-openai/*": [
47+
"../../../ai-openai/src/*.js"
48+
]
49+
}
50+
}
51+
}

packages/ai/ai/package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "@effect/ai",
3+
"type": "module",
4+
"version": "0.0.0",
5+
"license": "MIT",
6+
"description": "Effect modules for working with AI apis",
7+
"homepage": "https://effect.website",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/Effect-TS/effect.git",
11+
"directory": "packages/ai/ai"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/Effect-TS/effect/issues"
15+
},
16+
"tags": [
17+
"typescript",
18+
"algebraic-data-types",
19+
"functional-programming"
20+
],
21+
"keywords": [
22+
"typescript",
23+
"algebraic-data-types",
24+
"functional-programming"
25+
],
26+
"publishConfig": {
27+
"access": "public",
28+
"directory": "dist",
29+
"provenance": true
30+
},
31+
"scripts": {
32+
"codegen": "build-utils prepare-v2",
33+
"build": "pnpm build-esm && pnpm build-annotate && pnpm build-cjs && build-utils pack-v2",
34+
"build-esm": "tsc -b tsconfig.build.json",
35+
"build-cjs": "babel build/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir build/cjs --source-maps",
36+
"build-annotate": "babel build/esm --plugins annotate-pure-calls --out-dir build/esm --source-maps",
37+
"check": "tsc -b tsconfig.json",
38+
"test": "vitest",
39+
"coverage": "vitest --coverage"
40+
},
41+
"dependencies": {},
42+
"peerDependencies": {
43+
"@effect/platform": "workspace:^",
44+
"@effect/schema": "workspace:^",
45+
"effect": "workspace:^"
46+
},
47+
"devDependencies": {
48+
"@effect/platform": "workspace:^",
49+
"@effect/schema": "workspace:^",
50+
"effect": "workspace:^"
51+
}
52+
}

0 commit comments

Comments
 (0)