• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stanford-oval / thingtalk / 1235
78%

Build:
DEFAULT BRANCH: master
Ran 02 Feb 2021 07:07PM UTC
Jobs 2
Files 64
Run time 474min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1235

push

travis-ci-com

web-flow
Make $context values non-compilable, and support nested keys (#295)

$context values are placeholders for future values. Making
them non-compilable means I can (need to) replace them in
the dialogue agent before execution.

This commit makes $context.result suitable to represent
non-default parameter passing across multiple dialogue turns.

Example: "search a website then post the title on twitter"
can be split into:
```
@com.bing.web_search();
@com.twitter.post(status=$context.result.title : String);
```
to be stored in the dialogue state.

The semantics of this are that the dialogue agent executes
the first command, and presents the result to the user.
The dialogue agent remembers that the user wanted to post the title
on Twitter, and this is preserved across slot-filling of the
query and search refinements, so when the agent offers
"do you want to post it on twitter", or when the user says
"ok now post it on twitter", the right parameter passing occurs.

I thought about using `$result` instead of `$context.result` but
`$result` already means "a string representation of the current
result" (the old `$event` in ThingTalk 1.0) and overloading the
meaning was awkward. Plus we need type annotations to typecheck
the individual dialogue turns without looking at the context.

Note that the new semantics are also more correct for `$context.selection`
(the selection on the screen), because that one also should be
resolved once and for all when the program is started, and not
delayed until the action is invoked, potentially much later.

4283 of 6022 branches covered (71.12%)

Branch coverage included in aggregate %.

2 of 3 new or added lines in 1 file covered. (66.67%)

9997 of 12346 relevant lines covered (80.97%)

53483.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/ast/values.ts
Jobs
ID Job ID Ran Files Coverage
1 1235.1 (COVERALLS_PARALLEL=true) 02 Feb 2021 07:07PM UTC 0
77.71
Travis Job 1235.1
2 1235.2 (COVERALLS_PARALLEL=true) 02 Feb 2021 07:11PM UTC 0
77.72
Travis Job 1235.2
Source Files on build 1235
  • Tree
  • List 64
  • Changed 32
  • Source Changed 6
  • Coverage Changed 31
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Build #1235
  • 1f0c2de8 on github
  • Prev Build on master (#1233)
  • Next Build on master (#1237)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc