Update Tool Log

Update a Log. Update the details of a Log with the given ID.

Path parameters

idstringRequired
Unique identifier for Prompt.
log_idstringRequired
Unique identifier for the Log.

Headers

X-API-KEYstringRequired

Request

This endpoint expects an object.
outputstringOptional

Generated output from your model for the provided inputs. Can be None if logging an error, or if creating a parent Log with the intention to populate it later.

created_atdatetimeOptional
User defined timestamp for when the log was created.
errorstringOptional
Error message if the log is an error.
provider_latencydoubleOptional
Duration of the logged event in seconds.
stdoutstringOptional
Captured log and debug statements.
provider_requestmap from strings to anyOptional
Raw request sent to provider.
provider_responsemap from strings to anyOptional
Raw response received the provider.
inputsmap from strings to anyOptional
The inputs passed to the prompt template.
sourcestringOptional
Identifies where the model was called from.
metadatamap from strings to anyOptional
Any additional metadata to record.
start_timedatetimeOptional
When the logged event started.
end_timedatetimeOptional
When the logged event ended.

Response

Successful Response
object
OR
object
OR
object
OR
object
OR
object

Errors