File size: 333 Bytes
57bdca5
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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.