Name of the agent for logging purposes
Configuration for the Helicone payload
The async operation to execute (returns internal result with extra data)
Function to extract the user-facing result from internal result
Function to calculate usage metrics from the internal result
Prefix for the response ID
The Helicone API key for logging
The Helicone manual logging endpoint URL
The account address for logging purposes
The environment name for logging purposes
The agent request for logging purposes
Custom properties to add as Helicone headers (should include agentid and sessionid)
Promise that resolves to the extracted user result
Wraps an async operation with Helicone logging