I've packaged this up in a small POC: https://github.com/hgarrereyn/omni
TLDR:
from omni import Omni
o = Omni()
o.execute('''
# anything here
''')
I've packaged this up in a small POC: https://github.com/hgarrereyn/omni
TLDR:
from omni import Omni
o = Omni()
o.execute('''
# anything here
''')
---------------------
c = Canvas()
c.add_random_shapes(num=100)
c.draw()
---------------------
---------------------
c = Canvas()
c.add_random_shapes(num=100)
c.draw()
---------------------
---------------------
c = Canvas()
c.add_random_shapes(num=5)
c.draw()
---------------------
LLM is invoked to figure out what `add_random_shapes` should do, and we get:
---------------------
c = Canvas()
c.add_random_shapes(num=5)
c.draw()
---------------------
LLM is invoked to figure out what `add_random_shapes` should do, and we get:
---------------------
...
t = Triangle(width=3, height=5)
t.set_origin(6,6)
t.set_color('blue')
...
c.add(t)
---------------------
LLM is invoked to update the context code and we get:
---------------------
...
t = Triangle(width=3, height=5)
t.set_origin(6,6)
t.set_color('blue')
...
c.add(t)
---------------------
LLM is invoked to update the context code and we get:
---------------------
...
r2 = Rect(width=3, height=3)
r2.set_origin(2, 2)
r2.set_color('red')
r2.set_rotation(deg=10)
...
c.add(r2)
---------------------
We don't need to invoke the LLM here, but can render:
---------------------
...
r2 = Rect(width=3, height=3)
r2.set_origin(2, 2)
r2.set_color('red')
r2.set_rotation(deg=10)
...
c.add(r2)
---------------------
We don't need to invoke the LLM here, but can render: