feat: support llm start node user input multi parts
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user