fix: workflow as tool, not be serialized where has not parameters (#1777)
This commit is contained in:
parent
fc47e4096c
commit
6fa2acf05a
|
|
@ -108,7 +108,7 @@ func (i *invokableWorkflow) InvokableRun(ctx context.Context, argumentsInJSON st
|
|||
ws *nodes.ConversionWarnings
|
||||
)
|
||||
|
||||
if rInfo == nil {
|
||||
if rInfo == nil && len(i.wfEntity.InputParams) > 0 {
|
||||
if err = sonic.UnmarshalString(argumentsInJSON, &in); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
@ -257,7 +257,7 @@ func (s *streamableWorkflow) StreamableRun(ctx context.Context, argumentsInJSON
|
|||
ws *nodes.ConversionWarnings
|
||||
)
|
||||
|
||||
if rInfo == nil {
|
||||
if rInfo == nil && len(s.wfEntity.InputParams) > 0 {
|
||||
if err = sonic.UnmarshalString(argumentsInJSON, &in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue