Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in synthesis with parameter passing into primitive template #604

Open
gcampax opened this issue Apr 30, 2021 · 0 comments
Open

Error in synthesis with parameter passing into primitive template #604

gcampax opened this issue Apr 30, 2021 · 0 comments
Assignees
Labels
bug Something isn't working P1 We're working on it right now templates Issues with templates and the state machine

Comments

@gcampax
Copy link
Contributor

gcampax commented Apr 30, 2021

If there is an action primitive template that allows parameter passing, we get an error like this in synthesis:

monitorable list query image_search(in req query : String
                                    #_[canonical={
                                      base=["search query", "query"],
                                      passive_verb=["matching #", "containing #", "about #"],
                                      adjective=["#"]
                                    }]
                                    #_[prompt=["what do you want to search", "what are you looking for"]]
                                    #[string_values="tt:search_query"],
                                    out height : Number
                                    #_[prompt="what height are you looking for ( in pixels )"]
                                    #_[canonical={
                                      base=["height", "image height"],
                                      adjective=["# tall", "# pixels tall", "# pixels high"]
                                    }]
                                    #[min_number=1])
#_[canonical=["images", "pictures", "photo"]]
#_[confirmation="images matching $query from Bing"]
#_[result=["here is an image for you", "here is what i found"]]
#_[formatted=[{
  type="rdl",
  webCallback="${link}",
  displayTitle="${title}",
  pictureUrl="${picture_url}"
}]]
#[minimal_projection=["title", "link", "picture_url"]]
#[poll_interval=3600000ms]
#[doc="search for `query` on Bing Images"]; title
Error expanding rule NT[thingpedia_complete_join_action_past] -> turned to ${p_brt} your light bulb brightness (NT[p_brt : ctx_current_query])
Minibatch took 63 seconds and produced 0 dialogues

(the "title" property is gone from the schema but we don't notice, maybe something is not honoring #[minimal_projection])

@gcampax gcampax added bug Something isn't working templates Issues with templates and the state machine labels Apr 30, 2021
@gcampax gcampax self-assigned this Apr 30, 2021
@nrser nrser added P2 We need to fix it (backlog) P1 We're working on it right now and removed P2 We need to fix it (backlog) labels Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 We're working on it right now templates Issues with templates and the state machine
Projects
None yet
Development

No branches or pull requests

2 participants