Let's refine our prompt a bit. | |
py | |
agent.run("Create an image of a tree", return_code=True) | |
gives: | |
``text | |
==Explanation from the agent== | |
I will use the following toolimage_generator` to generate an image of a tree. | |
==Code generated by the agent== | |
image = image_generator(prompt="tree") | |
Much better! That looks more like what we want. |