Skip to content

Commit

Permalink
example: langchaingo agent
Browse files Browse the repository at this point in the history
  • Loading branch information
devinyf committed Jun 6, 2024
1 parent d297bc2 commit 416ddcb
Show file tree
Hide file tree
Showing 4 changed files with 549 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ go get -u github.com/devinyf/dashscopego
#### 通用文本向量 Embedding
- [x] [同步接口](./example/embedding/main.go)
- [ ] 批处理接口

#### langchaingo-Agent
- TODO...
#### langchaingo-Agent(Experimental...)
- [x] [Agent 调用通义万象生图 ](./example/langchaingo/main.go)


```go
Expand Down
55 changes: 55 additions & 0 deletions example/langchaingo/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module dashscopego_langchaingo_test

go 1.22.0

toolchain go1.22.2

require github.com/tmc/langchaingo v0.1.10

require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/devinyf/dashscopego v0.1.1 // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/goph/emperror v0.17.2 // indirect
github.com/gorilla/websocket v1.4.1 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.2 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/reflectwalk v1.0.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect
github.com/nikolalohinski/gonja v1.5.3 // indirect
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pkoukk/tiktoken-go v0.1.6 // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.1.2 // indirect
github.com/xdg-go/stringprep v1.0.4 // indirect
github.com/yargevad/filepathx v1.0.0 // indirect
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
go.mongodb.org/mongo-driver v1.13.1 // indirect
go.starlark.net v0.0.0-20230302034142-4b1e35fe2254 // indirect
go.uber.org/mock v0.4.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

// 重定向到 github.com/devinyf/langchaingo qwen_llm 功能分支
replace github.com/tmc/langchaingo v0.1.10 => github.com/devinyf/langchaingo v0.0.0-20240606070510-c22fa684d145
Loading

0 comments on commit 416ddcb

Please sign in to comment.