Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add api-workflow plugin #1229

Merged
merged 9 commits into from
Oct 9, 2024
Merged

feat: add api-workflow plugin #1229

merged 9 commits into from
Oct 9, 2024

Conversation

lixf311
Copy link
Contributor

@lixf311 lixf311 commented Aug 19, 2024

Ⅰ. Describe what this PR did

Add ai-workflow plugin,the first version only supports tools.

Ⅱ. Does this pull request fix one issue?

fixes #1225

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Aug 19, 2024

CLA assistant check
All committers have signed the CLA.

@johnlanni
Copy link
Collaborator

@lixf311 上面的CLA要签署一下

@lixf311
Copy link
Contributor Author

lixf311 commented Aug 20, 2024

ok~

plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
@johnlanni
Copy link
Collaborator

@lixf311 加一下我钉钉吧:chengtanzty

@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.18%. Comparing base (ef31e09) to head (de8b786).
Report is 117 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1229      +/-   ##
==========================================
+ Coverage   35.91%   44.18%   +8.27%     
==========================================
  Files          69       76       +7     
  Lines       11576     9895    -1681     
==========================================
+ Hits         4157     4372     +215     
+ Misses       7104     5187    -1917     
- Partials      315      336      +21     

see 91 files with indirect coverage changes

plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/README.md Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/main.go Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/main.go Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/main.go Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/main.go Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/go.mod Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/main.go Outdated Show resolved Hide resolved
@johnlanni johnlanni changed the title feat: add ai-workflow plugin feat: add aip-workflow plugin Aug 27, 2024
@johnlanni johnlanni changed the title feat: add aip-workflow plugin feat: add api-workflow plugin Aug 27, 2024
plugins/wasm-go/extensions/ai-workflow/main.go Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/main.go Outdated Show resolved Hide resolved
plugins/wasm-go/extensions/ai-workflow/go.mod Outdated Show resolved Hide resolved
@hanxiantao
Copy link
Collaborator

LGTW

@hanxiantao
Copy link
Collaborator

@johnlanni 有时间的话,也帮忙再看下

var operators = map[string]interface{}{
"eq": func(a, b interface{}) bool {
return fmt.Sprintf("%v", a) == fmt.Sprintf("%v", b)
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ne 是不是漏了?还是说其实不需要提供 ne,支持非操作就可以了,另外可以考虑支持一下 re-match,正则匹配

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

抱歉,才看到,考虑有eq就不用ne了,删除了readme里的相关描述

Copy link
Collaborator

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johnlanni johnlanni merged commit e26a2a3 into alibaba:main Oct 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Higress 可编排工作流 ai-workflow的设计
5 participants