Skip to content

Commit 6071fbe

Browse files
author
Jia Jia
committed
feat(tool): add support for wechat
1 parent a5d604d commit 6071fbe

5 files changed

Lines changed: 8 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ store:
6464
url: http://127.0.0.1:8082
6565
path: /path/to/file
6666
tool:
67-
- name: basetool
6867
- name: decorator
6968
- name: hello
70-
- name: runnables
7169
- name: structuredtool
70+
- name: wechat
7271
```
7372
7473

config/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ store:
1212
url: http://127.0.0.1:8082
1313
path: /path/to/file
1414
tool:
15-
- name: basetool
1615
- name: decorator
1716
- name: hello
18-
- name: runnables
1917
- name: structuredtool
18+
- name: wechat

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/ai-flowx/flowx
33
go 1.23.4
44

55
require (
6-
github.com/ai-flowx/toolx v0.8.0
6+
github.com/ai-flowx/toolx v0.9.0
77
github.com/amikos-tech/chroma-go v0.1.5-0.20241103135957-1b1e6ef18500
88
github.com/mattn/go-sqlite3 v1.14.24
99
github.com/pkg/errors v0.9.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
22
github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
3-
github.com/ai-flowx/toolx v0.8.0 h1:YIWAZXHnFQD1GO21f2plCdH8ObfbrAeIQKWVJyAuKt0=
4-
github.com/ai-flowx/toolx v0.8.0/go.mod h1:ApD+YGBsPWOt/nL3Q/oYIU+WLblggHdbH3cFRHEzGu8=
3+
github.com/ai-flowx/toolx v0.9.0 h1:ggccuKsEygDwl9/+BjOcs/QZEiSoYX7o0/XRRu0KqqY=
4+
github.com/ai-flowx/toolx v0.9.0/go.mod h1:ApD+YGBsPWOt/nL3Q/oYIU+WLblggHdbH3cFRHEzGu8=
55
github.com/amikos-tech/chroma-go v0.1.5-0.20241103135957-1b1e6ef18500 h1:blChbPuVerKrTKNMNSnI5To0DyakV6UWYteXzczkK4E=
66
github.com/amikos-tech/chroma-go v0.1.5-0.20241103135957-1b1e6ef18500/go.mod h1:5pEBH3DVz1fZ1/mnY+UgES0fqkIR1YmkPfvJv0Xwry8=
77
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=

tool/tool.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import (
55

66
"github.com/pkg/errors"
77

8-
"github.com/ai-flowx/toolx/basetool"
98
"github.com/ai-flowx/toolx/decorator"
109
"github.com/ai-flowx/toolx/hello"
11-
"github.com/ai-flowx/toolx/runnables"
1210
"github.com/ai-flowx/toolx/structuredtool"
11+
"github.com/ai-flowx/toolx/wechat"
1312
)
1413

1514
type Tool interface {
@@ -96,11 +95,10 @@ func (t *tool) Run(ctx context.Context, name string, args ...interface{}) (strin
9695

9796
func (t *tool) initProvider(_ context.Context) error {
9897
t.toolx = append(t.toolx,
99-
basetool.BaseTool{},
10098
decorator.Decorator{},
10199
hello.Hello{},
102-
runnables.Runnables{},
103-
structuredtool.StructuredTool{})
100+
structuredtool.StructuredTool{},
101+
wechat.WeChat{})
104102

105103
return nil
106104
}

0 commit comments

Comments
 (0)