Integrate Latitude into your Node.js applications using the TypeScript SDK.
BothprojectId
andversionUuid
options can be overridden on a per-method basis when needed.
prompts
: Methods for managing and running promptslogs
: Methods for pushing logs to Latitudeevaluations
: Methods for pushing evaluation results to LatituderenderChain
but with a final agent result):
config.tools
parameter to the LLM provider in your
onStep
handler, otherwise the AI won’t be able to stop the Agent loop!LatitudeApiError
instances when API requests fail. You can catch and handle these errors:
latitude.prompts.run()
are automatically logged in Latitude, capturing inputs, outputs, performance metrics, and trace information.customIdentifier
parameter to tag runs for easier filtering and analysis in the Latitude dashboard.uuid
that can be used to reference the specific run later.