Directories
¶
| Path | Synopsis |
|---|---|
|
Package agents provides agent implementations that use language models to determine which actions to take.
|
Package agents provides agent implementations that use language models to determine which actions to take. |
|
Package callbacks provides callback handler implementations for observability, tracing, and debugging of LangChain executions.
|
Package callbacks provides callback handler implementations for observability, tracing, and debugging of LangChain executions. |
|
Package chains provides common chain patterns for composing LangChain components.
|
Package chains provides common chain patterns for composing LangChain components. |
|
Package core provides the fundamental types and interfaces for langchain-go.
|
Package core provides the fundamental types and interfaces for langchain-go. |
|
Package embeddings provides the interface for text embedding models.
|
Package embeddings provides the interface for text embedding models. |
|
examples
|
|
|
agent_tool_use
command
Example: Agent with tool use — demonstrates the "20 lines of Go" goal.
|
Example: Agent with tool use — demonstrates the "20 lines of Go" goal. |
|
copilot_chat
command
Example: GitHub Copilot chat — demonstrates using the Copilot SDK provider.
|
Example: GitHub Copilot chat — demonstrates using the Copilot SDK provider. |
|
rag_pipeline
command
Example: RAG (Retrieval Augmented Generation) pipeline.
|
Example: RAG (Retrieval Augmented Generation) pipeline. |
|
simple_chain
command
Example: Simple chain using prompt + model + output parser.
|
Example: Simple chain using prompt + model + output parser. |
|
streaming
command
Example: Streaming chat completion with OpenAI.
|
Example: Streaming chat completion with OpenAI. |
|
unified_provider/04_round_robin
command
|
|
|
unified_provider/09_llm_routing
command
|
|
|
Package llms provides the interfaces for language model integrations.
|
Package llms provides the interfaces for language model integrations. |
|
Package memory provides memory implementations for maintaining conversation state across interactions.
|
Package memory provides memory implementations for maintaining conversation state across interactions. |
|
Package outputparsers provides parsers for extracting structured data from language model outputs.
|
Package outputparsers provides parsers for extracting structured data from language model outputs. |
|
Package prompts provides prompt template types for formatting inputs into prompts for language models.
|
Package prompts provides prompt template types for formatting inputs into prompts for language models. |
|
Package provider implements a unified interface for creating and managing multiple LLM providers with intelligent routing, fallback strategies, and metrics tracking.
|
Package provider implements a unified interface for creating and managing multiple LLM providers with intelligent routing, fallback strategies, and metrics tracking. |
|
providers
|
|
|
anthropic
Package anthropic provides an Anthropic/Claude chat model implementation.
|
Package anthropic provides an Anthropic/Claude chat model implementation. |
|
github-copilot
Package copilot provides a GitHub Copilot chat model implementation using the Copilot SDK.
|
Package copilot provides a GitHub Copilot chat model implementation using the Copilot SDK. |
|
ollama
Package ollama provides a chat model and embeddings implementation using the Ollama HTTP API.
|
Package ollama provides a chat model and embeddings implementation using the Ollama HTTP API. |
|
openai
Package openai provides an OpenAI chat model implementation.
|
Package openai provides an OpenAI chat model implementation. |
|
Package retrievers provides the retriever interface and implementations for document retrieval.
|
Package retrievers provides the retriever interface and implementations for document retrieval. |
|
Package runnable provides composition primitives for building chains from Runnable components (the Go equivalent of LCEL).
|
Package runnable provides composition primitives for building chains from Runnable components (the Go equivalent of LCEL). |
|
Package textsplitters provides utilities for splitting text into chunks.
|
Package textsplitters provides utilities for splitting text into chunks. |
|
Package tools provides the tool interface and utilities for creating tools that can be used by LangChain agents.
|
Package tools provides the tool interface and utilities for creating tools that can be used by LangChain agents. |
|
Package vectorstores provides interfaces and implementations for vector stores.
|
Package vectorstores provides interfaces and implementations for vector stores. |
|
inmemory
Package inmemory provides an in-memory vector store implementation.
|
Package inmemory provides an in-memory vector store implementation. |
Click to show internal directories.
Click to hide internal directories.