Skip to main content

Properties

events

events: object[]

children_ids?

optional children_ids?: string[]
Description
Child event IDs in the trace hierarchy

config?

optional config?: object
Index Signature
[key: string]: unknown
Description
Configuration used for this event

duration?

optional duration?: number
Description
Event duration in milliseconds

end_time?

optional end_time?: number
Description
Event end time as Unix milliseconds

error?

optional error?: string | null
Description
Error message if the event failed

event_id?

optional event_id?: string
Description
Unique event identifier

event_name?

optional event_name?: string
Description
Name of the event

event_type

event_type: "model" | "tool" | "chain" | "session"
Description
Type of event (model, tool, chain, or session)

feedback?

optional feedback?: object
Index Signature
[key: string]: unknown
Description
Feedback data associated with the event

inputs

inputs: object
Index Signature
[key: string]: unknown
Description
Input data for the event

metadata?

optional metadata?: object
Index Signature
[key: string]: unknown
Description
Arbitrary metadata for the event

metrics?

optional metrics?: object
Index Signature
[key: string]: unknown
Description
Metric values computed for the event

outputs?

optional outputs?: object
Index Signature
[key: string]: unknown
Description
Output data from the event

parent_id?

optional parent_id?: string
Description
Parent event ID in the trace hierarchy

project_id?

optional project_id?: string
Description
Project ID

session_id?

optional session_id?: string
Description
Session this event belongs to

source?

optional source?: string
Description
Source of the event (e.g., sdk-python)

start_time?

optional start_time?: number
Description
Event start time as Unix milliseconds

user_properties?

optional user_properties?: object
Index Signature
[key: string]: unknown
Description
User properties associated with the event

Description

Array of events to create

session_properties?

optional session_properties?: object & object

Type Declaration

metadata?
optional metadata?: object
Index Signature
[key: string]: unknown
session_name?
optional session_name?: string
start_time?
optional start_time?: number
Description
Session start time as Unix milliseconds
user_properties?
optional user_properties?: object
Index Signature
[key: string]: unknown

single_session?

optional single_session?: boolean

Description

If true, all events share the same session