WhoBuilt

TypeChat

A TypeScript library that guides language models to produce structured, validated results.

Key facts

Built by
Daniel Rosenwasser, co-author of launch
Capabilities
Python implementation is a prototype and not yet production-ready
Supports translating requests into validated sequences of commands using a constrained JSON format
Available as a library on npm
Uses TypeScript compiler errors to help repair invalid model results
Uses types to guide language models and validate their output

Timeline 6

Dated events, newest first. Open the sources under any item.

How we verify
Built1Capability5
20236 events
November
  1. as of Nov 2023Capability
    Python implementation is a prototype and not yet production-ready
    “This is just a prototype of the Python stuff we've been working on. It's not prime time” 17:19
    Unverified1 source· Talk
    +3 more capabilities on the full timeline
  2. as of Nov 2023Capability
    Supports translating requests into validated sequences of commands using a constrained JSON format
    “generate a fake language still based on the types, but in the form of JSON” 13:33
    Unverified1 source· Talk
  1. 2023Built
    Daniel Rosenwasser built TypeChat
    co-author of launch
    Verified1 source· Web· archived

Talks 1

18:33
Pragmatic AI with TypeChat

Daniel Rosenwasser introduces TypeChat, a library that uses TypeScript types to guide language models and validate their structured responses. He shows how this makes model output more reliable for apps, including how schemas can represent unrecognized input so an app can recover gracefully. He then demonstrates translating natural-language requests into sequences of typed commands, using a constrained JSON format and validation to support safe execution. The talk also covers early Python experiments and invites attendees to try TypeChat.

Nov 14, 2023· 19 minDiscussed 0:20