Skip to content

Commit f2d5450

Browse files
tpfzxueyizheng
authored andcommitted
增加BatchCheckOptimizeTaskFree
1 parent 8b8bb92 commit f2d5450

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

backend/modules/evaluation/domain/component/rpc/prompt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type IPromptRPCAdapter interface {
1616
ListPrompt(ctx context.Context, param *ListPromptParam) (prompts []*LoopPrompt, total *int32, err error)
1717
ListPromptVersion(ctx context.Context, param *ListPromptVersionParam) (prompts []*CommitInfo, nextCursor string, err error)
1818
ExecutePrompt(ctx context.Context, spaceID int64, param *ExecutePromptParam) (result *ExecutePromptResult, err error)
19+
BatchCheckOptimizeTaskFree(ctx context.Context, spaceID int64, arkTaskIDs []string) (map[string]bool, error)
1920
}
2021

2122
type ExecutePromptParam struct {

backend/modules/evaluation/infra/rpc/prompt/prompt.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ type PromptRPCAdapter struct {
2626
executeClient promptexecuteservice.Client
2727
}
2828

29+
func (p PromptRPCAdapter) BatchCheckOptimizeTaskFree(ctx context.Context, spaceID int64, arkTaskIDs []string) (map[string]bool, error) {
30+
return nil, nil // 商业化专有逻辑
31+
}
32+
2933
func NewPromptRPCAdapter(client promptmanageservice.Client, executeClient promptexecuteservice.Client) rpc.IPromptRPCAdapter {
3034
return &PromptRPCAdapter{
3135
client: client,

0 commit comments

Comments
 (0)