Summary
The user is facing an error when using the ListTransformer
with a list of DataClasses in a task involving an Agent. They are unsure if the ListTransformer
can be modified to handle this situation or if a specific TypeTransformer
for list[Foo]
is necessary. They mention that lists of DataClasses work fine as workflow arguments in subworkflows. The user provides code snippets for context and expresses confusion about the source of the error, initially thinking it was related to the task but later realizing it occurs earlier in the process. They seek input from others for clarification.
ytong
thank you for the bug report :bow:
ytong
will be in 14 and probably backported to 13.x
ytong
ytong
if you try to register that against admin it will raise an error.
ytong
and lastly you are passing an optional list to a list, that’s not allowed.
ytong
but yeah the name of the output was wrong, i see you fixed that.
ytong
and there’s one bug with the typing not getting passed.
ytong
kevin will clean up some of the error handling here.
ytong
looking
ytong
this works without issue for me. what version of flytekit are you on?
ytong
this should definitely work.