TypeChat

TypeChat is an experimental library developed by a team of authors to address the challenge of integrating large language models into existing app interfaces. The library utilizes type definitions in codebases to retrieve structured AI responses that are type-safe. By using TypeScript types, developers can ensure that the AI responses conform to the expected JSON schema. If a language model produces a response that doesn’t match the defined types, the TypeScript compiler can validate and guide repairs. TypeChat is an open-source library that is designed to be model-neutral and can be used with various chat completion-style APIs. It is available on npm and the team welcomes feedback and collaboration on GitHub.

https://microsoft.github.io/TypeChat/blog/introducing-typechat/

To top