Create Logs
Creates one or more logs associated to a project. Logs are
LLM-call-level data that might depend on other variables.
A “explicit_types” dictionary can be passed as part of the entries
.
If present, any matching key inside this dictionary will override the
inferred type of that particular entry.
This method returns the ids of the new stored logs.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Name of the project the stored entries will be associated to.
Optional context path to update for the logs. Can use ’/’ for nested contexts (e.g. ‘training/batch1’).
Dictionary containing one or more key:value pairs that will be logged into the platform. Can be either a single dictionary or a list of dictionaries for batch processing. When using lists for both params and entries, their lengths must match. Parameters will be automatically versioned based on their values. Values must be JSON serializable. If a explicit_types
dictionary is present, its values will override the inferred types of the entries.
Dictionary containing one or more key:value pairs that will be logged into the platform. Can be either a single dictionary or a list of dictionaries for batch processing. When using lists for both params and entries, their lengths must match. Values must be JSON serializable. If a explicit_types
dictionary is present, its values will override the inferred types of the entries.