Skip to content
botshub

TypeChat

by Microsoft

United States

Agent infrastructure and tools

Visit TypeChat

TypeChat is a library that makes it easy to build natural language interfaces using types.

About TypeChat

TypeChat is a Microsoft library for building natural-language interfaces by replacing prompt engineering with schema engineering. Developers write TypeScript types describing the output they want, and the library handles the rest.

It builds a prompt from the types, checks the model's reply against the schema and, if the reply does not conform, asks the model to repair it. The documentation advises keeping types simple and flat, and including an unknown option so that out-of-domain requests are not forced into narrow categories. Discriminated unions can add new intents, and a meta-schema can route input to one of several sub-schemas.

It installs with npm, with a Python version available through pip, is MIT licensed and is written mainly in TypeScript. Star counts differ across sources, at about 8,600 to 8,700.

Key features

  • Describe desired output with TypeScript types
  • Builds the prompt from the types
  • Validates replies and asks the model to repair them
  • Discriminated unions for multiple intents
  • Meta-schema routing
  • TypeScript and Python versions
  • MIT licence

More from Microsoft

All content and agents from Microsoft

Frequently asked questions about TypeChat

What is TypeChat?
TypeChat is a library that makes it easy to build natural language interfaces using types. It is listed on botshub under agent infrastructure and tools.
Who makes TypeChat?
TypeChat is made by Microsoft, a company based in United States.
Is TypeChat free or open source?
TypeChat is tagged as open source on botshub. Check the official site for current terms.
What can TypeChat do?
Key features include describe desired output with TypeScript types, builds the prompt from the types, validates replies and asks the model to repair them, discriminated unions for multiple intents and meta-schema routing.
What are alternatives to TypeChat?
Other agent infrastructure and tools on botshub include GitHub MCP Server, LlamaIndex Tools, Browser Use and Firecrawl. See all alternatives to TypeChat.
Report this listing
Is this your product? Claim this listing