create
create(Create a new event Create a new event (span) within a session trace. The request body is a bare event object (norequest:CreateEventRequest):Promise<CreateEventResponse>
event wrapper).
Required properties:
event_type(string): Must be one of:chain,model,tool,session.inputs(object): Input data for the event.
event_id(string, UUID): Unique identifier for the event.session_id(string, UUID): Session/trace identifier.parent_id(string, UUID): Parent event ID. Defaults tosession_id.
event_name(string): Name of the event. Defaults to"unknown".source(string): Source of the event (e.g.sdk-python). Defaults to"unknown".
config(object): Configuration data (e.g. model parameters, prompt templates).outputs(object): Output data from the event.error(string or null): Error message if the event failed.children_ids(array of strings): IDs of child events.duration(number): Duration of the event in milliseconds.start_time(number): Unix timestamp in milliseconds for event start.end_time(number): Unix timestamp in milliseconds for event end.metadata(object): Additional metadata (e.g. token counts, cost).metrics(object): Custom metrics.feedback(object): Feedback data (e.g. ratings, ground truth).user_properties(object): User properties associated with the event.
Example response
createBatch
createBatch(Create a batch of events Create multiple events in a single request. Whenrequest:CreateEventBatchRequest):Promise<CreateEventBatchResponse>
single_session is
true, all events share the same session created from session_properties.
Required properties:
events(array of event objects): Each event must includeevent_type(one ofchain,model,tool,session) andinputs.
single_session(boolean): If true, all events share a single session created fromsession_properties. Defaults to false.session_properties(object): Session metadata used whensingle_sessionis true. May includesession_name,start_time,metadata.
is_single_session, session, and
per-event project are no longer accepted.
Example response
search
search(Retrieve events based on filters Search events via POST with filtering and pagination. This is the primary method for retrieving events from HoneyHive.request:SearchEventsRequest):Promise<SearchEventsResponse>
update
update(Update an event Update fields on an existing event. Only the provided fields are modified; omitted fields are left unchanged. Extra fields not listed below are accepted by the server but silently ignored.request:UpdateEventRequest):Promise<void>

