Skip to content

Latest commit

 

History

History
99 lines (64 loc) · 5.12 KB

README.md

File metadata and controls

99 lines (64 loc) · 5.12 KB

TypeAgent

TypeAgent is sample code that explores an architecture for using TypeChat to build a personal agent with a natural language interface.

TypeAgent uses TypeChat to build a set of application agents that take actions. Agents define actions using TypeChat schemas.

The TypeAgent repo contains the personal agent and example application agents, along with internal packages used to build them.

Examples

  • Application agents with natural language interfaces:

  • Agent Dispatcher

    Explores applying TypeChat to route user requests to agents whose typed contract best matches user intent. Main component of the personal agent.

  • Agent Cache

    Explores how TypeChat translations from user intent to actions can be cached, minimizing the need to go the LLM.

  • Agent Shell

    An Electron application for interacting with multiple registered agents using a single unified user interface. Agent Shell includes:

    • Integrated chat experience with voice support
    • Dispatcher that dispatches to registered agents
    • Structured memory
    • Structured RAG

State Management

Storage, registration, chat, memory and other state maintained by examples is typically stored locally in your user folder on your development machine. State is typically saved as ordinary text or JSON files in sub-folders below your user folder.

Example agents that use the Microsoft Graph or similar external services may store state in those services.

Intended Uses

  • TypeAgent is sample code shared to encourage the exploration of natural language agent architectures using TypeChat.
  • Sample agents are not intended to be implemented in real-world settings without further testing/validation.

Limitations

TypeAgent is early stage sample code over TypeChat. TypeAgent is not a framework. All code in this repo is intended for building our own example apps and agents only.

  • TypeAgent is in active development with frequent updates and refactoring.
  • TypeAgent has been tested with Azure Open AI services on developer's own machines only.
  • TypeAgent is currently tested in English. Performance may vary in other languages.
  • TypeAgent relies on TypeChat, which uses schema to validate LLM responses. An agent's validity therefore depends on how well its schema represents the user intents and LLM responses for its domains.
  • You are responsible for supplying any API keys for services used by examples.

Getting Started

TypeAgent is written in TypeScript and relies on TypeChat. To understand how TypeAgent examples work, we recommend getting comfortable with TypeChat and TypeChat examples first.

Agent Shell Example

The main entry point to explore TypeAgent is the Agent Shell example. Follow the instructions in the TypeScript code directory to get started.

Developers

Microsoft TypeAgent Repo is a mono-repo, with components organized with the following root folders based on language used.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.