# Trashchenkov Gigachat Skills Langchain Gigachat

> LangChain GigaChat

- Skill: `tomevault-io/trashchenkov-gigachat-skills-langchain-gigachat` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/trashchenkov-gigachat-skills-langchain-gigachat`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/trashchenkov-gigachat-skills-langchain-gigachat/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/trashchenkov-gigachat-skills-langchain-gigachat

---


# LangChain GigaChat

Use this skill when the user is building with LangChain abstractions, not raw `gigachat`.

## What this skill covers

- `langchain-gigachat` installation and initialization
- chat model usage through LangChain messages and runnables
- embeddings through `GigaChatEmbeddings`
- tool binding and structured outputs where supported
- RAG setup using LangChain vector stores
- practical wrapper behavior around the underlying SDK

## Workflow

1. If credentials and TLS are not configured, use `gigachat-setup`.
2. If the task does not need LangChain primitives, prefer `gigachat-sdk-*` skills.
3. Initialize `GigaChat` or `GigaChatEmbeddings` with the same auth inputs as the SDK.
4. Work with LangChain message objects, not raw GigaChat payloads, unless debugging conversion.
5. For RAG, pair `GigaChatEmbeddings` with a vector store and keep retrieval logic in LangChain.
6. Avoid double retries when LangChain and the SDK both retry.
7. Prefer the simplest smoke-covered LangChain pattern before adding wrapper-specific complexity.

## Read these references as needed

- For chat models and message/tool behavior: `references/chat-models.md`
- For embeddings and RAG patterns: `references/embeddings-rag.md`

## Default output

- keep the user inside LangChain abstractions unless there is a wrapper boundary bug
- do not mix raw SDK code into normal LangChain starter examples
- call out wrapper caveats instead of assuming full parity with generic LangChain behavior

## Boundaries

- Do not explain OpenAI-compatible base URLs here; use `gpt2giga`.

---
> Source: [trashchenkov/gigachat-skills](https://github.com/trashchenkov/gigachat-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-16 -->

