百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

langchaingo

> AI 编程
开源

LangChain for Go,在Go中最容易写入基于LLM的程序

9.6K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

LangChain for Go,在Go中最容易写入基于LLM的程序

# 加入我们新的官方Discoord社区! # 连接到其他 LangChain 去开发者,获得帮助和贡献: [Join Discord] (https://discord.gg/t9UbBQs2rG)

ZZTERM1 开始

[(ZZURL1ZH).

通过可容性构建LLMs的应用程序,与Go!

□ 这是什么?

这是LangChain的Go语言执行.

□ 文档

  • [文件网站] (ZZURL3Z)
  • [API参考] (ZZURL4Z)

□ 实例

例如,见./实例。

(原始内容存档于2019-09-29) (英语). ```go package main

import ( "context" "fmt" "log"

"github.com/tmc/langchaingo/llms" "github.com/tmc/langchaingo/llms/openai" )

func main() { ctx := context.Background() llm, err := openai.New() if err != nil { log.Fatal(err) } prompt := "What would be a good company name for a company that makes colorful socks?" completion, err := llms.GenerateFromSinglePrompt(ctx, llm, prompt) if err != nil { log.Fatal(err) } fmt.Println(completion) }


ZZ1ZZ

# 资源

加入 Discord 服务器以获得支持和讨论 : [Join Discord] (ZZURL5Z)

使用LangChain Go的博客文章:

- [使用Gemini 型号与LangChainGo一起走](https://eli.thegreenplace.net/2024/using-gemini-models-in-go-with-langchaingo/) - 2024年1月
- [Using Ollama with LangChain Go] (https://eli.thegreenplace.net/2023/using-ollama-with-langchaingo/) - 2023年11月
- [创建简单的ChatGPT 克隆与Go](https://sausheong.com/creating-a-simple-chatgpt-clone-with-go-c40b4bec9267?sk=53a2bcf4ce3b0cfae1a4c26897c0deb0) - 2023年8月
2023年8月,在你的笔记本电脑上运行

贡献者

如果有兴趣成为维护者或贡献者,请加入我们的[Discord](https://discord.gg/8bHGKzHBkM),并告诉我们。

<

Issues· 419 开放

查看全部 Issues在 GitHub 打开
  • #1529

    llms/Anthropic: GenerateContent 在成功时从未调用 HandleLLMGenerateContentEnd

    更新于 2026年9月20日
  • #1507

    googleai: 在 GenerateContent 中的系统唯一消息列表中发生异常

    更新于 2026年9月12日
  • #1486

    这个项目死了吗?

    更新于 2026年9月4日
  • #1514

    llms/ollama: WithThink 没有效果 — think 在 "options" 中被序列化 (API 期望为顶级对象) 且忽略空值时会返回 false

    更新于 2026年7月26日
  • #1512

    离线文档

    更新于 2026年7月20日
  • #1497

    OpenAI GPT-5.4: 无法将推理努力设置为无,同时温度设置为 0

    更新于 2026年5月22日
  • #987

    自定义多输入工具

    更新于 2026年4月16日
  • #1493

    WithStreamingReasoningFunc 尚未测试,且在 Ollama 和 Claude 中不工作

    更新于 2026年4月15日
  • #1490

    支持 Gemma 4 工具调用令牌对

    更新于 2026年4月8日
  • #1456

    Anthropic CacheControl 未正常工作

    更新于 2026年3月31日

> 标签

Goaigogolanglangchain

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月29日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.