You've already forked agentic-coding-workflow
改动
This commit is contained in:
@@ -137,6 +137,7 @@ type Message struct {
|
||||
PromptTokens *int
|
||||
CompletionTokens *int
|
||||
ThinkingTokens *int
|
||||
Attachments []Attachment // 用户可读路径填充;composeHistory 不依赖此字段
|
||||
CreatedAt, UpdatedAt time.Time
|
||||
}
|
||||
|
||||
@@ -173,7 +174,7 @@ type ConversationReader interface {
|
||||
type ConversationService interface {
|
||||
Create(ctx context.Context, userID uuid.UUID, in CreateConversationInput) (*Conversation, error)
|
||||
List(ctx context.Context, userID uuid.UUID, filter ConversationFilter) ([]Conversation, error)
|
||||
Get(ctx context.Context, userID, id uuid.UUID) (*Conversation, []Message, error)
|
||||
Get(ctx context.Context, userID, id uuid.UUID, limit int) (*Conversation, []Message, error)
|
||||
UpdateTitle(ctx context.Context, userID, id uuid.UUID, title string) error
|
||||
SoftDelete(ctx context.Context, userID, id uuid.UUID) error
|
||||
}
|
||||
@@ -203,7 +204,7 @@ type MessageService interface {
|
||||
Send(ctx context.Context, userID, conversationID uuid.UUID, content string, attachmentIDs []uuid.UUID) (userMsgID, assistantMsgID int64, err error)
|
||||
Stream(ctx context.Context, userID, conversationID uuid.UUID, sinceMessageID int64) (<-chan SSEEvent, error)
|
||||
Cancel(ctx context.Context, userID uuid.UUID, messageID int64) error
|
||||
Retry(ctx context.Context, userID uuid.UUID, messageID int64) (newAssistantMsgID int64, err error)
|
||||
Retry(ctx context.Context, userID uuid.UUID, messageID int64) (newAssistantMsgID int64, conversationID uuid.UUID, err error)
|
||||
ListMessages(ctx context.Context, userID, conversationID uuid.UUID, beforeID *int64, limit int) ([]Message, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user