You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("can not assign arg to context because target tool [%s] has no defined args", ref.ToolID)
289
+
}
290
+
291
+
ifkeyName=="" {
292
+
iflen(targetKeys) !=1 {
293
+
return"", fmt.Errorf("can not assign arg to context because target tool [%s] has does not have one args. You must use \"as\" syntax to map the arg to a key %v", ref.ToolID, targetKeys)
294
+
}
295
+
fork:=rangetargetKeys {
296
+
keyName=k
297
+
}
298
+
}
299
+
300
+
iftargetKey, ok:=targetKeys[strings.ToLower(keyName)]; ok {
301
+
outputMap[targetKey] =val
302
+
} else {
303
+
return"", fmt.Errorf("can not assign arg to context because target tool [%s] has does not args [%s]", ref.ToolID, keyName)
"text": "this is from context -- foo.db\n\nthis is from other context foo.db and then\n\nthis is from other context and then foo.db\n\nThis is from tool"
0 commit comments