Registry / utility / tmc-langchaingo

tmc-langchaingo

JSON →
library0.1.14gogounverified

Package langchaingo provides a Go implementation of LangChain, a framework for building applications with Large Language Models (LLMs) through composability.

go get github.com/tmc/langchaingo
INSTALL
IMPORT
SIG · TMC-LANGCHAINGO
T
tmc-langchaingo
utilitygov0.1.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

langchaingo
✓ github.com/tmc/langchaingo

Initialize an OpenAI LLM and generate a response.

package main import ( "context" "fmt" "github.com/tmc/langchaingo/llms/openai" ) func main() { llm, err := openai.New() if err != nil { panic(err) } resp, err := llm.Call(context.Background(), "Hello") if err != nil { panic(err) } fmt.Println(resp) }
Debug
Known issues
breakingAPI is unstable and may change between minor versions.
fix
Pin to a specific version and check release notes before upgrading.
affects: <0.2.0
Upgrade
Version history
0.1.14latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
tmc-langchaingo — go get tmc-langchaingo · libregistry