fix(agent): disallow update if prompt is empty (#1802)

This commit is contained in:
Ryo
2025-08-25 20:22:45 +08:00
committed by GitHub
parent 14ce6bc112
commit f19761fa31
4 changed files with 19 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ type SingleAgentDraftRepo interface {
MGet(ctx context.Context, agentIDs []int64) ([]*entity.SingleAgent, error)
Delete(ctx context.Context, spaceID, agentID int64) (err error)
Update(ctx context.Context, agentInfo *entity.SingleAgent) (err error)
Save(ctx context.Context, agentInfo *entity.SingleAgent) (err error)
GetDisplayInfo(ctx context.Context, userID, agentID int64) (*entity.AgentDraftDisplayInfo, error)
UpdateDisplayInfo(ctx context.Context, userID int64, e *entity.AgentDraftDisplayInfo) error