Tools
Tools Javascript SDK Integration
Log any external tools used in your LLM applications to Helicone using Helicone’s Javascript SDK.
The HeliconeManualLogger
class can be used to log any external tools used in your LLM applications to Helicone.
1
To get started, install the `@helicone/helpers` package
2
Set `HELICONE_API_KEY` as an environment variable
You can also set the Helicone API Key in your code (See below)
3
Create a new HeliconeManualLogger instance
4
Log your request
API Reference
HeliconeManualLogger
logRequest
Parameters
request
:HeliconeLogRequest
- The request object to log
operation
:(resultRecorder: HeliconeResultRecorder) => Promise<T>
- The operation to be executed and logged
additionalHeaders
:Record<string, string>
- Additional headers to be sent with the request
- This can be used to use features like session management, custom properties, etc.