Update By Reference
Update a logged datapoint by its reference ID.
The reference_id
query parameter must be provided, and refers to the
reference_id
of a previously-logged datapoint.
Headers
Query parameters
A unique string to reference the datapoint. Identifies the logged datapoint created with the same reference_id
.
Request
Response
String ID of logged datapoint. Starts with data_
.
A unique string identifying the session to associate the datapoint to. Allows you to log multiple datapoints to a session (using an ID kept by your internal systems) by passing the same session_reference_id
in subsequent log requests. Specify at most one of this or session_id
.
A unique string identifying the previously-logged parent datapoint in a session. Allows you to log nested datapoints with your internal system IDs by passing the same reference ID as parent_id
in a prior log request. Specify at most one of this or parent_id
. Note that this cannot refer to a datapoint being logged in the same request.
Whether the request/response payloads will be stored on Humanloop.
Unique user-provided string identifying the datapoint.
Generated output from your model for the provided inputs. Can be None
if logging an error, or if logging a parent datapoint with the intention to populate it later
Controls how the model uses tools. The following options are supported: ‘none’ forces the model to not call a tool; the default when no tools are provided as part of the model config. ‘auto’ the model can decide to call one of the provided tools; the default when tools are provided as part of the model config. Providing {‘type’: ‘function’, ‘function’: {name’: <TOOL_NAME>}} forces the model to use the named function.