kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: make AIFunction compatible with OpenAI responses tools
rodzic
e3483ca39e
commit
a7c48d2f72
|
@ -0,0 +1,64 @@
|
||||||
|
import 'dotenv/config'
|
||||||
|
|
||||||
|
import type { ResponseInput } from 'openai/resources/responses/responses.mjs'
|
||||||
|
import { assert } from '@agentic/core'
|
||||||
|
import { WeatherClient } from '@agentic/stdlib'
|
||||||
|
import OpenAI from 'openai'
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const weather = new WeatherClient()
|
||||||
|
const openai = new OpenAI()
|
||||||
|
|
||||||
|
const messages: ResponseInput = [
|
||||||
|
{
|
||||||
|
role: 'system',
|
||||||
|
content: 'You are a helpful assistant. Be as concise as possible.'
|
||||||
|
},
|
||||||
|
{ role: 'user', content: 'What is the weather in San Francisco?' }
|
||||||
|
]
|
||||||
|
|
||||||
|
{
|
||||||
|
// First call to OpenAI to invoke the weather tool
|
||||||
|
const res = await openai.responses.create({
|
||||||
|
model: 'gpt-4o-mini',
|
||||||
|
temperature: 0,
|
||||||
|
tools: weather.functions.specs,
|
||||||
|
tool_choice: 'required',
|
||||||
|
input: messages
|
||||||
|
})
|
||||||
|
|
||||||
|
const message = res.output[0]
|
||||||
|
console.log(JSON.stringify(message, null, 2))
|
||||||
|
assert(message?.type === 'function_call')
|
||||||
|
assert(message.name === 'get_current_weather')
|
||||||
|
|
||||||
|
const fn = weather.functions.get('get_current_weather')!
|
||||||
|
assert(fn)
|
||||||
|
|
||||||
|
const toolParams = message.arguments
|
||||||
|
const toolResult = await fn(toolParams)
|
||||||
|
|
||||||
|
messages.push(message)
|
||||||
|
messages.push({
|
||||||
|
type: 'function_call_output',
|
||||||
|
call_id: message.call_id,
|
||||||
|
output: JSON.stringify(toolResult)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log()
|
||||||
|
|
||||||
|
{
|
||||||
|
// Second call to OpenAI to generate a text response
|
||||||
|
const res = await openai.responses.create({
|
||||||
|
model: 'gpt-4o-mini',
|
||||||
|
temperature: 0,
|
||||||
|
tools: weather.functions.specs,
|
||||||
|
input: messages
|
||||||
|
})
|
||||||
|
|
||||||
|
console.log(res.output_text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
await main()
|
|
@ -10,7 +10,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@agentic/core": "workspace:*",
|
"@agentic/core": "workspace:*",
|
||||||
"@agentic/stdlib": "workspace:*",
|
"@agentic/stdlib": "workspace:*",
|
||||||
"openai": "^4.85.2",
|
"openai": "^4.87.3",
|
||||||
"zod": "^3.24.2"
|
"zod": "^3.24.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -72,6 +72,7 @@ export function createAIFunction<InputSchema extends z.ZodObject<any>, Output>(
|
||||||
name: spec.name,
|
name: spec.name,
|
||||||
description: spec.description?.trim() ?? '',
|
description: spec.description?.trim() ?? '',
|
||||||
parameters: zodToJsonSchema(spec.inputSchema, { strict }),
|
parameters: zodToJsonSchema(spec.inputSchema, { strict }),
|
||||||
|
type: 'function',
|
||||||
strict
|
strict
|
||||||
}
|
}
|
||||||
aiFunction.impl = implementation
|
aiFunction.impl = implementation
|
||||||
|
|
|
@ -34,12 +34,17 @@ export interface AIFunctionSpec {
|
||||||
/** JSON schema spec of the function's input parameters */
|
/** JSON schema spec of the function's input parameters */
|
||||||
parameters: JSONSchema
|
parameters: JSONSchema
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of the function tool. Always `function`.
|
||||||
|
*/
|
||||||
|
type: 'function'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to enable strict schema adherence when generating the function
|
* Whether to enable strict schema adherence when generating the function
|
||||||
* parameters. Currently only supported by OpenAI's
|
* parameters. Currently only supported by OpenAI's
|
||||||
* [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).
|
* [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).
|
||||||
*/
|
*/
|
||||||
strict?: boolean
|
strict: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AIToolSpec {
|
export interface AIToolSpec {
|
||||||
|
|
|
@ -160,13 +160,13 @@ importers:
|
||||||
version: link:../../packages/stdlib
|
version: link:../../packages/stdlib
|
||||||
'@langchain/core':
|
'@langchain/core':
|
||||||
specifier: ^0.3.13
|
specifier: ^0.3.13
|
||||||
version: 0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
version: 0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
||||||
'@langchain/openai':
|
'@langchain/openai':
|
||||||
specifier: 0.4.4
|
specifier: 0.4.4
|
||||||
version: 0.4.4(@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(encoding@0.1.13)(ws@8.18.0)
|
version: 0.4.4(@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(encoding@0.1.13)(ws@8.18.0)
|
||||||
langchain:
|
langchain:
|
||||||
specifier: ^0.3.3
|
specifier: ^0.3.3
|
||||||
version: 0.3.19(@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(axios@1.7.9)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))(ws@8.18.0)
|
version: 0.3.19(@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(axios@1.7.9)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))(ws@8.18.0)
|
||||||
zod:
|
zod:
|
||||||
specifier: ^3.24.2
|
specifier: ^3.24.2
|
||||||
version: 3.24.2
|
version: 3.24.2
|
||||||
|
@ -188,7 +188,7 @@ importers:
|
||||||
version: link:../../packages/stdlib
|
version: link:../../packages/stdlib
|
||||||
llamaindex:
|
llamaindex:
|
||||||
specifier: ^0.9.2
|
specifier: ^0.9.2
|
||||||
version: 0.9.2(@aws-crypto/sha256-js@5.2.0)(encoding@0.1.13)(js-tiktoken@1.0.19)(pathe@1.1.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(ws@8.18.0)(zod@3.24.2)
|
version: 0.9.2(@aws-crypto/sha256-js@5.2.0)(js-tiktoken@1.0.19)(pathe@1.1.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(ws@8.18.0)(zod@3.24.2)
|
||||||
zod:
|
zod:
|
||||||
specifier: ^3.24.2
|
specifier: ^3.24.2
|
||||||
version: 3.24.2
|
version: 3.24.2
|
||||||
|
@ -206,8 +206,8 @@ importers:
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/stdlib
|
version: link:../../packages/stdlib
|
||||||
openai:
|
openai:
|
||||||
specifier: ^4.85.2
|
specifier: ^4.87.3
|
||||||
version: 4.85.2(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
version: 4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
||||||
zod:
|
zod:
|
||||||
specifier: ^3.24.2
|
specifier: ^3.24.2
|
||||||
version: 3.24.2
|
version: 3.24.2
|
||||||
|
@ -598,7 +598,7 @@ importers:
|
||||||
version: link:../tsconfig
|
version: link:../tsconfig
|
||||||
'@langchain/core':
|
'@langchain/core':
|
||||||
specifier: ^0.3.13
|
specifier: ^0.3.13
|
||||||
version: 0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
version: 0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
||||||
|
|
||||||
packages/leadmagic:
|
packages/leadmagic:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -630,7 +630,7 @@ importers:
|
||||||
version: link:../tsconfig
|
version: link:../tsconfig
|
||||||
llamaindex:
|
llamaindex:
|
||||||
specifier: ^0.9.2
|
specifier: ^0.9.2
|
||||||
version: 0.9.2(@aws-crypto/sha256-js@5.2.0)(encoding@0.1.13)(js-tiktoken@1.0.19)(pathe@1.1.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(ws@8.18.0)(zod@3.24.2)
|
version: 0.9.2(@aws-crypto/sha256-js@5.2.0)(js-tiktoken@1.0.19)(pathe@1.1.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(ws@8.18.0)(zod@3.24.2)
|
||||||
|
|
||||||
packages/midjourney:
|
packages/midjourney:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -4330,8 +4330,8 @@ packages:
|
||||||
zod:
|
zod:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
openai@4.85.3:
|
openai@4.87.3:
|
||||||
resolution: {integrity: sha512-KTMXAK6FPd2IvsPtglMt0J1GyVrjMxCYzu/mVbCPabzzquSJoZlYpHtE0p0ScZPyt11XTc757xSO4j39j5g+Xw==}
|
resolution: {integrity: sha512-d2D54fzMuBYTxMW8wcNmhT1rYKcTfMJ8t+4KjH2KtvYenygITiGBgHoIrzHwnDQWW+C5oCA+ikIR2jgPCFqcKQ==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
ws: ^8.18.0
|
ws: ^8.18.0
|
||||||
|
@ -5974,8 +5974,8 @@ snapshots:
|
||||||
'@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.8.2)
|
'@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.8.2)
|
||||||
'@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.8.2)
|
'@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.8.2)
|
||||||
eslint-config-prettier: 9.1.0(eslint@8.57.1)
|
eslint-config-prettier: 9.1.0(eslint@8.57.1)
|
||||||
eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1)
|
eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0)(eslint@8.57.1)
|
||||||
eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1)
|
eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
|
||||||
eslint-plugin-jest: 28.9.0(@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1)(typescript@5.8.2)
|
eslint-plugin-jest: 28.9.0(@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1)(typescript@5.8.2)
|
||||||
eslint-plugin-jest-dom: 5.4.0(eslint@8.57.1)
|
eslint-plugin-jest-dom: 5.4.0(eslint@8.57.1)
|
||||||
eslint-plugin-jsx-a11y: 6.10.2(eslint@8.57.1)
|
eslint-plugin-jsx-a11y: 6.10.2(eslint@8.57.1)
|
||||||
|
@ -6083,14 +6083,14 @@ snapshots:
|
||||||
|
|
||||||
'@js-sdsl/ordered-map@4.4.2': {}
|
'@js-sdsl/ordered-map@4.4.2': {}
|
||||||
|
|
||||||
'@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))':
|
'@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@cfworker/json-schema': 4.1.1
|
'@cfworker/json-schema': 4.1.1
|
||||||
ansi-styles: 5.2.0
|
ansi-styles: 5.2.0
|
||||||
camelcase: 6.3.0
|
camelcase: 6.3.0
|
||||||
decamelize: 1.2.0
|
decamelize: 1.2.0
|
||||||
js-tiktoken: 1.0.15
|
js-tiktoken: 1.0.15
|
||||||
langsmith: 0.3.10(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
langsmith: 0.3.10(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
||||||
mustache: 4.2.0
|
mustache: 4.2.0
|
||||||
p-queue: 6.6.2
|
p-queue: 6.6.2
|
||||||
p-retry: 4.6.2
|
p-retry: 4.6.2
|
||||||
|
@ -6100,20 +6100,20 @@ snapshots:
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- openai
|
- openai
|
||||||
|
|
||||||
'@langchain/openai@0.4.4(@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(encoding@0.1.13)(ws@8.18.0)':
|
'@langchain/openai@0.4.4(@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(encoding@0.1.13)(ws@8.18.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@langchain/core': 0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
'@langchain/core': 0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
||||||
js-tiktoken: 1.0.19
|
js-tiktoken: 1.0.19
|
||||||
openai: 4.85.2(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
openai: 4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
||||||
zod: 3.24.2
|
zod: 3.24.2
|
||||||
zod-to-json-schema: 3.24.1(zod@3.24.2)
|
zod-to-json-schema: 3.24.1(zod@3.24.2)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- encoding
|
- encoding
|
||||||
- ws
|
- ws
|
||||||
|
|
||||||
'@langchain/textsplitters@0.1.0(@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))':
|
'@langchain/textsplitters@0.1.0(@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@langchain/core': 0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
'@langchain/core': 0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
||||||
js-tiktoken: 1.0.19
|
js-tiktoken: 1.0.19
|
||||||
|
|
||||||
'@llamaindex/cloud@3.0.2(@llamaindex/core@0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(@llamaindex/env@0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))':
|
'@llamaindex/cloud@3.0.2(@llamaindex/core@0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(@llamaindex/env@0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))':
|
||||||
|
@ -6152,11 +6152,11 @@ snapshots:
|
||||||
tree-sitter: 0.22.4
|
tree-sitter: 0.22.4
|
||||||
web-tree-sitter: 0.24.7
|
web-tree-sitter: 0.24.7
|
||||||
|
|
||||||
'@llamaindex/openai@0.1.53(@aws-crypto/sha256-js@5.2.0)(encoding@0.1.13)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)(ws@8.18.0)(zod@3.24.2)':
|
'@llamaindex/openai@0.1.53(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)(ws@8.18.0)(zod@3.24.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@llamaindex/core': 0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
'@llamaindex/core': 0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
||||||
'@llamaindex/env': 0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
'@llamaindex/env': 0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
||||||
openai: 4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
openai: 4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@aws-crypto/sha256-js'
|
- '@aws-crypto/sha256-js'
|
||||||
- '@huggingface/transformers'
|
- '@huggingface/transformers'
|
||||||
|
@ -7636,37 +7636,37 @@ snapshots:
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1):
|
eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0)(eslint@8.57.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@nolyfill/is-core-module': 1.0.39
|
'@nolyfill/is-core-module': 1.0.39
|
||||||
debug: 4.4.0
|
debug: 4.4.0
|
||||||
enhanced-resolve: 5.17.1
|
enhanced-resolve: 5.17.1
|
||||||
eslint: 8.57.1
|
eslint: 8.57.1
|
||||||
eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1)
|
eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
|
||||||
fast-glob: 3.3.2
|
fast-glob: 3.3.2
|
||||||
get-tsconfig: 4.10.0
|
get-tsconfig: 4.10.0
|
||||||
is-bun-module: 1.2.1
|
is-bun-module: 1.2.1
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1)
|
eslint-plugin-import: 2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@typescript-eslint/parser'
|
- '@typescript-eslint/parser'
|
||||||
- eslint-import-resolver-node
|
- eslint-import-resolver-node
|
||||||
- eslint-import-resolver-webpack
|
- eslint-import-resolver-webpack
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-module-utils@2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1):
|
eslint-module-utils@2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 3.2.7
|
debug: 3.2.7
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.8.2)
|
'@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.8.2)
|
||||||
eslint: 8.57.1
|
eslint: 8.57.1
|
||||||
eslint-import-resolver-node: 0.3.9
|
eslint-import-resolver-node: 0.3.9
|
||||||
eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1)
|
eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0)(eslint@8.57.1)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1):
|
eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rtsao/scc': 1.1.0
|
'@rtsao/scc': 1.1.0
|
||||||
array-includes: 3.1.8
|
array-includes: 3.1.8
|
||||||
|
@ -7677,7 +7677,7 @@ snapshots:
|
||||||
doctrine: 2.1.0
|
doctrine: 2.1.0
|
||||||
eslint: 8.57.1
|
eslint: 8.57.1
|
||||||
eslint-import-resolver-node: 0.3.9
|
eslint-import-resolver-node: 0.3.9
|
||||||
eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1)
|
eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1)
|
||||||
hasown: 2.0.2
|
hasown: 2.0.2
|
||||||
is-core-module: 2.15.1
|
is-core-module: 2.15.1
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
|
@ -8087,7 +8087,7 @@ snapshots:
|
||||||
genkitx-openai@0.16.0(genkit@1.0.4)(ws@8.18.0)(zod@3.24.2):
|
genkitx-openai@0.16.0(genkit@1.0.4)(ws@8.18.0)(zod@3.24.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
genkit: 1.0.4
|
genkit: 1.0.4
|
||||||
openai: 4.85.2(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
openai: 4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- encoding
|
- encoding
|
||||||
- ws
|
- ws
|
||||||
|
@ -8552,15 +8552,15 @@ snapshots:
|
||||||
|
|
||||||
ky@1.7.5: {}
|
ky@1.7.5: {}
|
||||||
|
|
||||||
langchain@0.3.19(@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(axios@1.7.9)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))(ws@8.18.0):
|
langchain@0.3.19(@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(axios@1.7.9)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))(ws@8.18.0):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@langchain/core': 0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
'@langchain/core': 0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
||||||
'@langchain/openai': 0.4.4(@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(encoding@0.1.13)(ws@8.18.0)
|
'@langchain/openai': 0.4.4(@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))(encoding@0.1.13)(ws@8.18.0)
|
||||||
'@langchain/textsplitters': 0.1.0(@langchain/core@0.3.40(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))
|
'@langchain/textsplitters': 0.1.0(@langchain/core@0.3.40(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)))
|
||||||
js-tiktoken: 1.0.15
|
js-tiktoken: 1.0.15
|
||||||
js-yaml: 4.1.0
|
js-yaml: 4.1.0
|
||||||
jsonpointer: 5.0.1
|
jsonpointer: 5.0.1
|
||||||
langsmith: 0.3.10(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
langsmith: 0.3.10(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2))
|
||||||
openapi-types: 12.1.3
|
openapi-types: 12.1.3
|
||||||
p-retry: 4.6.2
|
p-retry: 4.6.2
|
||||||
uuid: 10.0.0
|
uuid: 10.0.0
|
||||||
|
@ -8575,7 +8575,7 @@ snapshots:
|
||||||
- openai
|
- openai
|
||||||
- ws
|
- ws
|
||||||
|
|
||||||
langsmith@0.3.10(openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)):
|
langsmith@0.3.10(openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/uuid': 10.0.0
|
'@types/uuid': 10.0.0
|
||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
|
@ -8585,7 +8585,7 @@ snapshots:
|
||||||
semver: 7.7.1
|
semver: 7.7.1
|
||||||
uuid: 10.0.0
|
uuid: 10.0.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
openai: 4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
openai: 4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2)
|
||||||
|
|
||||||
language-subtag-registry@0.3.23: {}
|
language-subtag-registry@0.3.23: {}
|
||||||
|
|
||||||
|
@ -8628,13 +8628,13 @@ snapshots:
|
||||||
rfdc: 1.4.1
|
rfdc: 1.4.1
|
||||||
wrap-ansi: 9.0.0
|
wrap-ansi: 9.0.0
|
||||||
|
|
||||||
llamaindex@0.9.2(@aws-crypto/sha256-js@5.2.0)(encoding@0.1.13)(js-tiktoken@1.0.19)(pathe@1.1.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(ws@8.18.0)(zod@3.24.2):
|
llamaindex@0.9.2(@aws-crypto/sha256-js@5.2.0)(js-tiktoken@1.0.19)(pathe@1.1.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(ws@8.18.0)(zod@3.24.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@llamaindex/cloud': 3.0.2(@llamaindex/core@0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(@llamaindex/env@0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))
|
'@llamaindex/cloud': 3.0.2(@llamaindex/core@0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(@llamaindex/env@0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))
|
||||||
'@llamaindex/core': 0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
'@llamaindex/core': 0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
||||||
'@llamaindex/env': 0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
'@llamaindex/env': 0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)
|
||||||
'@llamaindex/node-parser': 1.0.1(@llamaindex/core@0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(@llamaindex/env@0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)
|
'@llamaindex/node-parser': 1.0.1(@llamaindex/core@0.5.1(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(@llamaindex/env@0.1.28(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2))(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)
|
||||||
'@llamaindex/openai': 0.1.53(@aws-crypto/sha256-js@5.2.0)(encoding@0.1.13)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)(ws@8.18.0)(zod@3.24.2)
|
'@llamaindex/openai': 0.1.53(@aws-crypto/sha256-js@5.2.0)(gpt-tokenizer@2.8.1)(js-tiktoken@1.0.19)(pathe@1.1.2)(ws@8.18.0)(zod@3.24.2)
|
||||||
'@types/lodash': 4.17.15
|
'@types/lodash': 4.17.15
|
||||||
'@types/node': 22.13.10
|
'@types/node': 22.13.10
|
||||||
ajv: 8.17.1
|
ajv: 8.17.1
|
||||||
|
@ -8922,7 +8922,7 @@ snapshots:
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- encoding
|
- encoding
|
||||||
|
|
||||||
openai@4.85.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2):
|
openai@4.87.3(encoding@0.1.13)(ws@8.18.0)(zod@3.24.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 18.19.80
|
'@types/node': 18.19.80
|
||||||
'@types/node-fetch': 2.6.12
|
'@types/node-fetch': 2.6.12
|
||||||
|
|
Ładowanie…
Reference in New Issue