feat: support llm start node user input multi parts

This commit is contained in:
zhuangjie.1125
2025-08-07 23:48:12 +08:00
parent ae163d95ac
commit 756e23acf2
4 changed files with 18 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import (
"github.com/coze-dev/coze-studio/backend/api/model/crossdomain/message"
"github.com/coze-dev/coze-studio/backend/api/model/workflow"
"github.com/coze-dev/coze-studio/backend/application/base/ctxutil"
"github.com/coze-dev/coze-studio/backend/crossdomain/contract/crossconversation"
"github.com/coze-dev/coze-studio/backend/crossdomain/contract/crossmessage"
"github.com/coze-dev/coze-studio/backend/domain/workflow/entity"
"github.com/coze-dev/coze-studio/backend/domain/workflow/entity/vo"
@ -778,9 +779,15 @@ func (w *ApplicationService) OpenAPICreateConversation(ctx context.Context, req
return nil, err
}
cInfo, err := crossconversation.DefaultSVC().GetByID(ctx, cID)
if err != nil {
return nil, err
}
return &workflow.CreateConversationResponse{
ConversationData: &workflow.ConversationData{
Id: cID,
Id: cID,
LastSectionID: ptr.Of(cInfo.SectionID),
},
}, nil
}

View File

@ -27,6 +27,7 @@ type Conversation interface {
GetCurrentConversation(ctx context.Context, req *conversation.GetCurrent) (*conversation.Conversation, error)
Create(ctx context.Context, req *entity.CreateMeta) (*entity.Conversation, error)
NewConversationCtx(ctx context.Context, req *entity.NewConversationCtxRequest) (*entity.NewConversationCtxResponse, error)
GetByID(ctx context.Context, id int64) (*entity.Conversation, error)
}
var defaultSVC Conversation

View File

@ -49,3 +49,7 @@ func (s *impl) Create(ctx context.Context, req *entity.CreateMeta) (*entity.Conv
func (s *impl) NewConversationCtx(ctx context.Context, req *entity.NewConversationCtxRequest) (*entity.NewConversationCtxResponse, error) {
return s.DomainSVC.NewConversationCtx(ctx, req)
}
func (s *impl) GetByID(ctx context.Context, id int64) (*entity.Conversation, error) {
return s.DomainSVC.GetByID(ctx, id)
}

View File

@ -97,3 +97,8 @@ func (i *impl) GetWorkflowIDsByAppID(ctx context.Context, appID int64) ([]int64,
return a.ID
}), err
}
func (i *impl) InitApplicationDefaultConversationTemplate(ctx context.Context, spaceID int64, appID int64, userID int64) error {
return i.DomainSVC.InitApplicationDefaultConversationTemplate(ctx, spaceID, appID, userID)
}