| domain | gentrace.ai |
| summary | This content provides instructions on how to integrate the Gentrace language model into a project using three package managers: npm, yarn, and pnpm. It involves installing the Gentrace package using `npm install gentrace`, `yarn add gentrace`, or `pnpm add gentrace`.
The example demonstrates initializing the Gentrace SDK in an TypeScript file (`index.ts`). The code imports `init` and `interaction` from 'gentrace', then initializes a new instance of these functions with `const init = ...; const interaction = ...;`.
After initialization, a custom function `haiku` is defined using the `interaction` object to create an instance of your language model (`myLlm.invoke`). This function invokes the LLM (Language Learning Model) to generate a haiku by calling `make a haiku`.
To use Gentrace with your project, replace `YOUR_API_KEY` in the bash command `npx tsx index.ts` with your actual API key generated from the Gentrace platform. This will run your TypeScript file (`index.ts`) using the TSX compiler (presumably for a frontend application). |
| title | Gentrace - trace, evaluate, and analyze errors for AI agents |
| description | Test generative AI across teams. Automate evals, tune retrieval systems, and edit prompts for reliable LLM products and agents. Start for free today. |
| keywords | copy, docs, output, tracing, evaluation, return, monitoring, interaction, haiku, error, agent, video, issues, data, view, test, analysis |
| upstreams |
|
| downstreams |
|
| nslookup | A 198.202.211.1 |
| created | 2025-11-08 |
| updated | 2025-11-08 |
| summarized | None |
|
|