feat: refactor model manager

* chore: mv model icon
* fix: model icon
* fix: model icon
* feat: refactor model manager
* fix: model icon
* fix: model icon
* feat: refactor model manager

See merge request: !905
This commit is contained in:
徐兆楠
2025-07-24 13:12:44 +00:00
parent 12f7762797
commit 9b3814e2c5
114 changed files with 2888 additions and 4982 deletions

View File

@@ -22,6 +22,7 @@ import (
"math/rand"
"github.com/cloudwego/eino/compose"
"github.com/coze-dev/coze-studio/backend/infra/contract/modelmgr"
"github.com/jinzhu/copier"
"github.com/cloudwego/eino/schema"
@@ -44,6 +45,7 @@ type singleAgentImpl struct {
}
type Components struct {
ModelMgr modelmgr.Manager
ModelFactory chatmodel.Factory
AgentDraftRepo repository.SingleAgentDraftRepo
@@ -106,6 +108,7 @@ func (s *singleAgentImpl) StreamExecute(ctx context.Context, req *entity.Execute
Agent: ae,
UserID: req.UserID,
Identity: req.Identity,
ModelMgr: s.ModelMgr,
ModelFactory: s.ModelFactory,
CPStore: s.CPStore,
}