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: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPromptDebugApplication

func InitPromptDebugApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, meter metrics.Meter, configFactory conf.IConfigLoaderFactory, llmClient llmruntimeservice.Client, authClient authservice.Client, fileClient fileservice.Client, benefitSvc benefit.IBenefitService) (debug.PromptDebugService, error)

func InitPromptExecuteApplication

func InitPromptExecuteApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, meter metrics.Meter, configFactory conf.IConfigLoaderFactory, llmClient llmruntimeservice.Client, fileClient fileservice.Client) (execute.PromptExecuteService, error)

func InitPromptManageApplication

func InitPromptManageApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, meter metrics.Meter, configFactory conf.IConfigLoaderFactory, llmClient llmruntimeservice.Client, authClient authservice.Client, fileClient fileservice.Client, userClient userservice.Client, auditClient audit.IAuditService) (manage.PromptManageService, error)

func InitPromptOpenAPIApplication

func InitPromptOpenAPIApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, meter metrics.Meter, configFactory conf.IConfigLoaderFactory, limiterFactory limiter.IRateLimiterFactory, llmClient llmruntimeservice.Client, authClient authservice.Client, fileClient fileservice.Client) (openapi.PromptOpenAPIService, error)

func NewPromptDebugApplication

func NewPromptDebugApplication(
	debugLogRepo repo.IDebugLogRepo,
	debugContextRepo repo.IDebugContextRepo,
	promptService service.IPromptService,
	benefitService benefit.IBenefitService,
	auth rpc.IAuthProvider,
	file rpc.IFileProvider,
) debug.PromptDebugService

func NewPromptExecuteApplication

func NewPromptExecuteApplication(
	promptService service.IPromptService,
	promptManageRepo repo.IManageRepo,
) execute.PromptExecuteService

func NewPromptManageApplication

func NewPromptManageApplication(
	promptManageRepo repo.IManageRepo,
	labelRepo repo.ILabelRepo,
	promptService service.IPromptService,
	authRPCProvider rpc.IAuthProvider,
	userRPCProvider rpc.IUserProvider,
	auditRPCProvider rpc.IAuditProvider,
	configProvider conf.IConfigProvider,
) manage.PromptManageService

func NewPromptOpenAPIApplication

func NewPromptOpenAPIApplication(
	promptService service.IPromptService,
	promptManageRepo repo.IManageRepo,
	config conf.IConfigProvider,
	auth rpc.IAuthProvider,
	factory limiter.IRateLimiterFactory,
	collector collector.ICollectorProvider,
) (openapi.PromptOpenAPIService, error)

Types

type PromptDebugApplicationImpl

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

func (*PromptDebugApplicationImpl) DebugStreaming

func (*PromptDebugApplicationImpl) GetDebugContext

func (*PromptDebugApplicationImpl) ListDebugHistory

func (*PromptDebugApplicationImpl) SaveDebugContext

type PromptExecuteApplicationImpl

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

func (*PromptExecuteApplicationImpl) ExecuteInternal

type PromptManageApplicationImpl

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

func (*PromptManageApplicationImpl) BatchGetLabel

BatchGetLabel retrieves labels by their keys

func (*PromptManageApplicationImpl) BatchGetPrompt

func (*PromptManageApplicationImpl) ClonePrompt

func (*PromptManageApplicationImpl) CommitDraft

func (*PromptManageApplicationImpl) CreateLabel

CreateLabel creates a new label in the workspace

func (*PromptManageApplicationImpl) CreatePrompt

func (*PromptManageApplicationImpl) DeletePrompt

func (*PromptManageApplicationImpl) GetPrompt

func (*PromptManageApplicationImpl) ListCommit

func (*PromptManageApplicationImpl) ListLabel

ListLabel lists labels in the workspace with pagination

func (*PromptManageApplicationImpl) ListParentPrompt

func (*PromptManageApplicationImpl) ListPrompt

func (*PromptManageApplicationImpl) RevertDraftFromCommit

func (*PromptManageApplicationImpl) SaveDraft

func (*PromptManageApplicationImpl) UpdateCommitLabels

UpdateCommitLabels updates labels for a specific commit version

func (*PromptManageApplicationImpl) UpdatePrompt

type PromptOpenAPIApplicationImpl

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

func (*PromptOpenAPIApplicationImpl) BatchGetPromptByPromptKey

func (*PromptOpenAPIApplicationImpl) Execute

func (*PromptOpenAPIApplicationImpl) ExecuteStreaming

func (*PromptOpenAPIApplicationImpl) ListPromptBasic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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