When to use
Use this method when catching errors from failed LLM calls, feeding in your your error object and other additional metadata.Usage
Function Parameters
- Node.js
- Python
Response
- Node.js
- Python
The
logError
method will return a Promise
that resolves to an object with the following fields:Whether or not the log was successful.