Update Tool Log

PATCH

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.

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.

log_statusenumOptional
Allowed values: completeincomplete

Status of a Log. Set to incomplete if you intend to update and eventually complete the Log and want the File’s monitoring Evaluators to wait until you mark it as complete. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior.

Response

Successful Response

Prompt Log Responseobject or null
OR
Tool Log Responseobject or null
OR
Evaluator Log Responseobject or null
OR
Flow Log Responseobject or null

Errors

Built with