fix(singleagent): chatflow input concat (#1863)

This commit is contained in:
junwen-lee 2025-08-28 22:11:44 +08:00 committed by GitHub
parent d70101c979
commit 042f2299f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import (
"errors" "errors"
"io" "io"
"strconv" "strconv"
"strings"
"sync" "sync"
"github.com/cloudwego/eino/schema" "github.com/cloudwego/eino/schema"
@ -106,7 +107,7 @@ func concatWfInput(rtDependence *AgentRuntime) string {
} }
} }
} }
return input return strings.Trim(input, ",")
} }
func (art *AgentRuntime) pullWfStream(ctx context.Context, events *schema.StreamReader[*crossworkflow.WorkflowMessage], mh *MesssageEventHanlder) { func (art *AgentRuntime) pullWfStream(ctx context.Context, events *schema.StreamReader[*crossworkflow.WorkflowMessage], mh *MesssageEventHanlder) {