Capture entire json as single variable in guidance #456
Unanswered
alexmadey-oc
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on something very similar to the example above. Instead of capturing the individual fields, e.g. "name" or "age", I want to capture the entire json as a single variable so I can parse it. I've tried moving the part that generates only the json I want to capture into another stateful guidance function and using the
capture
function, but this doesn't work. It looks likeI get an error
AttributeError: 'StatefulFunction' object has no attribute 'nullable'
. On the other hand, this seems to work if the guidance function is stateless, but this case requires stateful. How can I capture the full json?Beta Was this translation helpful? Give feedback.
All reactions