Capturing Code Executor Output as JSON for UI Integration in AutoGen #4313
Unanswered
mohan-enmovil
asked this question in
Q&A
Replies: 1 comment
-
We don't have an example for this, but you can take a look at the code executors (not agents) in autogen-ext package. The code executors return structured types that can be serialized to JSON. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where a user asks a question, and a code_writer agent generates a Python script with a MongoDB query. I want to use a code executor to run the script, capture the query output as JSON, and send it to a UI application.
From the examples I’ve seen, code executors often print the output. Is it possible to capture the output directly in JSON format and pass it to an external application like a UI? If so, please point me to example.
Beta Was this translation helpful? Give feedback.
All reactions