This demo project is a basic chat agent project instrumented with Humanloop. The instrumentation is done through the Typescript SDK decorators, which version and log to Files in your workspace automatically.
-
Clone the cookbook and
cdinto this directory. -
Run
yarnin the project folder to install dependencies. -
Add your HUMANLOOP_API_KEY and OPENAI_API_KEY in an
.envfile in the same directory.
-
The chat agent can be run in two modes
-
yarn startYou can now have a conversation with the agent. -
yarn start-decoratorsSame agent but instrumented with the Humanloop SDK logging utilities. They automatically version the corresponding Files and turn calls to the decorated functions into Logs.
-
-
Don't forget to type
exitwhen you're done. The conversation will be available on Humanloop in theChat Agentfolder.