application

package
v0.0.0-...-d0ab517 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 100 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEvalTargetApplication

func InitEvalTargetApplication(ctx context.Context, idgen2 idgen.IIDGenerator, db2 db.Provider, client promptmanageservice.Client, executeClient promptexecuteservice.Client, authClient authservice.Client, cmdable redis.Cmdable, meter metrics.Meter, trajectoryAdapter rpc.ITrajectoryAdapter, configFactory conf.IConfigLoaderFactory) (evaluation.EvalTargetService, error)

func InitEvaluationSetApplication

func InitEvaluationSetApplication(client datasetservice.Client, authClient authservice.Client, meter metrics.Meter, userClient userservice.Client) evaluation.EvaluationSetService

func InitEvaluatorApplication

func InitEvaluatorApplication(ctx context.Context, idgen2 idgen.IIDGenerator, authClient authservice.Client, db2 db.Provider, configFactory conf.IConfigLoaderFactory, rmqFactory mq.IFactory, llmClient llmruntimeservice.Client, meter metrics.Meter, userClient userservice.Client, auditClient audit.IAuditService, cmdable redis.Cmdable, benefitSvc benefit.IBenefitService, limiterFactory limiter.IRateLimiterFactory, fileClient fileservice.Client, plainLimiterFactory limiter.IPlainRateLimiterFactory) (evaluation.EvaluatorService, error)

func NewEvaluationSetApplicationImpl

func NewEvaluationSetApplicationImpl(auth rpc.IAuthProvider,
	evaluationSetService service.IEvaluationSetService,
	evaluationSetSchemaService service.EvaluationSetSchemaService,
	evaluationSetVersionService service.EvaluationSetVersionService,
	evaluationSetItemService service.EvaluationSetItemService,
	metric metrics.EvaluationSetMetrics,
	userInfoService userinfo.UserInfoService,
) evaluation.EvaluationSetService

func NewEvaluatorHandlerImpl

func NewEvaluatorHandlerImpl(idgen idgen.IIDGenerator,
	configer conf.IConfiger,
	auth rpc.IAuthProvider,
	evaluatorService service.EvaluatorService,
	evaluatorRecordService service.EvaluatorRecordService,
	evaluatorTemplateService service.EvaluatorTemplateService,
	metrics metrics.EvaluatorExecMetrics,
	userInfoService userinfo.UserInfoService,
	auditClient audit.IAuditService,
	benefitService benefit.IBenefitService,
	fileProvider rpc.IFileProvider,
	evaluatorSourceServices map[entity.EvaluatorType]service.EvaluatorSourceService,
) evaluation.EvaluatorService

NewEvaluatorHandlerImpl 创建 EvaluatorService 实例

func NewLock

func NewLock(cmdable redis.Cmdable) lock.ILocker

Types

type EvalOpenAPIApplication

type EvalOpenAPIApplication struct {
	service.ExptAggrResultService
	// contains filtered or unexported fields
}

func (*EvalOpenAPIApplication) CreateEvaluationSetOApi

func (*EvalOpenAPIApplication) DeleteEvaluationSetOApi

func (*EvalOpenAPIApplication) GetEvaluationItemFieldOApi

func (*EvalOpenAPIApplication) GetEvaluationSetOApi

func (*EvalOpenAPIApplication) GetExperimentsOApi

func (*EvalOpenAPIApplication) ListEvaluationSetsOApi

func (*EvalOpenAPIApplication) ListExperimentResultOApi

func (*EvalOpenAPIApplication) SubmitExperimentOApi

func (*EvalOpenAPIApplication) UpdateEvaluationSetOApi

type EvalTargetApplicationImpl

type EvalTargetApplicationImpl struct {
	// contains filtered or unexported fields
}

func (EvalTargetApplicationImpl) AsyncDebugEvalTarget

func (EvalTargetApplicationImpl) AsyncExecuteEvalTarget

func (EvalTargetApplicationImpl) CreateEvalTarget

func (EvalTargetApplicationImpl) DebugEvalTarget

func (EvalTargetApplicationImpl) ExecuteEvalTarget

func (EvalTargetApplicationImpl) GetEvalTargetRecord

func (EvalTargetApplicationImpl) GetEvalTargetVersion

func (EvalTargetApplicationImpl) ListSourceEvalTargets

func (EvalTargetApplicationImpl) MockEvalTargetOutput

type EvaluationSetApplicationImpl

type EvaluationSetApplicationImpl struct {
	// contains filtered or unexported fields
}

