feat: update ResumeData type from map[string]any to map[string]string for consistency
This commit is contained in:
@@ -23,7 +23,7 @@ type ResumeRequest struct {
|
||||
AIAgent *models.AIAgent
|
||||
AIConfig *models.AIConfig
|
||||
CheckPointID string
|
||||
ResumeData map[string]any
|
||||
ResumeData map[string]string
|
||||
ToolSet *registry.ToolSet
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ func DebugResumeSkill(ctx context.Context, req request.SkillDebugResumeRequest)
|
||||
AIAgent: aiAgent,
|
||||
AIConfig: aiConfig,
|
||||
CheckPointID: strings.TrimSpace(req.CheckPointID),
|
||||
ResumeData: map[string]any{
|
||||
ResumeData: map[string]string{
|
||||
strings.TrimSpace(pendingInterrupt.InterruptID): resumeText,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -17,7 +17,7 @@ func resolveCheckPointID(input string, runID string) string {
|
||||
return "eino_cp_" + strings.TrimSpace(runID)
|
||||
}
|
||||
|
||||
func buildResumeDataMessage(resumeData map[string]any) *schema.Message {
|
||||
func buildResumeDataMessage(resumeData map[string]string) *schema.Message {
|
||||
if len(resumeData) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ type ResumeInput struct {
|
||||
AIAgent *models.AIAgent
|
||||
AIConfig *models.AIConfig
|
||||
CheckPointID string
|
||||
ResumeData map[string]any
|
||||
ResumeData map[string]string
|
||||
ToolSet *registry.ToolSet
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ func (e *runtimeReplyExecutor) ResumePendingInterrupt(ctx context.Context, conve
|
||||
AIAgent: &aiAgent,
|
||||
AIConfig: aiConfig,
|
||||
CheckPointID: strings.TrimSpace(pendingInterrupt.CheckPointID),
|
||||
ResumeData: map[string]any{
|
||||
ResumeData: map[string]string{
|
||||
strings.TrimSpace(pendingInterrupt.InterruptID): strings.TrimSpace(message.Content),
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user