feat: langchain upgrade
Some checks failed
Build Containers / build-containers-common (push) Has been cancelled
Build / build (22.12.0) (push) Has been cancelled
Build Containers / build-containers (amd64, ubuntu-latest) (push) Has been cancelled
Build Containers / build-containers (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Build Containers / build-container-manifest (push) Has been cancelled
Some checks failed
Build Containers / build-containers-common (push) Has been cancelled
Build / build (22.12.0) (push) Has been cancelled
Build Containers / build-containers (amd64, ubuntu-latest) (push) Has been cancelled
Build Containers / build-containers (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Build Containers / build-container-manifest (push) Has been cancelled
This commit is contained in:
parent
6a06b210c2
commit
3e8a0ab817
4 changed files with 716 additions and 200 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
} from '@langchain/core/messages';
|
||||
import { END, START, StateGraph } from '@langchain/langgraph';
|
||||
import { ChatOpenAI, DallEAPIWrapper } from '@langchain/openai';
|
||||
import { TavilySearchResults } from '@langchain/community/tools/tavily_search';
|
||||
import { TavilySearch } from '@langchain/tavily';
|
||||
import { ToolNode } from '@langchain/langgraph/prebuilt';
|
||||
import { ChatPromptTemplate } from '@langchain/core/prompts';
|
||||
import dayjs from 'dayjs';
|
||||
|
|
@ -18,7 +18,7 @@ import { GeneratorDto } from '@gitroom/nestjs-libraries/dtos/generator/generator
|
|||
|
||||
const tools = !process.env.TAVILY_API_KEY
|
||||
? []
|
||||
: [new TavilySearchResults({ maxResults: 3 })];
|
||||
: [new TavilySearch({ maxResults: 3 })];
|
||||
const toolNode = new ToolNode(tools);
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
|
|
|
|||
|
|
@ -52,10 +52,11 @@
|
|||
"@copilotkit/runtime": "1.10.6",
|
||||
"@dub/analytics": "^0.0.32",
|
||||
"@hookform/resolvers": "^3.3.4",
|
||||
"@langchain/community": "^0.3.40",
|
||||
"@langchain/core": "^0.3.44",
|
||||
"@langchain/langgraph": "^0.2.63",
|
||||
"@langchain/openai": "^0.5.5",
|
||||
"@langchain/community": "^1.1.27",
|
||||
"@langchain/core": "^1.1.39",
|
||||
"@langchain/langgraph": "^1.2.8",
|
||||
"@langchain/openai": "^1.4.3",
|
||||
"@langchain/tavily": "^1.2.0",
|
||||
"@mantine/core": "^5.10.5",
|
||||
"@mantine/dates": "^5.10.5",
|
||||
"@mantine/hooks": "^5.10.5",
|
||||
|
|
|
|||
902
pnpm-lock.yaml
generated
902
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -25,6 +25,7 @@
|
|||
"noFallthroughCasesInSwitch": true,
|
||||
"strict": true,
|
||||
"paths": {
|
||||
"@langchain/langgraph/prebuilt": ["node_modules/@langchain/langgraph/dist/prebuilt/index.d.ts"],
|
||||
"@gitroom/backend/*": ["apps/backend/src/*"],
|
||||
"@gitroom/frontend/*": ["apps/frontend/src/*"],
|
||||
"@gitroom/helpers/*": ["libraries/helpers/src/*"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue