jkomoros / prompt-garden

A framework for gardening LLM prompts
Apache License 2.0
13 stars 1 forks source link

A computed object in let-multi doesn't work #60

Closed jkomoros closed 1 year ago

jkomoros commented 1 year ago
      "import-polymath": {
          "type": "let-multi",
          "values": {
              "arg:items": {
                  "seed": "load-polymath"
              },
              "arg:memory": {
                  "type": "input",
                  "question": "Which memory should the items be stored in?",
                  "default": "polymath-import"
              }
          },
          "block": {
              "packet": "./example-utility.json",
              "seed": "memorize-items"
          }
      }

doesn't work because it complains that the objects in values aren't computed. I think I need to teach the expanding code how to do it?

Related to #7.

Found while working on #55

d29af4914f3c16cd24709205522571e2710dbfbc was part of this but not tagged.

expandSeedPacket does put in the type:object properly. But for some reason expandSeedPacket doesn't factor out the references / calls in that type:object. Perhaps because the z.record() has wrong type so the sub-names aren't parsing and it misses them?