func (*EvaluationSetApplicationImpl) BatchCreateEvaluationSetItems

func (*EvaluationSetApplicationImpl) BatchDeleteEvaluationSetItems

BatchDeleteEvaluationSetItems implements the EvaluationSetServiceImpl interface.

func (*EvaluationSetApplicationImpl) BatchGetEvaluationSetItems

func (*EvaluationSetApplicationImpl) BatchGetEvaluationSetVersions

func (*EvaluationSetApplicationImpl) CreateEvaluationSet

func (*EvaluationSetApplicationImpl) CreateEvaluationSetVersion

func (*EvaluationSetApplicationImpl) DeleteEvaluationSet

func (*EvaluationSetApplicationImpl) GetEvaluationSet

func (*EvaluationSetApplicationImpl) GetEvaluationSetItemField

func (*EvaluationSetApplicationImpl) GetEvaluationSetVersion

func (*EvaluationSetApplicationImpl) ListEvaluationSetItems

ListEvaluationSetItems implements the EvaluationSetServiceImpl interface.

func (*EvaluationSetApplicationImpl) ListEvaluationSetVersions

func (*EvaluationSetApplicationImpl) ListEvaluationSets

func (*EvaluationSetApplicationImpl) ParseImportSourceFile

func (*EvaluationSetApplicationImpl) UpdateEvaluationSet

func (*EvaluationSetApplicationImpl) UpdateEvaluationSetItem

UpsertEvaluationSetItem implements the EvaluationSetServiceImpl interface.

func (*EvaluationSetApplicationImpl) UpdateEvaluationSetSchema

type EvaluatorHandlerImpl

type EvaluatorHandlerImpl struct {
	// contains filtered or unexported fields
}

EvaluatorHandlerImpl 实现 EvaluatorService 接口

func (*EvaluatorHandlerImpl) BatchDebugEvaluator

BatchDebugEvaluator 批量调试评估器

func (*EvaluatorHandlerImpl) BatchGetEvaluators

BatchGetEvaluator 按 id 批量查询 evaluator草稿

func (*EvaluatorHandlerImpl) CheckEvaluatorName

func (*EvaluatorHandlerImpl) CreateEvaluator

CreateEvaluator 创建 evaluator_version

func (*EvaluatorHandlerImpl) CreateEvaluatorTemplate

CreateEvaluatorTemplate 创建评估器模板

func (*EvaluatorHandlerImpl) DebugBuiltinEvaluator

DebugBuiltinEvaluator 调试预置评估器

func (*EvaluatorHandlerImpl) DebugEvaluator

DebugEvaluator 调试 evaluator_version

func (*EvaluatorHandlerImpl) DeleteEvaluator

DeleteEvaluator 删除 evaluator_version

func (*EvaluatorHandlerImpl) DeleteEvaluatorTemplate

DeleteEvaluatorTemplate 删除评估器模板

func (*EvaluatorHandlerImpl) GetEvaluator

GetEvaluator 按 id 单个查询 evaluator元信息和草稿

func (*EvaluatorHandlerImpl) GetEvaluatorRecord

func (*EvaluatorHandlerImpl) GetEvaluatorVersion

GetEvaluatorVersion 按 id 和版本号单个查询 evaluator_version version

func (*EvaluatorHandlerImpl) GetTemplateInfo

GetEvaluatorTemplate 按 key 单个查询内置评估器模板详情

func (*EvaluatorHandlerImpl) GetTemplateV2

GetTemplateV2 获取评估器模板详情

func (*EvaluatorHandlerImpl) ListEvaluatorTags

func (*EvaluatorHandlerImpl) ListEvaluatorVersions

ListEvaluatorVersions 按查询条件查询 evaluator_version version

func (*EvaluatorHandlerImpl) ListEvaluators

ListEvaluators 按查询条件查询 evaluator

func (*EvaluatorHandlerImpl) ListTemplates

ListBuiltinTemplate 获取内置评估器模板列表

func (*EvaluatorHandlerImpl) ListTemplatesV2

ListTemplatesV2 查询评估器模板列表

func (*EvaluatorHandlerImpl) RunEvaluator

RunEvaluator evaluator_version 运行

func (*EvaluatorHandlerImpl) SubmitEvaluatorVersion

SubmitEvaluatorVersion 提交 evaluator_version 版本

func (*EvaluatorHandlerImpl) UpdateBuiltinEvaluatorTags

UpdateBuiltinEvaluatorTags 发布预置评估器

func (*EvaluatorHandlerImpl) UpdateEvaluator

UpdateEvaluator 修改 evaluator_version

func (*EvaluatorHandlerImpl) UpdateEvaluatorDraft

UpdateEvaluatorDraft 修改 evaluator_version

func (*EvaluatorHandlerImpl) UpdateEvaluatorRecord

UpdateEvaluatorRecord 创建 evaluator_version 运行结果

func (*EvaluatorHandlerImpl) UpdateEvaluatorTemplate

UpdateEvaluatorTemplate 更新评估器模板

func (*EvaluatorHandlerImpl) ValidateEvaluator

ValidateEvaluator 验证评估器

type IEvalOpenAPIApplication

type IEvalOpenAPIApplication = evaluation.EvalOpenAPIService

func InitEvalOpenAPIApplication

func InitEvalOpenAPIApplication(ctx context.Context, configFactory conf.IConfigLoaderFactory, rmqFactory mq.IFactory, cmdable redis.Cmdable, idgen2 idgen.IIDGenerator, db2 db.Provider, client promptmanageservice.Client, executeClient promptexecuteservice.Client, authClient authservice.Client, meter metrics.Meter, dataClient datasetservice.Client, userClient userservice.Client, llmClient llmruntimeservice.Client, tagClient tagservice.Client, limiterFactory limiter.IRateLimiterFactory, objectStorage fileserver.ObjectStorage, auditClient audit.IAuditService, benefitService benefit.IBenefitService, ckProvider ck.Provider, plainLimiterFactory limiter.IPlainRateLimiterFactory, trajectoryAdapter rpc.ITrajectoryAdapter) (IEvalOpenAPIApplication, error)

func NewEvalOpenAPIApplication

func NewEvalOpenAPIApplication(asyncRepo repo.IEvalAsyncRepo, publisher events.ExptEventPublisher,
	targetSvc service.IEvalTargetService,
	auth rpc.IAuthProvider,
	evaluationSetService service.IEvaluationSetService,
	evaluationSetVersionService service.EvaluationSetVersionService,
	evaluationSetItemService service.EvaluationSetItemService,
	evaluationSetSchemaService service.EvaluationSetSchemaService,
	metric metrics.OpenAPIEvaluationMetrics,
	userInfoService userinfo.UserInfoService,
	experimentApp IExperimentApplication,
	manager service.IExptManager,
	resultSvc service.ExptResultService,
	aggResultSvc service.ExptAggrResultService,
	evaluatorService service.EvaluatorService,
	configer component.IConfiger,
) IEvalOpenAPIApplication

type IExperimentApplication

func InitExperimentApplication

func InitExperimentApplication(ctx context.Context, idgen2 idgen.IIDGenerator, db2 db.Provider, configFactory conf.IConfigLoaderFactory, rmqFactory mq.IFactory, cmdable redis.Cmdable, auditClient audit.IAuditService, meter metrics.Meter, authClient authservice.Client, evalSetService evaluation.EvaluationSetService, evaluatorService evaluation.EvaluatorService, targetService evaluation.EvalTargetService, uc userservice.Client, pms promptmanageservice.Client, pes promptexecuteservice.Client, sds datasetservice.Client, limiterFactory limiter.IRateLimiterFactory, llmcli llmruntimeservice.Client, benefitSvc benefit.IBenefitService, ckDb ck.Provider, tagClient tagservice.Client, objectStorage fileserver.ObjectStorage, plainLimiterFactory limiter.IPlainRateLimiterFactory, trajectoryAdapter rpc.ITrajectoryAdapter) (IExperimentApplication, error)

func NewExperimentApplication

func NewExperimentApplication(
	aggResultSvc service.ExptAggrResultService,
	resultSvc service.ExptResultService,
	manager service.IExptManager,
	scheduler service.ExptSchedulerEvent,
	recordEval service.ExptItemEvalEvent,
	idgen idgen.IIDGenerator,
	configer component.IConfiger,
	auth rpc.IAuthProvider,
	userInfoService userinfo.UserInfoService,
	evalTargetService service.IEvalTargetService,
	evaluationSetItemService service.EvaluationSetItemService,
	annotateService service.IExptAnnotateService,
	tagRPCAdapter rpc.ITagRPCAdapter,
	exptResultExportService service.IExptResultExportService,
	exptInsightAnalysisService service.IExptInsightAnalysisService,
	evaluatorService service.EvaluatorService,
) IExperimentApplication

type SpaceType

type SpaceType string

Directories

Path Synopsis
convertor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL