Skip to content
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
710bb8a
feat: [Coda] squash commits after a6bc474
tpfz Oct 10, 2025
9495523
merge main
tpfz Oct 10, 2025
84956d0
feat: code 评估器
wec4dre96-w Oct 10, 2025
83d2561
feat: code 评估器
wec4dre96-w Oct 10, 2025
eed33fd
fix: i18n 文案
wec4dre96-w Oct 10, 2025
e564ebf
fix template
tpfz Oct 10, 2025
2cee2c1
k8s draft
tpfz Oct 11, 2025
71b6f82
fix config
tpfz Oct 11, 2025
84f27ee
fix: 补充路由
wec4dre96-w Oct 11, 2025
1105c07
池化draft
tpfz Oct 11, 2025
3bd1706
fix stdout
tpfz Oct 11, 2025
d833424
feat: [Coda] fix python faas newline handling
tpfz Oct 11, 2025
09b4326
Supplement unit tests for backend/modules/evaluation/infra/runtime di…
tpfz Oct 13, 2025
e006ca5
fix: 修复golint格式检查错误
tpfz Oct 13, 2025
5dcfc44
fix: 继续修复golint格式问题
tpfz Oct 13, 2025
7d80cd2
Fix golint errors in evaluation module
tpfz Oct 13, 2025
b13b621
fix 格式
tpfz Oct 13, 2025
9098fa8
Merge branch 'feat/open-code-eval' of github.com:coze-dev/coze-loop i…
tpfz Oct 13, 2025
85ab7de
Fix license header issues in frontend files
tpfz Oct 13, 2025
77dc58d
fix: ts问题修复
wec4dre96-w Oct 13, 2025
1a47368
Revert "k8s draft"
tpfz Oct 13, 2025
4879e6e
feat: 优化k8s python-faas部署,支持预加载形式的pyodide命令
tpfz Oct 15, 2025
7c18ba2
Merge branch 'main' into feat/open-code-eval
tpfz Oct 15, 2025
21136b0
fix cr
tpfz Oct 16, 2025
31601a1
增加docker预加载
tpfz Oct 16, 2025
dc424d8
fix(infra): python-faas image
lsy357 Oct 16, 2025
910adbe
fix ut image
tpfz Oct 16, 2025
b937184
fix: 修复遗留问题
wec4dre96-w Oct 16, 2025
646c2df
fix vendor
tpfz Oct 16, 2025
55ff30f
Merge branch 'feat/open-code-eval' of github.com:coze-dev/coze-loop i…
tpfz Oct 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions backend/api/handler/coze/loop/apis/evaluator_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions backend/api/handler/coze/loop/apis/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,35 @@ func Test_invokeAndRender(t *testing.T) {
})
}
}

func TestValidateEvaluator(t *testing.T) {
tests := []struct {
name string
wantPanic bool
}{
{
name: "ValidateEvaluator function exists and can be called",
wantPanic: false,
},
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ctx := context.Background()
c := &app.RequestContext{}

// The function will panic due to nil localEvaluatorSvc, but we verify it exists and can be called
// This test mainly ensures the function compiles and follows the expected pattern
if tt.wantPanic {
assert.Panics(t, func() {
ValidateEvaluator(ctx, c)
})
} else {
// Even though it panics, we verify the function signature is correct
assert.Panics(t, func() {
ValidateEvaluator(ctx, c)
})
}
})
}
}
19 changes: 10 additions & 9 deletions backend/modules/evaluation/application/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import (
"github.com/coze-dev/coze-loop/backend/modules/evaluation/infra/rpc/llm"
"github.com/coze-dev/coze-loop/backend/modules/evaluation/infra/rpc/prompt"
"github.com/coze-dev/coze-loop/backend/modules/evaluation/infra/rpc/tag"
"github.com/coze-dev/coze-loop/backend/modules/evaluation/infra/runtime"
evalconf "github.com/coze-dev/coze-loop/backend/modules/evaluation/pkg/conf"
"github.com/coze-dev/coze-loop/backend/pkg/conf"
)
Expand Down Expand Up @@ -137,8 +138,8 @@ var (
domainservice.NewEvaluatorRecordServiceImpl,
NewEvaluatorSourceServices,
llm.NewLLMRPCProvider,
NewStubRuntimeFactory,
NewStubRuntimeManagerFromFactory,
NewRuntimeFactory,
NewRuntimeManagerFromFactory,
NewSandboxConfig,
NewLogger,

Expand Down Expand Up @@ -306,14 +307,14 @@ func NewLogger() *logrus.Logger {
return logger
}

// NewStubRuntimeFactory 创建存根运行时工厂
func NewStubRuntimeFactory(logger *logrus.Logger, sandboxConfig *entity.SandboxConfig) component.IRuntimeFactory {
return service.NewStubRuntimeFactory(logger, sandboxConfig)
// NewRuntimeFactory 创建运行时工厂
func NewRuntimeFactory(logger *logrus.Logger, sandboxConfig *entity.SandboxConfig) component.IRuntimeFactory {
return runtime.NewRuntimeFactory(logger, sandboxConfig)
}

// NewStubRuntimeManagerFromFactory 从工厂创建存根运行时管理器
func NewStubRuntimeManagerFromFactory(factory component.IRuntimeFactory, logger *logrus.Logger) component.IRuntimeManager {
return service.NewStubRuntimeManager(factory, logger)
// NewRuntimeManagerFromFactory 从工厂创建运行时管理器
func NewRuntimeManagerFromFactory(factory component.IRuntimeFactory, logger *logrus.Logger) component.IRuntimeManager {
return runtime.NewRuntimeManager(factory, logger)
}

func NewEvaluatorSourceServices(
Expand All @@ -336,4 +337,4 @@ func NewEvaluatorSourceServices(
serviceMap[svc.EvaluatorType()] = svc
}
return serviceMap
}
}
25 changes: 13 additions & 12 deletions backend/modules/evaluation/application/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

142 changes: 0 additions & 142 deletions backend/modules/evaluation/domain/service/runtime_stub.go

This file was deleted.

Loading
Loading