0.1.2 • Published 2 months ago

typeagent v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

TypeAgent

TypeAgent is an experimental opinionated library that makes it easy to build generative AI agents using TypeScript type system. This is based on the work pioneer by TypeChat by Microsoft.

Getting Started

Install TypeAgent:

npm install typeagent

TypeChat

TypeAgent depends on TypeChat, which relies on the environment variables to create the default model abstractions:

OPENAI_API_KEY=ADD_YOURS_HERE # https://platform.openai.com/account/api-keys
OPENAI_MODEL=gpt-4

LangSmith

TypeAgent indirectly uses LangSmith. If you plan to use TypeAgent, we recommend you sign up for a LangSmith account. You can use it for development and testing, which helps greatly with debugging the orchestrator and the agents. See the following screenshot:

LangSmith Screenshot

For LangSmith to work, you must define the following environment variables:

LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
LANGCHAIN_API_KEY=ADD_YOURS_HERE # https://smith.langchain.com/
LANGCHAIN_PROJECT=YourProjectName

Contributing

Just send the pull request.

You can build TypeAgent from source:

npm run build