Skip to content

Comments

Add AI Stack with Claude, LangChain, and multi-provider support#11

Draft
Copilot wants to merge 5 commits intomasterfrom
copilot/add-ai-tools-stack
Draft

Add AI Stack with Claude, LangChain, and multi-provider support#11
Copilot wants to merge 5 commits intomasterfrom
copilot/add-ai-tools-stack

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

Adds comprehensive AI toolkit infrastructure with Claude/Anthropic as the primary provider, LangChain framework integration, and multi-provider support (OpenAI, Cohere, Vercel AI SDK).

Changes

Dependencies

  • @anthropic-ai/sdk ^0.20.0 - Claude 3 models (Opus/Sonnet/Haiku)
  • langchain ^0.3.80, @langchain/anthropic ^0.3.0 - LangChain framework with Claude integration
  • openai ^4.28.0, cohere-ai ^7.7.0, ai ^6.0.49 - Additional AI providers
  • All added as optional dependencies to preserve base installation size

Configuration (src/config/index.ts)

  • Added type-safe Zod schemas for Claude, LangChain, and multi-provider settings
  • Environment variables: CLAUDE_*, LANGCHAIN_*, OPENAI_API_KEY, COHERE_API_KEY

Security

  • Addressed LangChain serialization injection vulnerabilities (4 CVEs) by upgrading to patched version
  • Fixed Vercel AI SDK file upload bypass and XSS vulnerabilities

Dependency Management

  • Updated Renovate to group AI dependencies with monthly update schedule

Usage

import Anthropic from '@anthropic-ai/sdk';
import { ChatAnthropic } from '@langchain/anthropic';
import { loadConfig } from './config';

const config = loadConfig();

// Direct Claude API
const anthropic = new Anthropic({ apiKey: config.claude.apiKey });
const message = await anthropic.messages.create({
  model: 'claude-3-opus-20240229',
  max_tokens: 4096,
  messages: [{ role: 'user', content: 'Hello' }]
});

// LangChain integration
const model = new ChatAnthropic({
  anthropicApiKey: config.claude.apiKey,
  modelName: 'claude-3-opus-20240229'
});

Configuration

# Claude
CLAUDE_ENABLED=true
CLAUDE_API_KEY=sk-ant-***
CLAUDE_MODEL=claude-3-opus-20240229
CLAUDE_MAX_TOKENS=4096

# LangChain
LANGCHAIN_ENABLED=true
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=ls__***
Original prompt

Add a full AI Stack of AI tools and toolkits with Claude to the list of upgrades and updates For this repository.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 24, 2026 11:05
Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
Copilot AI changed the title [WIP] Add full AI stack of tools with Claude Add AI Stack with Claude, LangChain, and multi-provider support Jan 24, 2026
Copilot AI requested a review from lippytm January 24, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants