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
Links
More from Microsoft
A programming framework for agentic AI
UFO³: Weaving the Digital Agent Galaxy
Playwright MCP server
Microsoft Foundry Full-stack AI platform with agent capabilities.
Low-code agent builder. Integrates with M365, Dynamics, Power Platform.
JARVIS, a system to connect LLMs with ML community. Paper: https://arxiv.org/pdf/2303.17580.pdf
A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.
Integrate cutting-edge LLM technology quickly and easily into your apps
A guidance language for controlling large language models.
Microsoft's AI assistant across Windows and Office.
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.
