Track an operation which uses Bedrock.
This function will track the duration of the operation, the token usage, and the success or error status.
The result of the Bedrock operation.
The input operation.
Track the duration of execution of the provided function.
If the provided function throws, then this method will also throw. In the case the provided function throws, this function will still record the duration.
This function does not automatically record an error when the function throws.
The function to track the duration of.
The result of the function.
Track sentiment about the generation.
Feedback about the generation.
Track an OpenAI operation.
This function will track the duration of the operation, the token usage, and the success or error status.
If the provided function throws, then this method will also throw. In the case the provided function throws, this function will record the duration and an error. A failed operation will not have any token usage data.
Function which executes the operation.
The result of the operation.
Track information about token usage.
Token usage information.
Generated using TypeDoc
The LDAIConfigTracker is used to track various details about AI operations.