Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
langchain-profiles
command
Command langchain-profiles refreshes model profile data from models.dev, the Go equivalent of Python's `langchain-profiles` CLI (langchain_model_profiles.cli).
|
Command langchain-profiles refreshes model profile data from models.dev, the Go equivalent of Python's `langchain-profiles` CLI (langchain_model_profiles.cli). |
|
core
|
|
|
documentloaders
Package documentloaders defines base document loading contracts.
|
Package documentloaders defines base document loading contracts. |
|
httpclient
Package httpclient provides a shared JSON-over-HTTP helper for provider adapters.
|
Package httpclient provides a shared JSON-over-HTTP helper for provider adapters. |
|
language
Package language defines the chat-model abstraction the agent runtime and partner packages build on.
|
Package language defines the chat-model abstraction the agent runtime and partner packages build on. |
|
lcerrors
Package lcerrors defines the typed error vocabulary used across langchain-golang to classify provider and client failures, as specified in MIGRATION_PLAN.md (Core API Design: Context and Errors).
|
Package lcerrors defines the typed error vocabulary used across langchain-golang to classify provider and client failures, as specified in MIGRATION_PLAN.md (Core API Design: Context and Errors). |
|
runnables
This file implements LCEL-style sequential composition: Pipe, Pipe3, Pipe4, Pipe5, Pipe6.
|
This file implements LCEL-style sequential composition: Pipe, Pipe3, Pipe4, Pipe5, Pipe6. |
|
tools
Package tools defines the Tool abstraction used throughout the agent runtime: an invocable callable with a name, a description, and a JSON-schema argument contract that a chat model can call.
|
Package tools defines the Tool abstraction used throughout the agent runtime: an invocable callable with a name, a description, and a JSON-schema argument contract that a chat model can call. |
|
langchain
|
|
|
agents
Package agents implements a scoped Go port of Python's langchain.agents.create_agent: a model<->tools loop wired on top of the internal agent runtime graph, with composable middleware hooks around the model call and each tool call.
|
Package agents implements a scoped Go port of Python's langchain.agents.create_agent: a model<->tools loop wired on top of the internal agent runtime graph, with composable middleware hooks around the model call and each tool call. |
|
chatmodels
Package chatmodels provides provider metadata and a Go provider registry for resolving a chat model from a "provider:model" identifier.
|
Package chatmodels provides provider metadata and a Go provider registry for resolving a chat model from a "provider:model" identifier. |
|
internal/agentruntime
Package agentruntime is the internal graph runtime backing `langchain/agents.CreateAgent`.
|
Package agentruntime is the internal graph runtime backing `langchain/agents.CreateAgent`. |
|
internal/agentruntime/channels
Package channels implements the reducer/merge semantics behind LangGraph's "channels" concept (see Python's `langgraph.channels`).
|
Package channels implements the reducer/merge semantics behind LangGraph's "channels" concept (see Python's `langgraph.channels`). |
|
tools
Package tools re-exports langchain_core's tool types for v1 (see tools.go) and implements a Go-idiomatic equivalent of Python's `langchain.tools.ToolNode` (backed by langgraph's `ToolNode` under the hood) in this file.
|
Package tools re-exports langchain_core's tool types for v1 (see tools.go) and implements a Go-idiomatic equivalent of Python's `langchain.tools.ToolNode` (backed by langgraph's `ToolNode` under the hood) in this file. |
|
cli
Package cli ports the "refresh" workflow of Python's langchain_model_profiles.cli module to Go: it downloads model capability data from models.dev, merges local overrides declared in `profile_augmentations.toml`, and writes a canonical `profiles.json` data file for a single provider.
|
Package cli ports the "refresh" workflow of Python's langchain_model_profiles.cli module to Go: it downloads model capability data from models.dev, merges local overrides declared in `profile_augmentations.toml`, and writes a canonical `profiles.json` data file for a single provider. |
|
partners
|
|
|
anthropic
Package anthropic adapts langchain-golang chat calls to Anthropic's Messages API.
|
Package anthropic adapts langchain-golang chat calls to Anthropic's Messages API. |
|
chroma
Package chroma provides a Chroma vector store adapter.
|
Package chroma provides a Chroma vector store adapter. |
|
ollama
Package ollama adapts langchain-golang chat calls to the Ollama /api/chat endpoint.
|
Package ollama adapts langchain-golang chat calls to the Ollama /api/chat endpoint. |
|
openai
Package openai is the OpenAI partner: a real (not adapter-only) implementation of language.ChatModel backed by the OpenAI Responses API (/responses endpoint).
|
Package openai is the OpenAI partner: a real (not adapter-only) implementation of language.ChatModel backed by the OpenAI Responses API (/responses endpoint). |
|
Package textsplitters provides deterministic document chunking utilities.
|
Package textsplitters provides deterministic document chunking utilities. |
Click to show internal directories.
Click to hide internal directories.