Documentation
¶
Index ¶
- func InitPromptDebugApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, ...) (debug.PromptDebugService, error)
- func InitPromptExecuteApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, ...) (execute.PromptExecuteService, error)
- func InitPromptManageApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, ...) (manage.PromptManageService, error)
- func InitPromptOpenAPIApplication(idgen2 idgen.IIDGenerator, db2 db.Provider, redisCli redis.Cmdable, ...) (openapi.PromptOpenAPIService, error)
- func NewPromptDebugApplication(debugLogRepo repo.IDebugLogRepo, debugContextRepo repo.IDebugContextRepo, ...) debug.PromptDebugService
- func NewPromptExecuteApplication(promptService service.IPromptService, promptManageRepo repo.IManageRepo) execute.PromptExecuteService
- func NewPromptManageApplication(promptManageRepo repo.IManageRepo, labelRepo repo.ILabelRepo, ...) manage.PromptManageService
- func NewPromptOpenAPIApplication(promptService service.IPromptService, promptManageRepo repo.IManageRepo, ...) (openapi.PromptOpenAPIService, error)
- type PromptDebugApplicationImpl
- func (p *PromptDebugApplicationImpl) DebugStreaming(ctx context.Context, req *debug.DebugStreamingRequest, ...) (err error)
- func (p *PromptDebugApplicationImpl) GetDebugContext(ctx context.Context, req *debug.GetDebugContextRequest) (r *debug.GetDebugContextResponse, err error)
- func (p *PromptDebugApplicationImpl) ListDebugHistory(ctx context.Context, req *debug.ListDebugHistoryRequest) (r *debug.ListDebugHistoryResponse, err error)
- func (p *PromptDebugApplicationImpl) SaveDebugContext(ctx context.Context, req *debug.SaveDebugContextRequest) (r *debug.SaveDebugContextResponse, err error)
- type PromptExecuteApplicationImpl
- type PromptManageApplicationImpl
- func (app *PromptManageApplicationImpl) BatchGetLabel(ctx context.Context, request *manage.BatchGetLabelRequest) (r *manage.BatchGetLabelResponse, err error)
- func (app *PromptManageApplicationImpl) BatchGetPrompt(ctx context.Context, request *manage.BatchGetPromptRequest) (r *manage.BatchGetPromptResponse, err error)
- func (app *PromptManageApplicationImpl) ClonePrompt(ctx context.Context, request *manage.ClonePromptRequest) (r *manage.ClonePromptResponse, err error)
- func (app *PromptManageApplicationImpl) CommitDraft(ctx context.Context, request *manage.CommitDraftRequest) (r *manage.CommitDraftResponse, err error)
- func (app *PromptManageApplicationImpl) CreateLabel(ctx context.Context, request *manage.CreateLabelRequest) (r *manage.CreateLabelResponse, err error)
- func (app *PromptManageApplicationImpl) CreatePrompt(ctx context.Context, request *manage.CreatePromptRequest) (r *manage.CreatePromptResponse, err error)
- func (app *PromptManageApplicationImpl) DeletePrompt(ctx context.Context, request *manage.DeletePromptRequest) (r *manage.DeletePromptResponse, err error)
- func (app *PromptManageApplicationImpl) GetPrompt(ctx context.Context, request *manage.GetPromptRequest) (r *manage.GetPromptResponse, err error)
- func (app *PromptManageApplicationImpl) ListCommit(ctx context.Context, request *manage.ListCommitRequest) (r *manage.ListCommitResponse, err error)
- func (app *PromptManageApplicationImpl) ListLabel(ctx context.Context, request *manage.ListLabelRequest) (r *manage.ListLabelResponse, err error)
- func (app *PromptManageApplicationImpl) ListParentPrompt(ctx context.Context, request *manage.ListParentPromptRequest) (r *manage.ListParentPromptResponse, err error)
- func (app *PromptManageApplicationImpl) ListPrompt(ctx context.Context, request *manage.ListPromptRequest) (r *manage.ListPromptResponse, err error)
- func (app *PromptManageApplicationImpl) RevertDraftFromCommit(ctx context.Context, request *manage.RevertDraftFromCommitRequest) (r *manage.RevertDraftFromCommitResponse, err error)
- func (app *PromptManageApplicationImpl) SaveDraft(ctx context.Context, request *manage.SaveDraftRequest) (r *manage.SaveDraftResponse, err error)
- func (app *PromptManageApplicationImpl) UpdateCommitLabels(ctx context.Context, request *manage.UpdateCommitLabelsRequest) (r *manage.UpdateCommitLabelsResponse, err error)
- func (app *PromptManageApplicationImpl) UpdatePrompt(ctx context.Context, request *manage.UpdatePromptRequest) (r *manage.UpdatePromptResponse, err error)
- type PromptOpenAPIApplicationImpl
- func (p *PromptOpenAPIApplicationImpl) BatchGetPromptByPromptKey(ctx context.Context, req *openapi.BatchGetPromptByPromptKeyRequest) (r *openapi.BatchGetPromptByPromptKeyResponse, err error)
- func (p *PromptOpenAPIApplicationImpl) Execute(ctx context.Context, req *openapi.ExecuteRequest) (r *openapi.ExecuteResponse, err error)
- func (p *PromptOpenAPIApplicationImpl) ExecuteStreaming(ctx context.Context, req *openapi.ExecuteRequest, ...) (err error)
- func (p *PromptOpenAPIApplicationImpl) ListPromptBasic(ctx context.Context, req *openapi.ListPromptBasicRequest) (r *openapi.ListPromptBasicResponse, err error)
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 (p *PromptDebugApplicationImpl) DebugStreaming(ctx context.Context, req *debug.DebugStreamingRequest, stream debug.PromptDebugService_DebugStreamingServer) (err error)
func (*PromptDebugApplicationImpl) GetDebugContext ¶
func (p *PromptDebugApplicationImpl) GetDebugContext(ctx context.Context, req *debug.GetDebugContextRequest) (r *debug.GetDebugContextResponse, err error)
func (*PromptDebugApplicationImpl) ListDebugHistory ¶
func (p *PromptDebugApplicationImpl) ListDebugHistory(ctx context.Context, req *debug.ListDebugHistoryRequest) (r *debug.ListDebugHistoryResponse, err error)
func (*PromptDebugApplicationImpl) SaveDebugContext ¶
func (p *PromptDebugApplicationImpl) SaveDebugContext(ctx context.Context, req *debug.SaveDebugContextRequest) (r *debug.SaveDebugContextResponse, err error)
type PromptExecuteApplicationImpl ¶
type PromptExecuteApplicationImpl struct {
// contains filtered or unexported fields
}
func (*PromptExecuteApplicationImpl) ExecuteInternal ¶
func (p *PromptExecuteApplicationImpl) ExecuteInternal(ctx context.Context, req *execute.ExecuteInternalRequest) (r *execute.ExecuteInternalResponse, err error)
type PromptManageApplicationImpl ¶
type PromptManageApplicationImpl struct {
// contains filtered or unexported fields
}
func (*PromptManageApplicationImpl) BatchGetLabel ¶
func (app *PromptManageApplicationImpl) BatchGetLabel(ctx context.Context, request *manage.BatchGetLabelRequest) (r *manage.BatchGetLabelResponse, err error)
BatchGetLabel retrieves labels by their keys
func (*PromptManageApplicationImpl) BatchGetPrompt ¶
func (app *PromptManageApplicationImpl) BatchGetPrompt(ctx context.Context, request *manage.BatchGetPromptRequest) (r *manage.BatchGetPromptResponse, err error)
func (*PromptManageApplicationImpl) ClonePrompt ¶
func (app *PromptManageApplicationImpl) ClonePrompt(ctx context.Context, request *manage.ClonePromptRequest) (r *manage.ClonePromptResponse, err error)
func (*PromptManageApplicationImpl) CommitDraft ¶
func (app *PromptManageApplicationImpl) CommitDraft(ctx context.Context, request *manage.CommitDraftRequest) (r *manage.CommitDraftResponse, err error)
func (*PromptManageApplicationImpl) CreateLabel ¶
func (app *PromptManageApplicationImpl) CreateLabel(ctx context.Context, request *manage.CreateLabelRequest) (r *manage.CreateLabelResponse, err error)
CreateLabel creates a new label in the workspace
func (*PromptManageApplicationImpl) CreatePrompt ¶
func (app *PromptManageApplicationImpl) CreatePrompt(ctx context.Context, request *manage.CreatePromptRequest) (r *manage.CreatePromptResponse, err error)
func (*PromptManageApplicationImpl) DeletePrompt ¶
func (app *PromptManageApplicationImpl) DeletePrompt(ctx context.Context, request *manage.DeletePromptRequest) (r *manage.DeletePromptResponse, err error)
func (*PromptManageApplicationImpl) GetPrompt ¶
func (app *PromptManageApplicationImpl) GetPrompt(ctx context.Context, request *manage.GetPromptRequest) (r *manage.GetPromptResponse, err error)
func (*PromptManageApplicationImpl) ListCommit ¶
func (app *PromptManageApplicationImpl) ListCommit(ctx context.Context, request *manage.ListCommitRequest) (r *manage.ListCommitResponse, err error)
func (*PromptManageApplicationImpl) ListLabel ¶
func (app *PromptManageApplicationImpl) ListLabel(ctx context.Context, request *manage.ListLabelRequest) (r *manage.ListLabelResponse, err error)
ListLabel lists labels in the workspace with pagination
func (*PromptManageApplicationImpl) ListParentPrompt ¶
func (app *PromptManageApplicationImpl) ListParentPrompt(ctx context.Context, request *manage.ListParentPromptRequest) (r *manage.ListParentPromptResponse, err error)
func (*PromptManageApplicationImpl) ListPrompt ¶
func (app *PromptManageApplicationImpl) ListPrompt(ctx context.Context, request *manage.ListPromptRequest) (r *manage.ListPromptResponse, err error)
func (*PromptManageApplicationImpl) RevertDraftFromCommit ¶
func (app *PromptManageApplicationImpl) RevertDraftFromCommit(ctx context.Context, request *manage.RevertDraftFromCommitRequest) (r *manage.RevertDraftFromCommitResponse, err error)
func (*PromptManageApplicationImpl) SaveDraft ¶
func (app *PromptManageApplicationImpl) SaveDraft(ctx context.Context, request *manage.SaveDraftRequest) (r *manage.SaveDraftResponse, err error)
func (*PromptManageApplicationImpl) UpdateCommitLabels ¶
func (app *PromptManageApplicationImpl) UpdateCommitLabels(ctx context.Context, request *manage.UpdateCommitLabelsRequest) (r *manage.UpdateCommitLabelsResponse, err error)
UpdateCommitLabels updates labels for a specific commit version
func (*PromptManageApplicationImpl) UpdatePrompt ¶
func (app *PromptManageApplicationImpl) UpdatePrompt(ctx context.Context, request *manage.UpdatePromptRequest) (r *manage.UpdatePromptResponse, err error)
type PromptOpenAPIApplicationImpl ¶
type PromptOpenAPIApplicationImpl struct {
// contains filtered or unexported fields
}
func (*PromptOpenAPIApplicationImpl) BatchGetPromptByPromptKey ¶
func (p *PromptOpenAPIApplicationImpl) BatchGetPromptByPromptKey(ctx context.Context, req *openapi.BatchGetPromptByPromptKeyRequest) (r *openapi.BatchGetPromptByPromptKeyResponse, err error)
func (*PromptOpenAPIApplicationImpl) Execute ¶
func (p *PromptOpenAPIApplicationImpl) Execute(ctx context.Context, req *openapi.ExecuteRequest) (r *openapi.ExecuteResponse, err error)
func (*PromptOpenAPIApplicationImpl) ExecuteStreaming ¶
func (p *PromptOpenAPIApplicationImpl) ExecuteStreaming(ctx context.Context, req *openapi.ExecuteRequest, stream openapi.PromptOpenAPIService_ExecuteStreamingServer) (err error)
func (*PromptOpenAPIApplicationImpl) ListPromptBasic ¶
func (p *PromptOpenAPIApplicationImpl) ListPromptBasic(ctx context.Context, req *openapi.ListPromptBasicRequest) (r *openapi.ListPromptBasicResponse, err error)
Click to show internal directories.
Click to hide internal directories.