2.1.1 • Published 3 years ago

thingtalk v2.1.1

Weekly downloads
177
License
Apache-2.0
Repository
github
Last release
3 years ago

ThingTalk

Build Status Coverage Status Dependency Status Language grade: JavaScript

The Programming Language of Virtual Assistants

ThingTalk is the declarative (rule-based) distributed programming language for virtual assistants. It connects to multiple web services and IoT devices in a single when-get-do statement.

For example, in ThingTalk you can say:

monitor(@com.washingtonpost.get_article(section=enum world))
=> @com.yandex.translate.translate(target_language="zh"^^tt:iso_lang_code, text=title)
=> @com.facebook.post(status=$result);

This program automatically monitors Washington Post headlines, translates them to Chinese, and then posts them on Facebook. It does so by referring to primitives defined in Thingpedia, an open-source crowdsourced repository of APIs and metadata. Documentation for the ThingTalk language is available on the Almond wiki.

This package contains the grammar, the compiler of the language, the interface to analyze programs using SMT, the code to translate from ThingTalk to natural language, part of the ThingTalk runtime, and various libraries to manipulate ThingTalk abstract syntax trees.

While this library is useful on its own for specific purposes, to run ThingTalk programs you will need a full virtual assistant runtime, such as one provided by the Genie Toolkit.

ThingTalk is developed by the Stanford Open Virtual Assistant Lab, a research initiative led by prof. Monica Lam, from Stanford University. You can find more information at https://oval.cs.stanford.edu

License

This package is covered by the Apache 2.0 license. See LICENSE for details.

Versioning

This package does not follow semantic versioning. Instead, the version should be interpreted as:

  • Major version will be bumped for incompatible changes in the language, such that existing valid programs are no longer valid.
  • Minor version will be bumped for any change in the library, such as AST definitions, interfaces to compilation/optimization passes, adding and removing additional processing modules.
  • Patch version will be bumped for compatible bug fixes.

Minor version bumps can introduce incompatibility to library users; it is recommended that library users use tilde version ranges on their ThingTalk dependency.

Source compatibility

The syntax of ThingTalk is designed to be forward and backward compatible to a limited extent.

Within major versions, we guarantee the following

  • Syntax generated with an older version of ThingTalk (or written by a human targeting an older version of ThingTalk) will continue to parse correctly with a newer version of the language.
  • Syntax generated by a newer version of ThingTalk may not parse correctly with an older client. As a best effort, client code can provide a ThingTalk library version to generate syntax compatible with that version (reducing functionality).
  • Generally speaking, the same program will continue using the same normalized syntax representation (which is unique for a given program semantic) with different versions of the library. Hence, ThingTalk syntax is suitable for long-term storage of programs that are compared syntactically (e.g. datasets). Deviations from this rule will be clearly marked in the release notes.
2.1.1

3 years ago

2.1.0

3 years ago

2.1.0-alpha.10

3 years ago

2.1.0-alpha.11

3 years ago

2.1.0-alpha.9

3 years ago

2.1.0-alpha.8

3 years ago

2.1.0-alpha.7

3 years ago

2.1.0-alpha.6

3 years ago

2.1.0-alpha.5

3 years ago

2.1.0-alpha.4

3 years ago

2.1.0-alpha.3

3 years ago

2.1.0-alpha.2

3 years ago

2.1.0-alpha.1

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

2.0.0-beta.1

4 years ago

2.0.0-alpha.5

4 years ago

2.0.0-alpha.4

4 years ago

2.0.0-alpha.3

4 years ago

2.0.0-alpha.2

4 years ago

2.0.0-alpha.1

4 years ago

1.11.0

4 years ago

1.11.0-rc.1

4 years ago

1.11.0-beta.5

4 years ago

1.11.0-beta.4

4 years ago

1.11.0-beta.3

4 years ago

1.11.0-beta.2

4 years ago

1.11.0-beta.1

4 years ago

1.11.0-alpha.2

4 years ago

1.11.0-alpha.1

4 years ago

1.10.0

5 years ago

1.10.0-beta.1

5 years ago

1.10.0-alpha.5

5 years ago

1.10.0-alpha.4

5 years ago

1.9.3

5 years ago

1.10.0-alpha.3

5 years ago

1.10.0-alpha.2

5 years ago

1.10.0-alpha.1

5 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.9.0-beta.1

5 years ago

1.9.0-alpha.4

5 years ago

1.9.0-alpha.3

5 years ago

1.9.0-alpha.2

5 years ago

1.9.0-alpha.1

5 years ago

1.8.0

5 years ago

1.8.0-beta.2

5 years ago

1.8.0-beta.1

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago